1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-09-29 00:11:16 +02:00
Commit Graph

10 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
33156b2b19
fix: rules tests, overridables (#66)
* fix: rules tests, overridables

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* doc: gogoc

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: rpm template

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: rpm template

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-08-31 10:21:28 -03:00
Adrian Wennberg
75cf0f6b4e Added Packager and Epoch tags (#58)
* feat: Add optional packager tag to rpm spec

Using the `Maintainer` tag from deb as the `Packager` tag for rpm

See #57

* feat: Optional epoch field added to both rpm and dep packages

See #57

* test: Adding test for deb epoch field

Adding a unit test for the epoch field and fixing the implementation
of version number with epoch for deb packager.

See #57
2019-06-25 09:56:32 -03:00
Michael Hanselmann
052766cdfa deb: Avoid emitting empty fields
The Debian policy[1] declares the following control file fields as
required for binary packages:

 * Package
 * Version
 * Section
 * Priority
 * Architecture
 * Maintainer
 * Description

All other fields are optional. A few programs handling .deb packages
emit warnings when optional fields exist without a value.

With this change the template generating the control file is updated to
omit empty values. Comments are added to denote mandatory fields.
A newly added test verifies the generated control file.

[1]
<https://www.debian.org/doc/debian-policy/ch-controlfields.html#
binary-package-control-files-debian-control>

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2019-03-04 10:03:59 -03:00
Carlos Alexandro Becker
c0f95401ef
fix: added failing test for #16 2018-03-10 14:40:56 -03:00
Carlos Alexandro Becker
7094e234cc
fix: double recommends on deb pkg 2018-02-18 19:40:47 -03:00
Carlos Alexandro Becker
4486870ddd
feat: handle rpmbuild version and adds suggests as well 2018-02-18 18:41:32 -03:00
Carlos Alexandro Becker
2d6378cbe4
feat: support recommending packages 2018-02-18 17:14:55 -03:00
Carlos Alexandro Becker
19a3378b24
feat: wip: rpm: dedup testdata 2018-02-04 23:36:02 -02:00
Carlos Alexandro Becker
e9105fd545
more tests 2018-01-04 10:45:22 -02:00
Carlos Alexandro Becker
bbf45571b4
first 2018-01-04 10:31:22 -02:00