1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-09-23 06:41:18 +02:00
Commit Graph

102 Commits

Author SHA1 Message Date
Erik G
d2e9097ac5
feat(#42): Support Changelogs (#158)
Co-authored-by: Dj Gilcrease <d.gilcrease@f5.com>

Co-authored-by: Dj Gilcrease <d.gilcrease@f5.com>
Co-authored-by: Erik Geiser <erik.geiser@redteam-pentesting.de>
2020-07-13 15:10:03 +00:00
Carlos Alexandro Becker
865b639da8 fix: do not validate inside rpm
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-10 02:09:12 -03:00
Carlos Alexandro Becker
7b7ab3ffc7
docs: added docs website (#142)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-05-24 16:09:47 -03:00
Carlos Alexandro Becker
1277d9bfcd
fix: lint
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-02-18 10:50:11 -03:00
astorath
4c6511a854
feat: version release/prerelease options (#111)
* feat: version release/prerelease options

* fix: review

* fix: lint

* fix: damn linters

* fix: acceptance tests

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-02-18 10:49:10 -03:00
Marc Sauter
5125453b31 fix: make epoch work again (#114)
* add epoch

* tests for epoch added

* tests for invalid epoch added
2019-12-31 11:55:19 -03:00
Carlos Alexandro Becker
92cd25d767
fix(rpm): with defaults: fix version and pre-release (#101)
* fix(rpm): replace - with _ on version

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

* fix(rpm): version

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-11-05 09:38:13 -03:00
Carlos Alexandro Becker
2dea0cedb8
fix(rpm): desc, summary and group (#99)
* fix(rpm): desc, summary and group

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

* test: added test cases

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-11-04 23:56:18 -03:00
Carlos Alexandro Becker
7cc6be1c6b
fix: rpm groups (#92)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-23 14:03:35 -03:00
Carlos Alexandro Becker
2f467f94fb
fix: remove rpm.Prefix and rpm.Release (#90)
* fix: remove rpm.Prefix

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

* fix: remove rpm.Release

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

* fix: broken test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-22 18:29:42 -03:00
Carlos Alexandro Becker
0425109b40
fix: rpm.release (#89)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-22 00:55:29 -03:00
Dj Gilcrease
7889c9b2b6
fix: add stricter linting (#87)
* add stricter linting
* As part of this it changes the API slightly changing all uses of the `nfpm.Info` object to accept a pointer to reduce memory usage as pointed out by `hugeParam: info is heavy (568 bytes); consider passing it by pointer (gocritic)`
2019-10-11 13:11:28 -07:00
Carlos Alexandro Becker
793528c997
fix: go mod tidy
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-09-10 15:03:53 -03:00
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
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
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
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
32909dea74
fix: lint issues 2019-03-04 10:14:05 -03:00
Carlos Alexandro Becker
e9205e74c0
fix: lint issues 2018-09-12 13:17:59 -03:00
Carlos Alexandro Becker
789bf5ca36 chore: typo 2018-07-08 19:49:15 -07:00
Carlos Alexandro Becker
a0f04ab682
test: fix duplicated code and other issues 2018-06-04 09:08:27 -03:00
Carlos Alexandro Becker
a2ecad5e17 feat: rpm: create empty managed dirs 2018-05-16 21:42:34 -03:00
tympanix
3000825622 chore: gofmt 2018-04-10 23:10:32 +02:00
tympanix
fbe68cc0f9 refactor: overrides using explicit embedded struct 2018-04-10 17:39:43 +02:00
Tympanix
b3e51e12b4 test: e2e test for rpm maintainer scripts 2018-04-09 13:19:45 -03:00
Carlos Alexandro Becker
fc4cd13a24 test: added rpm test with a dash on version
refs #24
2018-03-28 15:12:11 -03:00
Carlos Alexandro Becker
c592eb01a7 style: improved rpm pipe tests 2018-03-28 15:12:11 -03:00
Carlos Alexandro Becker
db0bbe8ee6
chore: improving error handling and wrapping 2018-03-27 20:36:02 -03:00
Carlos Alexandro Becker
3db9ba1cd1
fix: simplified rpm version regex
we should probably make it work on other langs as well.

refs https://gophers.slack.com/archives/C3T1JU24B/p1520790489000061
2018-03-12 10:27:42 -03:00
Carlos Alexandro Becker
9078fee243
fix: fixed rpm version parsing
closes #11
2018-03-05 21:33:16 -03:00
Carlos Alexandro Becker
21bef1641c
test: added failing test for #11 2018-03-05 21:02:26 -03:00
Carlos Alexandro Becker
f27591c836
style: gofmt 2018-02-18 19:32:47 -03:00
Carlos Alexandro Becker
4d7ea9700c
fix: gometalinter 2018-02-18 18:54:15 -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
f592011b7e
chore: testing rpmbuild not in path
and adding it to travis
2018-02-16 20:50:13 -02:00
Carlos Alexandro Becker
e5fe548add
test: added some more 2018-02-16 19:11:52 -02:00
Carlos Alexandro Becker
37a2dbf86b
fix: defaults 2018-02-12 19:15:37 -02:00
Carlos Alexandro Becker
6a25e65a17
rpm: bindir 2018-02-12 16:29:44 -02:00
Carlos Alexandro Becker
8d6ebd98e2
dep and fixes 2018-02-05 00:54:03 -02:00
Carlos Alexandro Becker
173904cdbd
chore: renamed to nfpm 2018-02-04 23:53:22 -02:00
Carlos Alexandro Becker
19a3378b24
feat: wip: rpm: dedup testdata 2018-02-04 23:36:02 -02:00
Carlos Alexandro Becker
dd00fadb3f
feat: wip: rpm: fix files 2018-02-04 23:28:36 -02:00
Carlos Alexandro Becker
d56b8ef464
feat: wip: rpm 2018-02-04 21:19:00 -02:00
Carlos Alexandro Becker
082e88ff8a
feat: wip: rpm 2018-02-04 21:00:20 -02:00
Carlos Alexandro Becker
09e4e94e2a
feat: wip: rpm 2018-02-03 17:42:56 -02:00