diff --git a/glib2.spec b/glib2.spec index 18f81be..4b456ef 100644 --- a/glib2.spec +++ b/glib2.spec @@ -69,6 +69,7 @@ BuildArch: noarch %description doc The glib2-doc package includes documentation for the GLib library. +%if 0%{?fedora} || 0%{?rhel} <= 8 %package fam Summary: FAM monitoring module for GIO Requires: %{name}%{?_isa} = %{version}-%{release} @@ -76,6 +77,7 @@ BuildRequires: gamin-devel %description fam The glib2-fam package contains the FAM (File Alteration Monitor) module for GIO. +%endif %if 0%{?fedora} %package static @@ -109,7 +111,9 @@ rm glib/pcre/*.[ch] -Ddtrace=true \ -Dsystemtap=true \ -Dgtk_doc=true \ +%if 0%{?fedora} || 0%{?rhel} <= 8 -Dfam=true \ +%endif -Dinstalled_tests=true \ %if 0%{?rhel} -Dgnutls=true \ @@ -225,8 +229,10 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %files doc %doc %{_datadir}/gtk-doc/html/* +%if 0%{?fedora} || 0%{?rhel} <= 8 %files fam %{_libdir}/gio/modules/libgiofam.so +%endif %if 0%{?fedora} %files static