Add commits to the Makefile and generate spec files from there.
[fedora-riscv.git] / stage2-riscv-pk / riscv-pk.spec.in
similarity index 77%
rename from stage2-riscv-pk/riscv-pk.spec
rename to stage2-riscv-pk/riscv-pk.spec.in
index d6b26b0..97be443 100644 (file)
@@ -1,16 +1,13 @@
 %global debug_package %{nil}
 
-%global commit      927979c5af6a69360b5dd61d3b17cd06ae73d1ac
-%global shortcommit 927979c5
-
 Name:           riscv-pk
 Version:        0
-Release:        0.1.git%{shortcommit}%{?dist}
+Release:        0.2.git@SHORTCOMMIT@%{?dist}
 Summary:        RISC-V proxy kernel (pk) and boot loader (bbl)
 License:        BSD
 
 URL:            https://github.com/lowRISC/riscv-pk
-Source0:        https://github.com/riscv/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
+Source0:        https://github.com/riscv/%{name}/archive/@COMMIT@/%{name}-@SHORTCOMMIT@.tar.gz
 
 BuildRequires:  riscv-gnu-toolchain
 
@@ -21,7 +18,7 @@ includes binutils and GCC.
 
 
 %prep
-%setup -q -n %{name}-%{commit}
+%setup -q -n %{name}-@COMMIT@
 
 
 %build