]> git.pld-linux.org Git - packages/xsd.git/commitdiff
noarch apidocs auto/th/xsd-3.3.0-9
authorElan Ruusamäe <glen@delfi.ee>
Thu, 3 Apr 2014 20:28:05 +0000 (23:28 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 3 Apr 2014 20:28:05 +0000 (23:28 +0300)
xsd.spec

index 8dc4ef867a1aec298e86dcb9cc5b15f60c8baa32..01d69fe2532673a899edc04c393dc6ee9fdf60b1 100644 (file)
--- 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
+%endif
 
 %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
This page took 0.133957 seconds and 4 git commands to generate.