SHA256
1
0
forked from pool/xfconf

- build perl bindings only for openSUSE 11.3+

OBS-URL: https://build.opensuse.org/package/show/X11:xfce/xfconf?expand=0&rev=25
This commit is contained in:
Pavol Rusnak
2010-12-06 12:55:22 +00:00
committed by Git OBS Bridge
parent ad4b7e0f88
commit 3edb43f5ae
2 changed files with 17 additions and 0 deletions

View File

@@ -41,6 +41,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
Xfconf is a simple client-server configuration storage and query system for the
XFCE desktop.
%if 0%{?suse_version} >= 1130
%package -n perl-xfconf
License: GPLv2+
Summary: Simple Configuration Storage for XFCE - Perl Interface
@@ -55,6 +57,8 @@ XFCE desktop.
This package contains the Perl interface to %{name}.
%endif
%package -n %{libname}
License: GPLv2+
@@ -96,7 +100,9 @@ This package contains files mandatory for development.
%configure \
--disable-silent-rules \
--disable-static \
%if 0%{?suse_version} >= 1130
--with-perl-options='NOECHO= OPTIMIZE="%{optflags}" CCDLFLAGS="-Wl,-E" INSTALLDIRS=vendor' \
%endif
--enable-gtk-doc
make %{?_smp_mflags}
@@ -104,7 +110,9 @@ make %{?_smp_mflags}
%make_install
rm -f %{buildroot}%{_libdir}/*.la
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,ur_PK}
%if 0%{?suse_version} >= 1130
%perl_process_packlist
%endif
%find_lang %{name}
%clean
@@ -134,6 +142,8 @@ rm -rf %{buildroot}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%if 0%{?suse_version} >= 1130
%files -n perl-xfconf
%defattr(-,root,root)
%dir %{perl_vendorarch}/Xfce4
@@ -147,4 +157,6 @@ rm -rf %{buildroot}
%endif
%doc %{_mandir}/man3/Xfce4::Xfconf.3pm*
%endif
%changelog