[flaw] Install docs to %{_pkgdocdir} where available (#993753).
Ville Skyttä
scop at fedoraproject.org
Sat Nov 16 08:25:40 UTC 2013
commit c105774ad14c9a4dc2bce707465cdd037dcbd34b
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Nov 16 10:25:57 2013 +0200
Install docs to %{_pkgdocdir} where available (#993753).
flaw.spec | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/flaw.spec b/flaw.spec
index e528992..b685e8b 100644
--- a/flaw.spec
+++ b/flaw.spec
@@ -1,6 +1,8 @@
+%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
+
Name: flaw
Version: 1.3.2a
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Free top-down wizard battle game
Group: Amusements/Games
License: GPLv3+
@@ -28,7 +30,7 @@ chmod 644 src/*.cc
chmod 644 src/*.h
%build
-%configure --docdir=%{_docdir}/%{name}-%{version} --enable-fontpath=%{_datadir}/fonts/gnu-free/
+%configure --docdir=%{_pkgdocdir} --enable-fontpath=%{_datadir}/fonts/gnu-free/
make %{?_smp_mflags}
%install
@@ -46,10 +48,13 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/flaw
%{_datadir}/pixmaps/flaw.png
%{_datadir}/applications/flaw.desktop
-%exclude %{_docdir}/%{name}-%{version}/INSTALL
-%doc %{_docdir}/%{name}-%{version}
+%exclude %{_pkgdocdir}/INSTALL
+%doc %{_pkgdocdir}
%changelog
+* Sat Nov 16 2013 Ville Skyttä <ville.skytta at iki.fi> - 1.3.2a-5
+- Install docs to %%{_pkgdocdir} where available (#993753).
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.2a-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list