Spec cleanups

Move the actual release number out into the open where it's like,
well, visible. Eliminate double negations on libarchive andxz build
conditionals.
This commit is contained in:
Panu Matilainen 2017-10-03 16:38:40 +03:00
parent b4ee3799d1
commit 0cd499eaca

View File

@ -27,6 +27,8 @@
%global rpmver 4.14.0 %global rpmver 4.14.0
%global snapver rc2 %global snapver rc2
%global rel 4
%global srcver %{version}%{?snapver:-%{snapver}} %global srcver %{version}%{?snapver:-%{snapver}}
%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x} %global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
@ -37,7 +39,7 @@
Summary: The RPM package management system Summary: The RPM package management system
Name: rpm Name: rpm
Version: %{rpmver} Version: %{rpmver}
Release: %{?snapver:0.%{snapver}.}3%{?dist} Release: %{?snapver:0.%{snapver}.}%{rel}%{?dist}
Group: System Environment/Base Group: System Environment/Base
Url: http://www.rpm.org/ Url: http://www.rpm.org/
Source0: http://ftp.rpm.org/releases/%{srcdir}/%{name}-%{srcver}.tar.bz2 Source0: http://ftp.rpm.org/releases/%{srcdir}/%{name}-%{srcver}.tar.bz2
@ -111,10 +113,10 @@ BuildRequires: bzip2-devel >= 0.9.0c-2
BuildRequires: lua-devel >= 5.1 BuildRequires: lua-devel >= 5.1
BuildRequires: libcap-devel BuildRequires: libcap-devel
BuildRequires: libacl-devel BuildRequires: libacl-devel
%if ! %{without xz} %if %{with xz}
BuildRequires: xz-devel >= 4.999.8 BuildRequires: xz-devel >= 4.999.8
%endif %endif
%if ! %{without libarchive} %if %{with libarchive}
BuildRequires: libarchive-devel BuildRequires: libarchive-devel
%endif %endif
# Only required by sepdebugcrcfix patch # Only required by sepdebugcrcfix patch
@ -632,6 +634,9 @@ make check
%doc doc/librpm/html/* %doc doc/librpm/html/*
%changelog %changelog
* Tue Oct 03 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-0.rc2.4
- Spec cleanups
* Fri Sep 29 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-0.rc2.3 * Fri Sep 29 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-0.rc2.3
- BuildRequire gnupg2 for the testsuite - BuildRequire gnupg2 for the testsuite