From 62ef3a1d80fbfd1b6b9e4008cdb7c6fec592bda4 Mon Sep 17 00:00:00 2001 From: Denis Arnaud Date: Jun 14 2015 13:00:54 +0000 Subject: The noarch clause for the -doc sub-package now also works for EPEL. --- diff --git a/airrac.spec b/airrac.spec index b37fd93..be0bf3b 100644 --- a/airrac.spec +++ b/airrac.spec @@ -44,7 +44,9 @@ programs using %{name}, you will need to install %{name}-devel. %package doc Summary: HTML documentation for the %{name} library Group: Documentation -%{?fedora:BuildArch: noarch} +%if 0%{?fedora} || 0%{?rhel} > 5 +BuildArch: noarch +%endif BuildRequires: tex(latex) BuildRequires: doxygen, ghostscript @@ -73,7 +75,7 @@ rm -f %{mydocs}/html/installdox # Remove additional documentation files (those files are already available # in the project top directory) -rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{NEWS,README,AUTHORS} +rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/{NEWS,README,AUTHORS} %check ctest