[slv2] Install docs to %{_pkgdocdir} where available (#994098).
Ville Skyttä
scop at fedoraproject.org
Sat Dec 14 20:23:21 UTC 2013
commit e6052da451a4bc1116985f22a9d260e42368c5ac
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Dec 14 22:23:24 2013 +0200
Install docs to %{_pkgdocdir} where available (#994098).
slv2.spec | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/slv2.spec b/slv2.spec
index b364cba..56bb268 100644
--- a/slv2.spec
+++ b/slv2.spec
@@ -1,7 +1,9 @@
+%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
+
Name: slv2
Summary: LV2 host library
Version: 0.6.6
-Release: 13%{?dist}
+Release: 14%{?dist}
License: GPLv2+
Group: System Environment/Libraries
Source0: http://download.drobilla.net/%{name}-%{version}.tar.bz2
@@ -62,7 +64,7 @@ export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
./waf configure --prefix=%{_prefix} \
--libdir=%{_libdir} \
- --htmldir=%{_docdir}/%{name}-devel-%{version} \
+ --htmldir=%{_pkgdocdir} \
--build-docs
./waf build -v %{?_smp_mflags}
@@ -72,25 +74,37 @@ rm -f build/default/doc/man/man3/_*
%install
DESTDIR=%{buildroot} ./waf install
chmod +x %{buildroot}%{_libdir}/lib%{name}.so*
+install -pm 644 AUTHORS ChangeLog COPYING README %{buildroot}%{_pkgdocdir}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
-%doc AUTHORS ChangeLog COPYING README
+%dir %{_pkgdocdir}
+%{_pkgdocdir}/AUTHORS
+%{_pkgdocdir}/ChangeLog
+%{_pkgdocdir}/COPYING
+%{_pkgdocdir}/README
%{_bindir}/lv2*
%{_libdir}/lib%{name}.so.*
%{_mandir}/man1/*
%files devel
-%{_docdir}/%{name}-devel-%{version}
+%{_pkgdocdir}/*
+%exclude %{_pkgdocdir}/AUTHORS
+%exclude %{_pkgdocdir}/ChangeLog
+%exclude %{_pkgdocdir}/COPYING
+%exclude %{_pkgdocdir}/README
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/lib%{name}.so
%{_mandir}/man3/%{name}*
%changelog
+* Sat Dec 14 2013 Ville Skyttä <ville.skytta at iki.fi> - 0.6.6-14
+- Install docs to %%{_pkgdocdir} where available (#994098).
+
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.6.6-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list