SHA256
1
0
forked from pool/xfconf

Accepting request 57411 from X11:xfce

Accepted submit request 57411 from user gberh

OBS-URL: https://build.opensuse.org/request/show/57411
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfconf?expand=0&rev=14
This commit is contained in:
2011-01-14 12:48:13 +00:00
committed by Git OBS Bridge
parent b6d89f8351
commit 1ee4621c58
3 changed files with 54 additions and 16 deletions

3
xfconf-rpmlintrc Normal file
View File

@@ -0,0 +1,3 @@
addFilter("no-dependency-on libxfconf.*")
addFilter("devel-file-in-non-devel-package .*/usr/lib/perl5/vendor_perl/.*\.h")

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Dec 27 21:29:48 UTC 2010 - gber@opensuse.org
- remove unecessary dynloader bs file
- use perl symbol for perl dependencies
- corrected groups
- improved summaries/descriptions
- added rpmlintrc
-------------------------------------------------------------------
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

View File

@@ -16,22 +16,30 @@
#
%if 0%{?suse_version} >= 1130
%define withperl 1
%else
%define withperl 0
%endif
Name: xfconf
Version: 4.7.4
Release: 1
License: GPLv2+
%define libname lib%{name}-0-2
Summary: Simple Configuration Storage for XFCE
Summary: Simple Configuration Storage for Xfce
Url: http://www.xfce.org/
Group: System/GUI/XFCE
Source: %{name}-%{version}.tar.bz2
Source100: %{name}-rpmlintrc
Patch0: xfconf-4.7.3-remove-rpath.patch
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: perl-ExtUtils-Depends
BuildRequires: perl-ExtUtils-PkgConfig
BuildRequires: perl-Glib
%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)
@@ -39,40 +47,42 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Xfconf is a simple client-server configuration storage and query system for the
XFCE desktop.
Xfce desktop.
%if %{withperl}
%package -n perl-xfconf
License: GPLv2+
Summary: Simple Configuration Storage for XFCE - Perl Interface
Group: System/GUI/XFCE
Summary: Simple Configuration Storage for Xfce - Perl Interface
Group: Development/Libraries/Perl
Requires: %{name} = %{version}
Requires: perl = %{perl_version}
Requires: perl-Glib
Requires: perl(Glib)
%description -n perl-xfconf
Xfconf is a simple client-server configuration storage and query system for the
XFCE desktop.
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
Summary: Simple Configuration Storage for Xfce - Runtime Library
Group: System/Libraries
Provides: libxfce4mcs = %{version}
Obsoletes: libxfce4mcs < %{version}
%description -n %{libname}
Xfconf is a simple client-server configuration storage and query system for the
XFCE desktop.
Xfce desktop.
This package contains the runtime library.
%package -n libxfconf-devel
License: GPLv2+
Summary: Simple Configuration Storage for XFCE - Runtime Library - Development Files
Summary: Simple Configuration Storage for Xfce - Runtime Library - Development Files
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: pkgconfig(dbus-glib-1)
@@ -85,7 +95,7 @@ Obsoletes: xfce-mcs-manager-devel < %{version}
%description -n libxfconf-devel
Xfconf is a simple client-server configuration storage and query system for the
XFCE desktop.
Xfce desktop.
This package contains files mandatory for development.
@@ -97,7 +107,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 +119,10 @@ make %{?_smp_mflags}
%make_install
rm -f %{buildroot}%{_libdir}/*.la
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,ur_PK}
rm -f %{buildroot}%{perl_vendorarch}/auto/Xfce4/Xfconf/Xfconf.bs
%if %{withperl}
%perl_process_packlist
%endif
%find_lang %{name}
%clean
@@ -135,6 +152,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 +167,6 @@ rm -rf %{buildroot}
%{_localstatedir}/adm/perl-modules/xfconf
%endif
%endif
%changelog