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>
* 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>
* 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>
* 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>
* 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)`
* 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>
* 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>
* 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
* 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>