[brd/f19] * Had to handle different doc location in F19 and earlier.
jsbackus
jsbackus at fedoraproject.org
Wed Jul 2 00:05:24 UTC 2014
commit b9feb347c17161192e0437b50760cc17113c168a
Author: Jeff Backus <jeff.backus at gmail.com>
Date: Tue Jul 1 20:04:23 2014 -0400
* Had to handle different doc location in F19 and earlier.
brd.spec | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/brd.spec b/brd.spec
index dac473b..c43ab2c 100644
--- a/brd.spec
+++ b/brd.spec
@@ -2,7 +2,7 @@
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: brd
Version: 1.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Scans directories and files for damage due to decay of storage medium
License: GPLv2+
@@ -31,6 +31,11 @@ cd unit_tests
%install
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
+# Move docs to appropriate place for versions prior to Fedora 20.
+%if 0%{?fedora} < 20
+mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}/%{_pkgdocdir}
+%endif
+
%files
%doc LICENSE README
%{_bindir}/brd
@@ -39,5 +44,8 @@ cd unit_tests
%changelog
+* Tue Jul 01 2014 Jeff Backus <jeff.backus at gmail.com> - 1.0-2
+- Modified to properly install docs on F19 and earlier.
+
* Sun Jun 15 2014 Jeff Backus <jeff.backus at gmail.com> - 1.0-1
- Initial package
More information about the scm-commits
mailing list