From 8a8827c47b5a35ccc99d69ab4071566172bae51f Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 28 Sep 2021 14:19:08 -0400 Subject: [PATCH] Reduce macro indirection in the spec file --- xalan-c.spec | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/xalan-c.spec b/xalan-c.spec index 305bfce..442edc7 100644 --- a/xalan-c.spec +++ b/xalan-c.spec @@ -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