From 95f33e0476b09127742b1c0a4fb972afa46762cf Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sat, 26 Feb 2022 14:02:25 -0500 Subject: [PATCH] Update to 41a3a29; move snapshot info from release to version --- .gitignore | 1 + c4project.spec | 19 ++++++++++--------- sources | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index d8fdba7..e976c7c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /cmake-8e2a2bfc3361f76dbdcb75e876fc42149c382d85.tar.gz /cmake-7a35d94e15221c2db050668c5549e730a26be01f.tar.gz /cmake-9416f297430bc358eea48f8cf65aa0d602029629.tar.gz +/cmake-41a3a293f708566bf8cc2196ea2e671205821584.tar.gz diff --git a/c4project.spec b/c4project.spec index 575af1f..66316ed 100644 --- a/c4project.spec +++ b/c4project.spec @@ -1,20 +1,20 @@ -%global forgeurl https://github.com/biojppm/cmake/ -%global commit 9416f297430bc358eea48f8cf65aa0d602029629 +%global commit 41a3a293f708566bf8cc2196ea2e671205821584 +%global snapdate 20220226 + +%global shortcommit %(echo '%{commit}' | cut -b -7) Name: c4project Summary: Useful CMake scripts # This project has never been assigned a version. The author really intends it # for use as a git submodule rather than for system-wide installation. -Version: 0 -%forgemeta -# Note that snapshot information is added by %%forgemeta. +Version: 0^%{snapdate}git%{shortcommit} Release: %autorelease -URL: %{forgeurl} +URL: https://github.com/biojppm/cmake # The entire source is MIT, except Toolchain-PS4.cmake and # Toolchain-XBoxOne.cmake, which are ASL 2.0. License: MIT and ASL 2.0 -Source0: %{forgesource} +Source0: %{url}/archive/%{commit}/cmake-%{commit}.tar.gz BuildArch: noarch @@ -28,7 +28,7 @@ Requires: git-core %prep -%forgeautosetup +%autosetup -n cmake-%{commit} # For now, we elect not to install the “bm-xp” browser-based benchmark explorer # tool. It would be inconvenient to package this in a way that was useful in @@ -42,7 +42,8 @@ rm -rvf 'bm-xp' %install -install -t %{buildroot}%{_datadir}/cmake/%{name} -D -p -m 0644 * +install -d '%{buildroot}%{_datadir}/cmake/%{name}' +cp -vrp * '%{buildroot}%{_datadir}/cmake/%{name}' %check diff --git a/sources b/sources index ac1bf4e..a19deca 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cmake-9416f297430bc358eea48f8cf65aa0d602029629.tar.gz) = d150a5f2944baeba1f9f2af55b091f00ecb1248bc337ae43acf9ec361e0d89dbbf6764468cb0f2464b70078f38a4b3c53059c5944a6d5a206801d9749bc16c6c +SHA512 (cmake-41a3a293f708566bf8cc2196ea2e671205821584.tar.gz) = 9ea476f0df21cda30db9ca3abe50fcc661b7b3f18a1c906510aaaa109dd3294e8b04b4138adcd33fa6e21ab3e51d5bc0f1a220bfc3cb9c80c010302a4c945f93