[python-whisper] Include man pages from Debian
Jamie Nguyen
jamielinux at fedoraproject.org
Wed Oct 1 09:17:28 UTC 2014
commit a9073975b1bfc1afbfcf51b4114d14aed29be0ad
Author: Jamie Nguyen <j at jamielinux.com>
Date: Wed Oct 1 09:45:35 2014 +0100
Include man pages from Debian
python-whisper.spec | 35 +++++++++++++++++++++++++++++++++--
1 files changed, 33 insertions(+), 2 deletions(-)
---
diff --git a/python-whisper.spec b/python-whisper.spec
index 739ca26..5313e30 100644
--- a/python-whisper.spec
+++ b/python-whisper.spec
@@ -12,10 +12,20 @@ License: ASL 2.0
URL: https://github.com/graphite-project
Source0: https://github.com/graphite-project/whisper/archive/%{commit}/%{name}-%{commit}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source10: rrd2whisper.1
+Source11: whisper-create.1
+Source12: whisper-dump.1
+Source13: whisper-fetch.1
+Source14: whisper-info.1
+Source15: whisper-merge.1
+Source16: whisper-resize.1
+Source17: whisper-set-aggregation-method.1
+Source18: whisper-update.1
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-BuildRequires: python-devel, python-setuptools
+BuildRequires: python-devel
+BuildRequires: python-setuptools
%description
@@ -38,6 +48,18 @@ of historical data.
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+# man pages
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+install -D -p -m0644 %{SOURCE10} $RPM_BUILD_ROOT%{_mandir}/man1
+install -D -p -m0644 %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man1
+install -D -p -m0644 %{SOURCE12} $RPM_BUILD_ROOT%{_mandir}/man1
+install -D -p -m0644 %{SOURCE13} $RPM_BUILD_ROOT%{_mandir}/man1
+install -D -p -m0644 %{SOURCE14} $RPM_BUILD_ROOT%{_mandir}/man1
+install -D -p -m0644 %{SOURCE15} $RPM_BUILD_ROOT%{_mandir}/man1
+install -D -p -m0644 %{SOURCE16} $RPM_BUILD_ROOT%{_mandir}/man1
+install -D -p -m0644 %{SOURCE17} $RPM_BUILD_ROOT%{_mandir}/man1
+install -D -p -m0644 %{SOURCE18} $RPM_BUILD_ROOT%{_mandir}/man1
+
# Temp mv to non .py locations
pushd $RPM_BUILD_ROOT/usr/bin/
%{__mv} rrd2whisper.py rrd2whisper
@@ -56,6 +78,15 @@ popd
%{python_sitelib}/*
%{_bindir}/whisper*
%{_bindir}/rrd2whisper
+%{_mandir}/man1/rrd2whisper.1*
+%{_mandir}/man1/whisper-create.1*
+%{_mandir}/man1/whisper-dump.1*
+%{_mandir}/man1/whisper-fetch.1*
+%{_mandir}/man1/whisper-info.1*
+%{_mandir}/man1/whisper-merge.1*
+%{_mandir}/man1/whisper-resize.1*
+%{_mandir}/man1/whisper-set-aggregation-method.1*
+%{_mandir}/man1/whisper-update.1*
%changelog
More information about the scm-commits
mailing list