[sratom] Install docs to %{_pkgdocdir} where available (#994105).
Ville Skyttä
scop at fedoraproject.org
Sun Dec 15 20:03:06 UTC 2013
commit 18b2a6f82140bcf82302624b81667aaa43367d1d
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sun Dec 15 22:02:46 2013 +0200
Install docs to %{_pkgdocdir} where available (#994105).
sratom.spec | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/sratom.spec b/sratom.spec
index b0d414e..458ac47 100644
--- a/sratom.spec
+++ b/sratom.spec
@@ -1,8 +1,9 @@
%global maj 0
+%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
Name: sratom
Version: 0.4.2
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: A C library for serializing LV2 plugins
Group: System Environment/Libraries
@@ -52,7 +53,7 @@ export CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--datadir=%{_datadir} \
- --docdir=%{_docdir}/%{name}-devel-%{version} \
+ --docdir=%{_pkgdocdir} \
--test \
--docs
./waf build -v %{?_smp_mflags}
@@ -60,6 +61,7 @@ export CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
%install
DESTDIR=%{buildroot} ./waf install
chmod +x %{buildroot}%{_libdir}/lib%{name}-0.so.*
+install -pm 644 COPYING NEWS README %{buildroot}%{_pkgdocdir}
# tests failing - see http://dev.drobilla.net/ticket/832
#%%check
@@ -70,17 +72,21 @@ chmod +x %{buildroot}%{_libdir}/lib%{name}-0.so.*
%postun -p /sbin/ldconfig
%files
-%doc NEWS README COPYING
+%{_pkgdocdir}
+%exclude %{_pkgdocdir}/%{name}-%{maj}/
%{_libdir}/lib%{name}-%{maj}.so.*
%files devel
+%{_pkgdocdir}/%{name}-%{maj}/
%{_libdir}/lib%{name}-%{maj}.so
%{_libdir}/pkgconfig/%{name}-%{maj}.pc
%{_includedir}/%{name}-%{maj}/
-%{_docdir}/%{name}-devel-%{version}
%{_mandir}/man3/*
%changelog
+* Sun Dec 15 2013 Ville Skyttä <ville.skytta at iki.fi> - 0.4.2-6
+- Install docs to %%{_pkgdocdir} where available (#994105).
+
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list