[packages/xsd] noarch apidocs

glen glen at pld-linux.org
Thu Apr 3 22:28:06 CEST 2014

commit fce0eb0bacf9a95c63c2e3469f5128b7353dc778
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Apr 3 23:28:05 2014 +0300

    noarch apidocs

 xsd.spec | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/xsd.spec b/xsd.spec
index 8dc4ef8..01d69fe 100644
--- a/xsd.spec
+++ b/xsd.spec
@@ -2,7 +2,7 @@ Summary:	W3C XML schema to C++ data binding compiler
 Summary(pl.UTF-8):	Kompilator schematów W3C XML do wiązań danych C++
 Name:		xsd
 Version:	3.3.0
-Release:	8
+Release:	9
 Group:		Development/Tools
 # Exceptions permit otherwise GPLv2 incompatible combination with ASL-licensed Xerces
 License:	GPL v2 with FLOSS exceptions
@@ -44,6 +44,9 @@ skomplikowaniem odczytu i zapisu XML-a.
 Summary:	API documentation files for XSD
 Summary(pl.UTF-8):	Dokumentacja API XSD
 Group:		Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch:	noarch
 %description apidocs
 This package contains API documentation for XSD.
@@ -72,9 +75,9 @@ rm -rf $RPM_BUILD_ROOT
 # Split API documentation to -doc subpackage.
 rm -rf apidocdir
 install -d apidocdir
-mv $RPM_BUILD_ROOT%{_datadir}/doc/xsd/*.{xhtml,css} apidocdir/
-mv $RPM_BUILD_ROOT%{_datadir}/doc/xsd/cxx/ apidocdir/
-mv $RPM_BUILD_ROOT%{_datadir}/doc/xsd/ docdir/
+mv $RPM_BUILD_ROOT%{_docdir}/xsd/*.{xhtml,css} apidocdir/
+mv $RPM_BUILD_ROOT%{_docdir}/xsd/cxx/ apidocdir/
+mv $RPM_BUILD_ROOT%{_docdir}/xsd/ docdir/
 # Convert to utf-8.
 for file in docdir/NEWS; do
@@ -90,7 +93,7 @@ mv $RPM_BUILD_ROOT%{_bindir}/xsd $RPM_BUILD_ROOT%{_bindir}/xsdcxx
 mv $RPM_BUILD_ROOT%{_mandir}/man1/xsd.1 $RPM_BUILD_ROOT%{_mandir}/man1/xsdcxx.1
 # Remove duplicate docs.
-%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/libxsd
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libxsd
 # Remove Microsoft Visual C++ compiler helper files.
 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/xsd/cxx/compilers

---- gitweb:


More information about the pld-cvs-commit mailing list