1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-19 05:06:20 +02:00
Commit Graph

967 Commits

Author SHA1 Message Date
Dj Gilcrease 55c08981e6 feat: create RPM without rpmbuild (#67)
* feat(40): Create RPM without rpmbuild

* chore: update go.mod to remove the replace section now that the dependent MR has been merged
2019-09-10 15:01:43 -03:00
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
Nick Gerakines 83505988b2 feat: added support for "rules" debian package file (#49)
* Added support for rules debian package file

* Fixing typo in CONTRIBUTING.md

* Runing 'make fmt' on project.
2019-08-31 09:37:22 -03:00
Marko Bevc d10f05cfba fix: Typo in rpm.go comments (#65) 2019-08-29 22:05:25 -03:00
Carlos Alexandro Becker 214d773fe2
fix: improve rpm release config (#64)
* fix: improve rpm release config

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

* fix: template

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-08-25 12:12:38 -03:00
James A. Robinson e08d696bd6 feat: add release field (#52)
* added support for a Release flag

* account for "Release: 1" default in exampleInfo()
2019-08-25 11:45:10 -03:00
Adrian Wennberg c17636c028 feat: Add option for RPM compression type (#63)
* feat: Add option for RPM compression type

See #62

* test: acceptance test for rpm compression types
2019-08-23 10:49:04 -03:00
Adrian Wennberg 76d7d4f3ca Adding Prefix and Group tags (#59)
* fix: Define sourcedir and rpmfilename macros for rpmbuild

Our build system has a complex rmpbuld environment set up where
macros don't match with the defaults that nfpm exepcts. This
change will enforce those defaults which makes nfpm less
dependant on the build environment.

* feat: Add Group and Prefix tags for RPMs

These tags are only implemented for RPMs because there is
no good parallel to draw to deb tags.

See #57

* fix: moved rpm only tags into their own block

* test: added test for RPM block

* fix: fixed rpm only tags test

* test: Testing spec file for RPM specific tags

See: #57
2019-07-15 20:20:57 -03:00
Carlos Alexandro Becker 429ed297bd
fix: lint
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-07-14 20:18:50 -03:00
Christoph Hartmann 793979844f add support for build rpm packages for aarch64 (#56)
* add support for build rpm packages for aarch64

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>

* add unit test to verify the manipulation of the arch field

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>

* add acceptance test for arm64 builds

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>

* use newer travis ubuntu distro

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>

* enable binfmt in docker

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2019-06-28 14:14:45 -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
Carlos Alexandro Becker 8fedf987c4
docs: funding.yml 2019-05-25 18:14:44 -03:00
Aaron Beitch ce9ed27f16 chore: Cleanup temp files in RPM.Package() (#53)
RPM.Package() populates a temp directory with files to do its work. It should cleanup after itself.
2019-05-20 09:40:43 -03:00
Carlos Alexandro Becker 21aa860653
chore(ci): use gocenter as GOPROXY 2019-03-21 10:00:12 -03:00
Carlos Alexandro Becker 3e79ba0a5b
fix: skip ppc64le tests 2019-03-19 21:54:42 -03:00
Carlos Alexandro Becker d5bf5e46ff
fix: lint issues 2019-03-19 21:48:14 -03:00
Carlos Alexandro Becker 26a86166dc
feat: test os ppc64le too 2019-03-19 21:34:06 -03:00
Phil DeMonaco c97639b107 feat: rpm compatible arch for ppc64/ppc64le (#47)
Updated nfpm to perform a mapping to appropriate architectures for the
POWER big and little endian architectures.
2019-03-19 20:47:02 -03:00
Carlos Alexandro Becker d3a2143109
fix: goreleaser config 2019-03-04 10:18:18 -03:00
Carlos Alexandro Becker 32909dea74
fix: lint issues 2019-03-04 10:14:05 -03:00
Carlos Alexandro Becker a43957bada
feat: go 1.12 2019-03-04 10:13:56 -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 a912e8b6b7
docs: fixed broken link 2018-11-28 10:37:17 -02:00
Carlos Alexandro Becker 986479cfd0
docs: improved contributing 2018-11-28 10:36:21 -02:00
Carlos Alexandro Becker 11452f4e2a
chore: empty 2018-10-30 23:36:52 -03:00
Carlos Alexandro Becker 20c1238eec
fix: build, tidy 2018-10-30 23:30:54 -03:00
Carlos Alexandro Becker 9bd8145ab5 chore: go modules 2018-10-29 09:34:39 -03:00
Matthias Schneider de75d67990 add environment version feature to example config 2018-09-14 11:23:22 -03:00
Matthias Schneider 1a5494328c added testdata config 2018-09-14 11:23:22 -03:00
Matthias Schneider 5c2749c5bb changed to os.ExpandEnv ; added tests for env support 2018-09-14 11:23:22 -03:00
Matthias Schneider 8b3af839f7 Added Environment Support for version
With this patch it is possible to use enviornment variables for the versions value in the yaml file:

```version: $NFPM_PACKAGE_VERSION```
2018-09-14 11:23:22 -03:00
Carlos Alexandro Becker e9205e74c0
fix: lint issues 2018-09-12 13:17:59 -03:00
Carlos Alexandro Becker 45930e66ca
fix: rpm: passing verbose flag to rpmbuild 2018-09-12 12:58:54 -03:00
Carlos Alexandro Becker 7d1cb29113
fix: deb: fixed wrong error message 2018-09-12 12:58:41 -03:00
Daehyeok Mun 36b9ca6238 Fix broken link to nfpm piper on GoReleaser.
Signed-off-by: Daehyeok Mun <daehyeok@gmail.com>
2018-08-16 08:00:44 -03:00
Carlos Alexandro Becker 923d6a7473 chore: typo 2018-07-08 19:49:15 -07:00
Carlos Alexandro Becker 2615d25f99 refactor: accept params struct on ITs 2018-07-08 19:49:15 -07:00
Carlos Alexandro Becker 91a3393a74 fix: linter 2018-07-08 19:49:15 -07:00
Carlos Alexandro Becker 789bf5ca36 chore: typo 2018-07-08 19:49:15 -07:00
Carlos Alexandro Becker 4980d7300c fix: rpm: windows paths inside tar files 2018-07-08 19:49:15 -07:00
Carlos Alexandro Becker 121a714dab fix: deb: windows paths inside tar/ar files 2018-07-08 19:49:15 -07:00
Carlos Alexandro Becker 25eddcb175
fix: docker login on travis 2018-06-15 16:44:38 -03:00
Carlos Alexandro Becker fd58e75308
docs: readme 2018-06-15 16:35:26 -03:00
Carlos Alexandro Becker 68fd410f83
feat: added docker image 2018-06-15 16:33:52 -03:00
Carlos Alexandro Becker a0f04ab682
test: fix duplicated code and other issues 2018-06-04 09:08:27 -03:00
Carlos Alexandro Becker 7d40a1a171
fix: test timeout 2018-06-04 08:48:41 -03:00
Michael Rauh 81b010414f docs: Add overrides section to example config
I noticed that the new feature of pre- und postinstall scripts isn't
reflected in the output of the example config file. This commit adds the
missing parts to make it clearer that this feature is available.

See #19
2018-06-04 08:46:18 -03:00
Carlos Alexandro Becker 5baf8976dc
fix: pull test images before testing to avoid timeouts 2018-06-02 15:35:39 -03:00
Carlos Alexandro Becker e50dcef204
chore: using golangci-lint as linter 2018-06-02 15:22:21 -03:00
Carlos Alexandro Becker d2eaeef92b chore: idk why travis complains about this one 2018-05-16 21:42:34 -03:00