1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-10-01 06:39:37 +02:00
Commit Graph

230 Commits

Author SHA1 Message Date
Dj Gilcrease
b47eac0b54
Merge pull request #85 from djgilcrease/bugfix/issue-50
fix: parse the version as a semver
v1.0.0-beta2
2019-10-09 18:11:58 -07:00
Carlos Alexandro Becker
7536f58323
clean: renovate.json 2019-10-09 21:43:11 -03:00
Carlos Alexandro Becker
32d69eb89a
fix: remove rpm recommends
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
v1.0.0-beta1
2019-10-09 16:36:59 -03:00
Carlos Alexandro Becker
d29b42a9de
clean: remove last mentions to rpmbuild (#84)
* clean: remove last mentions to rpmbuild

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

* fix: goproxy

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-09 16:30:17 -03:00
Dj Gilcrease
03193b2ab0 feat: provide more field support for rpms (#79)
* fix: properly add the PostRemove script, not the PostInstall script

* feat: provide more field support for rpms

New RPM fields
---
* Description
* OS <= info.Platform
* Licence
* URL <= info.Homepage
* Vendor
* Packager <= info.Maintainer
* Provides
* Require <= info.Depends
* Obsolete <= info.Replaces
* Suggests
* Conflicts

Fixes
---
* RPM Compression types are supported again
* RPM Config files are supported again
  * `rpmpack` will support all the rpm file types, so we could extend this more latter

* chore: disable wsl (a new linter in 1.20.x got golangci-lint) until we decide to enable it

* chore: address PR comments
2019-10-09 16:10:05 -03:00
Carlos Alexandro Becker
7a174b2de1
bump: deps (#81)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-05 09:46:58 -03:00
Carlos Alexandro Becker
56f0fdf21a
bump: go 1.13 (#80)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-05 09:35:59 -03:00
Carlos Alexandro Becker
be07ce5c4d
chore(ci): disable godox 2019-10-03 09:39:55 -03:00
renovate[bot]
d3e2c4f776 chore(deps): update github.com/alecthomas/units commit hash to f65c72e (#73) 2019-10-03 09:39:16 -03:00
renovate[bot]
aa2f99138a chore(deps): update github.com/google/rpmpack commit hash to 4fb3ac7 (#74) 2019-10-03 09:38:48 -03:00
renovate[bot]
b4e0989153 chore(deps): add renovate.json (#72) 2019-10-03 09:27:31 -03:00
Carlos Alexandro Becker
8d5d54a007
ci: go mod tidy
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-09-10 15:04:46 -03: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>
v0.13.0
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>
v0.12.0
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 v0.11.0 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 v0.10.0 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 v0.9.7 2018-10-30 23:36:52 -03:00
Carlos Alexandro Becker
20c1238eec
fix: build, tidy v0.9.6 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 v0.9.5 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 v0.9.4 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 v0.9.3 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