Spec cleanups
- remaining cleanups from merge bug rhbz#226079 - do not put the docs in the main package, only in -devel rhbz#864731
This commit is contained in:
parent
773a4efc1d
commit
d6775556a1
25
libxml2.spec
25
libxml2.spec
@ -1,7 +1,7 @@
|
||||
Summary: Library providing XML and HTML support
|
||||
Name: libxml2
|
||||
Version: 2.9.0
|
||||
Release: 1%{?dist}%{?extra_release}
|
||||
Release: 2%{?dist}%{?extra_release}
|
||||
License: MIT
|
||||
Group: Development/Libraries
|
||||
Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
|
||||
@ -72,18 +72,25 @@ at parse time or later once the document has been modified.
|
||||
%build
|
||||
%configure
|
||||
make %{_smp_mflags}
|
||||
gzip -9 ChangeLog
|
||||
|
||||
%install
|
||||
rm -fr %{buildroot}
|
||||
|
||||
%makeinstall
|
||||
gzip -9 doc/libxml2-api.xml
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
# multiarch crazyness on timestamp differences or Makefile/binaries for examples
|
||||
touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxml2/libxml/parser.h $RPM_BUILD_ROOT/%{_bindir}/xml2-config
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-%{version}/*
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python-%{version}/*
|
||||
(cd doc/examples ; make clean ; rm -rf .deps Makefile)
|
||||
gzip -9 doc/libxml2-api.xml
|
||||
|
||||
%clean
|
||||
rm -fr %{buildroot}
|
||||
@ -95,7 +102,7 @@ rm -fr %{buildroot}
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
|
||||
%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO
|
||||
%doc AUTHORS NEWS README Copyright TODO
|
||||
%doc %{_mandir}/man1/xmllint.1*
|
||||
%doc %{_mandir}/man1/xmlcatalog.1*
|
||||
%doc %{_mandir}/man3/libxml.3*
|
||||
@ -108,7 +115,7 @@ rm -fr %{buildroot}
|
||||
%defattr(-, root, root)
|
||||
|
||||
%doc %{_mandir}/man1/xml2-config.1*
|
||||
%doc AUTHORS ChangeLog.gz NEWS README Copyright
|
||||
%doc AUTHORS NEWS README Copyright
|
||||
%doc doc/*.html doc/html doc/*.gif doc/*.png
|
||||
%doc doc/tutorial doc/libxml2-api.xml.gz
|
||||
%doc doc/examples
|
||||
@ -143,6 +150,10 @@ rm -fr %{buildroot}
|
||||
%doc doc/python.html
|
||||
|
||||
%changelog
|
||||
* Thu Oct 11 2012 Daniel Veillard <veillard@redhat.com> - 2.9.0-2
|
||||
- remaining cleanups from merge bug rhbz#226079
|
||||
- do not put the docs in the main package, only in -devel rhbz#864731
|
||||
|
||||
* Tue Sep 11 2012 Daniel Veillard <veillard@redhat.com> - 2.9.0-1
|
||||
- upstream release of 2.9.0
|
||||
- A few new API entry points
|
||||
|
Loading…
Reference in New Issue
Block a user