[stdair/el6] The HTML pages are no longer built on EPEL.

Denis Arnaud denisarnaud at fedoraproject.org
Sat Dec 22 19:45:25 UTC 2012


commit d44b21dd9b1e9ef99fb51323e11e89264b641615
Author: Denis Arnaud <denis.arnaud_fedora at m4x.org>
Date:   Sat Dec 22 20:45:17 2012 +0100

    The HTML pages are no longer built on EPEL.

 stdair.spec |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/stdair.spec b/stdair.spec
index 7eaa3a0..3af1944 100644
--- a/stdair.spec
+++ b/stdair.spec
@@ -1,5 +1,8 @@
 #
 %global mydocs __tmp_docdir
+%if 0%{?rhel}
+%global _doc_comp_flag_ -DINSTALL_DOC:BOOL=OFF
+%endif
 #
 Name:           stdair
 Version:        1.00.0
@@ -63,7 +66,7 @@ online (http://%{name}.org).
 %build
 mkdir -p build
 pushd build
-%cmake ..
+%cmake %{_doc_comp_flag_} ..
 make %{?_smp_mflags}
 popd
 
@@ -77,8 +80,12 @@ popd
 find $RPM_BUILD_ROOT%{_libexecdir}/%{name} -type f -name '*.sh' -exec chmod +x {} \;
 
 mkdir -p %{mydocs}
+%if 0%{?rhel}
+mkdir %{mydocs}/html
+%else
 mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{mydocs}
 rm -f %{mydocs}/html/installdox
+%endif
 
 %check
 pushd build


More information about the scm-commits mailing list