Minor spec improvements

This commit is contained in:
Neal Gompa 2022-03-17 14:57:41 -04:00 committed by Neal Gompa
parent dde5bd5bc8
commit 6633b1b61e

View File

@ -2,7 +2,7 @@
Name: xmlstarlet Name: xmlstarlet
Version: 1.6.1 Version: 1.6.1
Release: 18%{?dist} Release: 19%{?dist}
Summary: Command Line XML Toolkit Summary: Command Line XML Toolkit
License: MIT License: MIT
URL: http://xmlstar.sourceforge.net/ URL: http://xmlstar.sourceforge.net/
@ -12,7 +12,7 @@ Patch0: xmlstarlet-1.6.1-nogit.patch
# http://sourceforge.net/tracker/?func=detail&aid=3266898&group_id=66612&atid=515106 # http://sourceforge.net/tracker/?func=detail&aid=3266898&group_id=66612&atid=515106
BuildRequires: make BuildRequires: make
BuildRequires: gcc BuildRequires: gcc
BuildRequires: xmlto automake autoconf libxslt-devel BuildRequires: xmlto automake autoconf libxslt-devel
BuildRequires: libxml2-devel >= 2.6.23 BuildRequires: libxml2-devel >= 2.6.23
BuildRequires: docbook5-schemas BuildRequires: docbook5-schemas
@ -26,21 +26,19 @@ plain text files using UNIX grep, sed, awk, diff, patch, join, etc
commands. commands.
%prep %prep
%setup -q %autosetup -p1
%patch0 -p1 -b .nogit
%build %build
autoreconf -i autoreconf -i
%configure --disable-static-libs --with-libxml-include-prefix=%{_includedir}/libxml2 --docdir=%{_pkgdocdir} # --libdir=%{_libdir} %configure --disable-static-libs --with-libxml-include-prefix=%{_includedir}/libxml2 --docdir=%{_pkgdocdir} # --libdir=%{_libdir}
make %{?_smp_mflags} %make_build
%install %install
rm -fr %{buildroot} %make_install
make install DESTDIR=$RPM_BUILD_ROOT
# Avoid name kludging in autotools # Avoid name kludging in autotools
mv $RPM_BUILD_ROOT%{_bindir}/xml $RPM_BUILD_ROOT%{_bindir}/xmlstarlet mv %{buildroot}%{_bindir}/xml %{buildroot}%{_bindir}/xmlstarlet
%check %check
@ -56,6 +54,9 @@ make check
%changelog %changelog
* Thu Mar 17 2022 Neal Gompa <ngompa@datto.com> - 1.6.1-19
- Minor spec improvements
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-18 * Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild