Reduce macro indirection in the spec file

This commit is contained in:
Benjamin A. Beasley 2021-09-28 14:19:08 -04:00
parent 6b56b6162b
commit 8a8827c47b

View File

@ -12,10 +12,10 @@ Release: %autorelease
Summary: Xalan XSLT processor for C/C++
License: ASL 2.0
URL: http://xalan.apache.org/%{name}/
URL: http://xalan.apache.org/xalan-c/
%global tag Xalan-C_%(echo '%{version}' | tr . _)
%global tar_name xalan_c-%(echo %{version} | cut -d . -f -2)
%global release_url https://github.com/apache/%{name}/releases/download/%{tag}
%global release_url https://github.com/apache/xalan-c/releases/download/%{tag}
Source0: %{release_url}/%{tar_name}.tar.gz
Source1: %{release_url}/%{tar_name}.tar.gz.asc
Source2: %{release_url}/KEYS
@ -38,21 +38,21 @@ Xalan is a project of the Apache Software Foundation.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Summary: Development files for xalan-c
Requires: xalan-c%{?_isa} = %{version}-%{release}
Requires: cmake-filesystem
%description devel
The %{name}-devel package contains libraries and header files for developing
applications that use %{name}.
The xalan-c-devel package contains libraries and header files for developing
applications that use xalan-c.
%package doc
Summary: Documentation for %{name}
Summary: Documentation for xalan-c
BuildRequires: doxygen
%description doc
Documentation for %{name}.
Documentation for xalan-c.
%prep
@ -107,7 +107,7 @@ rm -rf %{buildroot}%{_prefix}/share/doc/xalan-c/api
%dir %{_libdir}/cmake/XalanC
%{_libdir}/cmake/XalanC/*.cmake
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/xalan-c.pc
%files doc