Added macros to recognize RPM derivative: %%_rpm, %%rpm4, %%rpm5

This commit is contained in:
Mikhail Novosyolov 2020-02-20 20:04:26 +03:00
parent be587a2aa7
commit 655bdca877
2 changed files with 3 additions and 2 deletions

View file

@ -1,3 +1,4 @@
sources: sources:
"cpu-os-macros.tar.gz": 99c5fa561dd0d897bfa8cd97f2aa60781bc578d4 "cpu-os-macros.tar.gz": 99c5fa561dd0d897bfa8cd97f2aa60781bc578d4
RPMBDB-0.1.tar.xz: d56f37fff7f7f8b036b4ce3b06c1ab205687596b RPMBDB-0.1.tar.xz: d56f37fff7f7f8b036b4ce3b06c1ab205687596b
rpm5-1d46592aea3a9df9a960793f5871978cc3ec9e1e.tar.gz: 360a641b2ee0b350faec2d787278df54d602e03f

View file

@ -1,4 +1,4 @@
%define commit 67a5f5e60fa6f409a5e67c560dce5a0659feea9c %define commit 1d46592aea3a9df9a960793f5871978cc3ec9e1e
%define short_commit %(echo %{commit} | head -c 4) %define short_commit %(echo %{commit} | head -c 4)
# When updating, change commit hash above to the commit in # When updating, change commit hash above to the commit in
# https://abf.io/soft/rpm5 that you want to build from # https://abf.io/soft/rpm5 that you want to build from
@ -65,7 +65,7 @@ Summary: The RPM package management system
Name: rpm Name: rpm
Epoch: 1 Epoch: 1
Version: %{libver}.%{minorver} Version: %{libver}.%{minorver}
Release: 111.git%{short_commit} Release: 112.git%{short_commit}
License: LGPLv2.1+ License: LGPLv2.1+
Group: System/Configuration/Packaging Group: System/Configuration/Packaging
Url: http://rpm5.org/ Url: http://rpm5.org/