From d44b21dd9b1e9ef99fb51323e11e89264b641615 Mon Sep 17 00:00:00 2001 From: Denis Arnaud Date: Sat, 22 Dec 2012 20:45:17 +0100 Subject: [PATCH] The HTML pages are no longer built on EPEL. --- stdair.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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