Minor conditional tweak for ELN

This minor conditional change allows the package to build in both Fedora Rawhide and ELN.

Signed-off-by: Troy Dawson tdawson@redhat.com
This commit is contained in:
Troy Dawson 2020-07-14 13:38:48 +00:00
parent abfbcaba98
commit 4c6ebb0d2c

View File

@ -25,14 +25,14 @@ BuildRequires: libxslt
BuildRequires: libxml2
BuildRequires: chrpath
BuildRequires: autoconf
%if !0%{?rhel}
%if !0%{?rhel} || 0%{?rhel} >= 9
BuildRequires: ocaml-ounit-devel
BuildRequires: ocaml-camomile-devel >= 0.8.6-3
BuildRequires: ocaml-camomile-data
%endif
BuildRequires: autoconf, automake
%if !0%{?rhel}
%if !0%{?rhel} || 0%{?rhel} >= 9
# ocaml-gettext program needs camomile data files
Requires: ocaml-camomile-data
%endif
@ -66,7 +66,7 @@ The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
%if !0%{?rhel}
%if !0%{?rhel} || 0%{?rhel} >= 9
%package camomile
Summary: Parts of %{name} which depend on Camomile
Requires: %{name} = %{version}-%{release}
@ -160,7 +160,7 @@ rm -rf $RPM_BUILD_ROOT/usr/doc
%{_mandir}/man5/ocaml-gettext.5*
%if !0%{?rhel}
%if !0%{?rhel} || 0%{?rhel} >= 9
%files camomile
%doc LICENSE.txt
%{_libdir}/ocaml/gettext-camomile