From ad3ad4796445522e0237d42dd3df0cf444922e12 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Thu, 6 Aug 2009 19:05:54 +0000 Subject: [PATCH] Add SuSE docdir handling. --- xmltooling.spec.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xmltooling.spec.in b/xmltooling.spec.in index d174f95..11c6912 100644 --- a/xmltooling.spec.in +++ b/xmltooling.spec.in @@ -20,6 +20,12 @@ BuildRequires: gcc-c++, openssl-devel, curl-devel >= 7.10.6 %{?_with_log4cpp:BuildRequires: %{libpkgprefix}log4cpp-devel >= 1.0} %{!?_with_log4cpp:BuildRequires: %{libpkgprefix}log4shib-devel} +%if "%{_vendor}" == "suse" +%define pkgdocdir %{_docdir}/%{name} +%else +%define pkgdocdir %{_docdir}/%{name}-%{version} +%endif + %description The XMLTooling library contains generic XML parsing and processing classes based on the Xerces-C DOM. It adds more powerful facilities @@ -84,7 +90,7 @@ This package includes files needed for development with xmltooling. %{__make} %install -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install DESTDIR=$RPM_BUILD_ROOT pkgdocdir=%{pkgdocdir} # Don't package unit tester if present. %{__rm} -f $RPM_BUILD_ROOT/%{_bindir}/xmltoolingtest -- 2.1.4