Reduce macro indirection in the spec file

This commit is contained in:
Benjamin A. Beasley 2021-09-26 12:26:02 -04:00
parent d84d949552
commit 6acde1f72d

View File

@ -66,26 +66,26 @@ The API/ABI version series is %{apiver}.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for cairomm%{apiver}
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: cairomm%{apiver}%{?_isa} = %{version}-%{release}
%description devel %description devel
The %{name}-devel package contains libraries and header files for developing The cairomm%{apiver}-devel package contains libraries and header files for
applications that use %{name}. developing applications that use cairomm%{apiver}.
The API/ABI version series is %{apiver}. The API/ABI version series is %{apiver}.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for cairomm%{apiver}
BuildArch: noarch BuildArch: noarch
Requires: libstdc++-docs Requires: libstdc++-docs
Requires: libsigc++20-doc Requires: libsigc++20-doc
%description doc %description doc
Documentation for %{name} can be viewed either through the devhelp Documentation for cairomm%{apiver} can be viewed either through the devhelp
documentation browser or through a web browser at documentation browser or through a web browser at
%{_datadir}/doc/%{name}-%{apiver}/. %{_datadir}/doc/cairomm%{apiver}-%{apiver}/.
The API/ABI version series is %{apiver}. The API/ABI version series is %{apiver}.
@ -96,11 +96,11 @@ The API/ABI version series is %{apiver}.
workdir="$(mktemp --directory)" workdir="$(mktemp --directory)"
gpg2 --homedir="${workdir}" --yes --import '%{SOURCE2}' gpg2 --homedir="${workdir}" --yes --import '%{SOURCE2}'
gpg2 --homedir="${workdir}" --export --export-options export-minimal \ gpg2 --homedir="${workdir}" --export --export-options export-minimal \
> %{name}.gpg > cairomm%{apiver}.gpg
rm -rf "${workdir}" rm -rf "${workdir}"
%{gpgverify} \ %{gpgverify} \
--keyring='%{name}.gpg' --signature='%{SOURCE1}' --data='%{SOURCE0}' --keyring='cairomm%{apiver}.gpg' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -n cairomm-%{version} %autosetup -n cairomm-%{version}
# We must remove the jQuery/jQueryUI bundle with precompiled/minified/bundled # We must remove the jQuery/jQueryUI bundle with precompiled/minified/bundled