diff --git a/c4fs.spec b/c4fs.spec index a5e0cf0..5910f79 100644 --- a/c4fs.spec +++ b/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 is normally used as a git submodule and referred to by commit # hash. %global commit 8ffaf652758ea8bdd1389cf58f9542bc474e5413 +%global snapdate 20220102 Name: c4fs 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 # bumps, we nevertheless express it separately. %global so_version 0.0.1 -%forgemeta Release: %autorelease -URL: %{forgeurl} +URL: https://github.com/biojppm/c4fs 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 # unbundle it and build with an external library. We therefore maintain this @@ -53,7 +52,7 @@ applications that use c4fs. %prep -%forgeautosetup -p1 +%autosetup -n c4fs-%{commit} -p1 # Remove/unbundle additional dependencies # c4project (CMake build scripts)