Commit Graph

13 Commits

Author SHA1 Message Date
Nicolas Mailhot
2c2e13ee0e switch to distprefix, implement branch support, refactor the logic to be simpler to understand and maintain 2018-08-31 20:03:31 +02:00
Nicolas Mailhot
ec13f91007 remove explicit linebreaks, recent rpm versions insert them by default 2018-08-31 12:24:10 +02:00
Nicolas Mailhot
31fa384924 simplify gitlab processing thanks to https://gitlab.com/gitlab-org/gitlab-ce/issues/38830 2018-08-31 11:21:57 +02:00
Fabio Valentini
30ef72bedf
macros.forge: drop additional dot to match current Guidelines 2018-06-14 18:25:25 +02:00
Fabio Valentini
22833277e6
supplying %date for %forge macros optional (backwards compatible) 2018-05-26 11:59:04 +02:00
Fabio Valentini
74b8dd05bb do not use modification time of tarball for computing %dist
Using the modification time of the snapshot tarball for computing dist is a bad idea, since it's different on different machines.

For example, the computed date during the `buildSRPMfromSCM` koji task is likely different from the local date when the package was prepared, and so package builds (especially EVRs and changelog entries) are not reproducible.

With this change, the snapshot date is not calculated magically, but the packager has to set "%global date YYYYMMDD" manually. I also adapted the documentation for the macro to reflect that change.

This is related to the following FPC issue: https://pagure.io/packaging-committee/issue/719
2018-05-10 17:11:47 +00:00
Nicolas Mailhot
e1493f294d fix patch application with autosetup (we have autosetup users now!) 2018-03-25 19:24:58 +02:00
Nicolas Mailhot
bea8f67f2c add another safety for people that write urls without protocols → quite a lot of indenting changes 2018-03-04 23:40:59 +01:00
Nicolas Mailhot
1073ba2a5a Handle more github quirks 2018-03-04 23:39:29 +01:00
Nicolas Mailhot
f0c0098d58 Add bitbucket.org support to %forgemeta 2018-02-09 10:17:46 +01:00
Nicolas Mailhot
c314c8a285 enhance slightly %forgemeta to help investigating when it is called in silent mode from another macro 2018-02-09 10:17:46 +01:00
Nicolas Mailhot
c6cdde1b01 fix slight brokenness in %forgesetup error paths 2018-02-09 10:17:46 +01:00
Jason Tibbitts
7c4cd33085 Add macros.forge.
Add macros to simplify the packaging of forge-hosted projects.
* https://bugzilla.redhat.com/show_bug.cgi?id=1523779
* https://fedoraproject.org/wiki/Forge-hosted_projects_packaging_automation
2018-01-11 17:49:08 -06:00