SHA256
1
0
forked from pool/xfconf
xfconf/xfconf.spec

163 lines
4.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package xfconf (Version 4.7.3)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: xfconf
Version: 4.7.4
Release: 1
License: GPLv2+
%define libname lib%{name}-0-2
Summary: Simple Configuration Storage for XFCE
Url: http://www.xfce.org/
Group: System/GUI/XFCE
Source: %{name}-%{version}.tar.bz2
Patch0: xfconf-4.7.3-remove-rpath.patch
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: perl-ExtUtils-Depends
BuildRequires: perl-ExtUtils-PkgConfig
BuildRequires: perl-Glib
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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
Group: System/GUI/XFCE
Requires: %{name} = %{version}
Requires: perl = %{perl_version}
Requires: perl-Glib
%description -n perl-xfconf
Xfconf is a simple client-server configuration storage and query system for the
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
Provides: libxfce4mcs = %{version}
Obsoletes: libxfce4mcs < %{version}
%description -n %{libname}
Xfconf is a simple client-server configuration storage and query system for the
XFCE desktop.
This package contains the runtime library.
%package -n libxfconf-devel
License: GPLv2+
Summary: Simple Configuration Storage for XFCE - Runtime Library - Development Files
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: pkgconfig(dbus-glib-1)
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(libxfce4util-1.0)
Provides: libxfce4mcs-devel = %{version}
Obsoletes: libxfce4mcs-devel < %{version}
Provides: xfce-mcs-manager-devel = %{version}
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.
This package contains files mandatory for development.
%prep
%setup -q
%patch0 -p1
%build
%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}
%install
%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
rm -rf %{buildroot}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog TODO
%{_bindir}/xfconf-query
%dir %{_libdir}/xfce4
%dir %{_libdir}/xfce4/xfconf
%{_libdir}/xfce4/xfconf/xfconfd
%{_datadir}/dbus-1/services/*
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.*
%files -n libxfconf-devel
%defattr(-,root,root)
%doc %{_datadir}/gtk-doc/html/xfconf
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%if 0%{?suse_version} >= 1130
%files -n perl-xfconf
%defattr(-,root,root)
%dir %{perl_vendorarch}/Xfce4
%{perl_vendorarch}/Xfce4/Xfconf
%{perl_vendorarch}/Xfce4/Xfconf.pm
%dir %{perl_vendorarch}/auto
%dir %{perl_vendorarch}/auto/Xfce4
%{perl_vendorarch}/auto/Xfce4/Xfconf
%if 0%{?suse_version} < 1140
%{_localstatedir}/adm/perl-modules/xfconf
%endif
%doc %{_mandir}/man3/Xfce4::Xfconf.3pm*
%endif
%changelog