forked from pool/xfconf
- build perl bindings only on openSUSE 11.3 and newer
OBS-URL: https://build.opensuse.org/package/show/X11:xfce/xfconf?expand=0&rev=28
This commit is contained in:
committed by
Git OBS Bridge
parent
3c3f19d80d
commit
523dd9a24c
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 15 18:57:50 UTC 2010 - prusnak@opensuse.org
|
||||
|
||||
- build perl bindings only on openSUSE 11.3 and newer
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 5 22:11:29 UTC 2010 - prusnak@opensuse.org
|
||||
|
||||
|
23
xfconf.spec
23
xfconf.spec
@@ -16,6 +16,11 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} >= 1130
|
||||
%define withperl 1
|
||||
%else
|
||||
%define withperl 0
|
||||
%endif
|
||||
|
||||
Name: xfconf
|
||||
Version: 4.7.4
|
||||
@@ -29,9 +34,11 @@ Source: %{name}-%{version}.tar.bz2
|
||||
Patch0: xfconf-4.7.3-remove-rpath.patch
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: intltool
|
||||
%if %{withperl}
|
||||
BuildRequires: perl-ExtUtils-Depends
|
||||
BuildRequires: perl-ExtUtils-PkgConfig
|
||||
BuildRequires: perl-Glib
|
||||
%endif
|
||||
BuildRequires: pkgconfig(dbus-glib-1)
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(libxfce4util-1.0)
|
||||
@@ -41,6 +48,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Xfconf is a simple client-server configuration storage and query system for the
|
||||
XFCE desktop.
|
||||
|
||||
%if %{withperl}
|
||||
|
||||
%package -n perl-xfconf
|
||||
License: GPLv2+
|
||||
Summary: Simple Configuration Storage for XFCE - Perl Interface
|
||||
@@ -55,9 +64,9 @@ XFCE desktop.
|
||||
|
||||
This package contains the Perl interface to %{name}.
|
||||
|
||||
%endif
|
||||
|
||||
%package -n %{libname}
|
||||
|
||||
|
||||
License: GPLv2+
|
||||
Summary: Simple Configuration Storage for XFCE - Runtime Library
|
||||
Group: System/GUI/XFCE
|
||||
@@ -97,7 +106,11 @@ This package contains files mandatory for development.
|
||||
%configure \
|
||||
--disable-silent-rules \
|
||||
--disable-static \
|
||||
%if %{withperl}
|
||||
--with-perl-options='NOECHO= OPTIMIZE="%{optflags}" CCDLFLAGS="-Wl,-E" INSTALLDIRS=vendor' \
|
||||
%else
|
||||
--disable-perl-bindings \
|
||||
%endif
|
||||
--enable-gtk-doc
|
||||
make %{?_smp_mflags}
|
||||
|
||||
@@ -105,7 +118,9 @@ make %{?_smp_mflags}
|
||||
%make_install
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,ur_PK}
|
||||
%if %{withperl}
|
||||
%perl_process_packlist
|
||||
%endif
|
||||
%find_lang %{name}
|
||||
|
||||
%clean
|
||||
@@ -135,6 +150,8 @@ rm -rf %{buildroot}
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*
|
||||
|
||||
%if %{withperl}
|
||||
|
||||
%files -n perl-xfconf
|
||||
%defattr(-,root,root)
|
||||
%doc %{_mandir}/man3/Xfce4::Xfconf.3pm*
|
||||
@@ -148,4 +165,6 @@ rm -rf %{buildroot}
|
||||
%{_localstatedir}/adm/perl-modules/xfconf
|
||||
%endif
|
||||
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user