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:
Daniel Veillard 2012-10-11 14:24:26 +08:00
parent 773a4efc1d
commit d6775556a1

View File

@ -1,7 +1,7 @@
Summary: Library providing XML and HTML support Summary: Library providing XML and HTML support
Name: libxml2 Name: libxml2
Version: 2.9.0 Version: 2.9.0
Release: 1%{?dist}%{?extra_release} Release: 2%{?dist}%{?extra_release}
License: MIT License: MIT
Group: Development/Libraries Group: Development/Libraries
Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
@ -17,7 +17,7 @@ this includes parsing and validation even with complex DtDs, either
at parse time or later once the document has been modified. The output at parse time or later once the document has been modified. The output
can be a simple SAX stream or and in-memory DOM like representations. can be a simple SAX stream or and in-memory DOM like representations.
In this case one can use the built-in XPath and XPointer implementation In this case one can use the built-in XPath and XPointer implementation
to select subnodes or ranges. A flexible Input/Output mechanism is to select sub nodes or ranges. A flexible Input/Output mechanism is
available, with existing HTTP and FTP modules and combined to an available, with existing HTTP and FTP modules and combined to an
URI library. URI library.
@ -37,7 +37,7 @@ this includes parsing and validation even with complex DtDs, either
at parse time or later once the document has been modified. The output at parse time or later once the document has been modified. The output
can be a simple SAX stream or and in-memory DOM like representations. can be a simple SAX stream or and in-memory DOM like representations.
In this case one can use the built-in XPath and XPointer implementation In this case one can use the built-in XPath and XPointer implementation
to select subnodes or ranges. A flexible Input/Output mechanism is to select sub nodes or ranges. A flexible Input/Output mechanism is
available, with existing HTTP and FTP modules and combined to an available, with existing HTTP and FTP modules and combined to an
URI library. URI library.
@ -72,18 +72,25 @@ at parse time or later once the document has been modified.
%build %build
%configure %configure
make %{_smp_mflags} make %{_smp_mflags}
gzip -9 ChangeLog
%install %install
rm -fr %{buildroot} rm -fr %{buildroot}
%makeinstall make install DESTDIR=%{buildroot}
gzip -9 doc/libxml2-api.xml
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
# multiarch crazyness on timestamp differences or Makefile/binaries for examples # 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 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) (cd doc/examples ; make clean ; rm -rf .deps Makefile)
gzip -9 doc/libxml2-api.xml
%clean %clean
rm -fr %{buildroot} rm -fr %{buildroot}
@ -95,7 +102,7 @@ rm -fr %{buildroot}
%files %files
%defattr(-, root, root) %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/xmllint.1*
%doc %{_mandir}/man1/xmlcatalog.1* %doc %{_mandir}/man1/xmlcatalog.1*
%doc %{_mandir}/man3/libxml.3* %doc %{_mandir}/man3/libxml.3*
@ -108,7 +115,7 @@ rm -fr %{buildroot}
%defattr(-, root, root) %defattr(-, root, root)
%doc %{_mandir}/man1/xml2-config.1* %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/*.html doc/html doc/*.gif doc/*.png
%doc doc/tutorial doc/libxml2-api.xml.gz %doc doc/tutorial doc/libxml2-api.xml.gz
%doc doc/examples %doc doc/examples
@ -143,6 +150,10 @@ rm -fr %{buildroot}
%doc doc/python.html %doc doc/python.html
%changelog %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 * Tue Sep 11 2012 Daniel Veillard <veillard@redhat.com> - 2.9.0-1
- upstream release of 2.9.0 - upstream release of 2.9.0
- A few new API entry points - A few new API entry points