Drop “forge” macros to use modern snapshot versioning
This commit is contained in:
parent
5d0b2172df
commit
74cb6fd2dd
11
c4fs.spec
11
c4fs.spec
@ -1,22 +1,21 @@
|
|||||||
%global forgeurl https://github.com/biojppm/c4fs
|
|
||||||
# The project contains a version number, but a release has never been tagged.
|
# The project contains a version number, but a release has never been tagged.
|
||||||
# The project is normally used as a git submodule and referred to by commit
|
# The project is normally used as a git submodule and referred to by commit
|
||||||
# hash.
|
# hash.
|
||||||
%global commit 8ffaf652758ea8bdd1389cf58f9542bc474e5413
|
%global commit 8ffaf652758ea8bdd1389cf58f9542bc474e5413
|
||||||
|
%global snapdate 20220102
|
||||||
|
|
||||||
Name: c4fs
|
Name: c4fs
|
||||||
Summary: C++ file system utilities
|
Summary: C++ file system utilities
|
||||||
Version: 0.0.1
|
Version: 0.0.1^%{snapdate}git%(echo '%{commit}' | cut -b -7)
|
||||||
# This is the same as the version number. To prevent undetected soversion
|
# This is the same as the version number. To prevent undetected soversion
|
||||||
# bumps, we nevertheless express it separately.
|
# bumps, we nevertheless express it separately.
|
||||||
%global so_version 0.0.1
|
%global so_version 0.0.1
|
||||||
%forgemeta
|
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
|
|
||||||
URL: %{forgeurl}
|
URL: https://github.com/biojppm/c4fs
|
||||||
License: MIT
|
License: MIT
|
||||||
|
|
||||||
Source0: %{forgesource}
|
Source0: %{url}/archive/%{commit}/c4fs-%{commit}.tar.gz
|
||||||
|
|
||||||
# Upstream always wants to build with c4core as a git submodule, but we want to
|
# Upstream always wants to build with c4core as a git submodule, but we want to
|
||||||
# unbundle it and build with an external library. We therefore maintain this
|
# unbundle it and build with an external library. We therefore maintain this
|
||||||
@ -53,7 +52,7 @@ applications that use c4fs.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%forgeautosetup -p1
|
%autosetup -n c4fs-%{commit} -p1
|
||||||
|
|
||||||
# Remove/unbundle additional dependencies
|
# Remove/unbundle additional dependencies
|
||||||
# c4project (CMake build scripts)
|
# c4project (CMake build scripts)
|
||||||
|
Loading…
Reference in New Issue
Block a user