| |
@@ -6,6 +6,12 @@
|
| |
#
|
| |
# The commit being packaged (when using git, a full hash)
|
| |
%global commit
|
| |
+
|
| |
+ # The version to use for %%forgeversion.
|
| |
+ # Set to 0 if packaging a git snapshot for a project with no releases.
|
| |
+ # Set to an actual version if packaging a pre or post release snapshot
|
| |
+ %global version0
|
| |
+
|
| |
#
|
| |
# – use the “-i” flag to display the variables forgemeta reads and sets
|
| |
# – use the “-v” flag if you want verbose processing
|
| |
@@ -14,10 +20,11 @@
|
| |
|
| |
# The following lines use variables computed by forgemeta as default values.
|
| |
# You can replace them with manual definitions.
|
| |
- # forgemeta will prepend commit information to dist. Release ordering is
|
| |
- # controlled by the packager with x%{?dist}/0.x%{?dist} numbers chains.
|
| |
Name:
|
| |
- Version:
|
| |
+ # This macro appends commit version to %%{version}.
|
| |
+ # Use the -p flag when packaging a pre-release or project with no releases
|
| |
+ # to use `~` instead of `^`.
|
| |
+ Version: %{forgeversion}
|
| |
Release: 1%{?dist}
|
| |
Summary:
|
| |
URL: %{forgeurl}
|
| |
This change is part of https://fedoraproject.org/wiki/Changes/Revitalize_Forge_Macros. forge-srpm-macros has not yet been imported into Fedora.