From 3162b1e7c2c4ba942752d04f6b0d8a461de19333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 14 Dec 2013 22:17:57 +0200 Subject: [PATCH] Install docs to %{_pkgdocdir} where available (#994091). --- serd.spec | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/serd.spec b/serd.spec index 4c224bf..824c3ba 100644 --- a/serd.spec +++ b/serd.spec @@ -1,8 +1,9 @@ %global maj 0 +%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} Name: serd Version: 0.18.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A lightweight C library for RDF syntax Group: System Environment/Libraries @@ -49,7 +50,7 @@ export CFLAGS="%{optflags}" --libdir=%{_libdir} \ --mandir=%{_mandir} \ --datadir=%{_datadir} \ - --docdir=%{_docdir}/%{name}-devel-%{version} \ + --docdir=%{_pkgdocdir} \ --test \ --docs ./waf build -v %{?_smp_mflags} @@ -57,13 +58,18 @@ export CFLAGS="%{optflags}" %install DESTDIR=%{buildroot} ./waf install chmod +x %{buildroot}%{_libdir}/lib%{name}-%{maj}.so.* +install -pm 644 AUTHORS COPYING NEWS README %{buildroot}%{_pkgdocdir} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -%doc AUTHORS NEWS README COPYING +%dir %{_pkgdocdir}/ +%{_pkgdocdir}/AUTHORS +%{_pkgdocdir}/COPYING +%{_pkgdocdir}/NEWS +%{_pkgdocdir}/README %{_libdir}/lib%{name}-%{maj}.so.* %{_bindir}/serdi %{_mandir}/man1/serdi.1* @@ -72,10 +78,13 @@ chmod +x %{buildroot}%{_libdir}/lib%{name}-%{maj}.so.* %{_libdir}/lib%{name}-%{maj}*.so %{_libdir}/pkgconfig/%{name}*.pc %{_includedir}/%{name}-%{maj}/ -%{_docdir}/%{name}-devel-%{version} +%{_pkgdocdir}/%{name}-%{maj}/ %{_mandir}/man3/*.3* %changelog +* Sat Dec 14 2013 Ville Skyttä - 0.18.2-3 +- Install docs to %%{_pkgdocdir} where available (#994091). + * Sun Aug 04 2013 Fedora Release Engineering - 0.18.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild