diff --git a/xfconf.spec b/xfconf.spec index 8f653c1..ab6e30d 100644 --- a/xfconf.spec +++ b/xfconf.spec @@ -1,8 +1,13 @@ %global xfceversion 4.13 +%if 0%{?fedora} +%bcond_without perl +%else +%bcond_with perl +%endif Name: xfconf Version: 4.13.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Hierarchical configuration system for Xfce Group: System Environment/Base @@ -15,6 +20,7 @@ BuildRequires: glib2-devel BuildRequires: pkgconfig(libxfce4util-1.0) >= %{xfceversion} BuildRequires: pkgconfig(dbus-1) >= 1.1.0 BuildRequires: pkgconfig(dbus-glib-1) >= 0.84 +%if %{with perl} BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl(ExtUtils::Depends) @@ -22,6 +28,7 @@ BuildRequires: perl(ExtUtils::PkgConfig) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Glib) BuildRequires: perl(Glib::MakeHelper) +%endif BuildRequires: gettext BuildRequires: intltool BuildRequires: gcc-c++ @@ -50,6 +57,7 @@ Obsoletes: xfce-mcs-manager-devel < 4.4.3-3 This package includes the libraries and header files you will need to compile applications for xfconf. +%if %{with perl} %package perl Summary: Perl modules for xfconf Group: Development/Libraries @@ -59,6 +67,7 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi %description perl This package includes the perl modules and files you will need to interact with xfconf using perl. +%endif %prep %setup -q @@ -76,21 +85,23 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool # fix permissions for installed libraries chmod 755 %{buildroot}/%{_libdir}/*.so +%if %{with perl} # remove perl temp file rm -f %{buildroot}/%{perl_archlib}/perllocal.pod # remove unneeded dynloader bootstrap file rm -f %{buildroot}/%{perl_vendorarch}/auto/Xfce4/Xfconf/Xfconf.bs +# fix permissions on the .so file +chmod 755 %{buildroot}/%{perl_vendorarch}/auto/Xfce4/Xfconf/Xfconf.so +%endif + # remove .packlist files. find %{buildroot} -type f -name .packlist -exec rm -f {} \; # get rid of .la files find %{buildroot} -type f -name *.la -exec rm -f {} \; -# fix permissions on the .so file -chmod 755 %{buildroot}/%{perl_vendorarch}/auto/Xfce4/Xfconf/Xfconf.so - %find_lang %{name} %files -f %{name}.lang @@ -108,12 +119,17 @@ chmod 755 %{buildroot}/%{perl_vendorarch}/auto/Xfce4/Xfconf/Xfconf.so %{_libdir}/pkgconfig/*.pc %{_includedir}/xfce4/xfconf-0 +%if %{with perl} %files perl %{perl_vendorarch}/auto/* %{perl_vendorarch}/Xfce4 %{_mandir}/man3/*.3* +%endif %changelog +* Thu Jan 17 2019 Dan HorĂ¡k - 4.13.6-3 +- Limit the perl subpackage to Fedora, nothing requires it anyway + * Mon Oct 22 2018 Mukundan Ragavan - 4.13.6-2 - Fix files section - Spec clean up