[python-genmsg/el6: 3/3] Disable documentation for epel

rmattes rmattes at fedoraproject.org
Tue Jun 25 00:20:39 UTC 2013


commit 37bca155cac2b808a80cacb42df5d3cd669d17cf
Author: Rich Mattes <richmattes at gmail.com>
Date:   Mon Jun 24 20:20:20 2013 -0400

    Disable documentation for epel

 python-genmsg.spec |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/python-genmsg.spec b/python-genmsg.spec
index eebd8cf..dda8650 100644
--- a/python-genmsg.spec
+++ b/python-genmsg.spec
@@ -16,9 +16,13 @@ Patch0:         ros-genmsg-etc.patch
 Patch1:         genmsg-0.3.10-docversion.patch
 BuildArch:      noarch
 
+%if 0%{?rhel}
+BuildRequires:  cmake28
+%else
 BuildRequires:  cmake
-BuildRequires:  python-setuptools
 BuildRequires:  python-sphinx
+%endif
+BuildRequires:  python-setuptools
 BuildRequires:  catkin-devel
 BuildRequires:  python-catkin-sphinx
 
@@ -48,14 +52,20 @@ sed -i 's|html_theme = |#html_theme = |' doc/conf.py
 %build
 mkdir build
 pushd build
+%if 0%{?rhel}
+%cmake28 .. \
+%else
 %cmake .. \
+%endif
   -DSETUPTOOLS_DEB_LAYOUT=OFF
 popd
 export PYTHONPATH=$(pwd)/src/genmsg
+%if ! 0%{?rhel}
 pushd doc
 make html man
 rm -r _build/html/.buildinfo
 popd
+%endif
 
 %install
 make -C build install DESTDIR=%{buildroot}
@@ -71,18 +81,22 @@ mkdir -p %{buildroot}/%{_sysconfdir}/ros-langs
 # Remove the first line (a shebang) since it's not an executable script
 sed -i '1,1d' %{buildroot}%{python_sitelib}/%{stackname}/gentools.py
 
+%if ! 0%{?rhel}
 # Install the manpages
 mkdir -p %{buildroot}%{_mandir}/man1
 install -p -m 0644 doc/_build/man/%{stackname}.1 %{buildroot}%{_mandir}/man1/
+%endif
 
 %files
+%if ! 0%{?rhel}
 %doc doc/_build/html
+%{_mandir}/man1/%{stackname}.1.*
+%endif
 %dir %{_datadir}/%{stackname}
 %{_datadir}/%{stackname}/stack.xml
 %{python_sitelib}/%{stackname}
 %{python_sitelib}/*egg-info
 %dir %{_sysconfdir}/ros-langs
-%{_mandir}/man1/%{stackname}.1.*
 
 %files devel
 %{_datadir}/pkgconfig/*.pc
@@ -91,6 +105,7 @@ install -p -m 0644 doc/_build/man/%{stackname}.1 %{buildroot}%{_mandir}/man1/
 %changelog
 * Mon Jun 24 2013 Rich Mattes <richmattes at gmail.com> - 0.3.10-5.20130617git95ca00d
 - Fixed manpage installation
+- Remove documentation for epel
 
 * Sat Jun 22 2013 Rich Mattes <richmattes at gmail.com> - 0.3.10-4.20130617git95ca00d
 - Build and install html documentation and manpage


More information about the scm-commits mailing list