diff --git a/yara.spec b/yara.spec index 7e55a2e..a44083e 100644 --- a/yara.spec +++ b/yara.spec @@ -81,12 +81,14 @@ binary patterns. Each description, a.k.a rule, consists of a set of strings and a Boolean expression which determine its logic. +%if ! ( 0%{?rhel} && 0%{?rhel} <= 6 ) %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc This package contains documentation for %{name}. +%endif %package devel @@ -132,10 +134,12 @@ autoreconf --force --install --htmldir=%{_datadir}/doc/%{name}/html make %{?_smp_mflags} +%if ! ( 0%{?rhel} && 0%{?rhel} <= 6 ) # build the HTML documentation pushd docs make html popd +%endif %install @@ -168,10 +172,11 @@ rm -f %{buildroot}%{_datadir}/doc/%{name}/html/.buildinfo %{_libdir}/*.so %{_libdir}/pkgconfig/%{name}.pc - +%if ! ( 0%{?rhel} && 0%{?rhel} <= 6 ) %files doc %license COPYING %doc docs/_build/html +%endif %changelog