forked from pool/xfconf
176 lines
4.6 KiB
RPMSpec
176 lines
4.6 KiB
RPMSpec
#
|
|
# spec file for package xfconf
|
|
#
|
|
# Copyright (c) 2011 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/
|
|
#
|
|
|
|
|
|
%if 0%{?suse_version} >= 1130
|
|
%define withperl 1
|
|
%else
|
|
%define withperl 0
|
|
%endif
|
|
|
|
Name: xfconf
|
|
Version: 4.8.0
|
|
Release: 1
|
|
License: GPL-2.0+
|
|
%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
|
|
Source100: %{name}-rpmlintrc
|
|
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)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Xfconf is a simple client-server configuration storage and query system for the
|
|
Xfce desktop.
|
|
|
|
%if %{withperl}
|
|
|
|
%package -n perl-xfconf
|
|
License: GPL-2.0+
|
|
Summary: Simple Configuration Storage for Xfce - Perl Interface
|
|
Group: Development/Libraries/Perl
|
|
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: GPL-2.0+
|
|
Summary: Simple Configuration Storage for Xfce - Runtime Library
|
|
Group: System/Libraries
|
|
Provides: libxfce4mcs = %{version}
|
|
Obsoletes: libxfce4mcs < %{version}
|
|
Recommends: %{name} = %{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: GPL-2.0+
|
|
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 %{withperl}
|
|
--with-perl-options='NOECHO= OPTIMIZE="%{optflags}" CCDLFLAGS="-Wl,-E" INSTALLDIRS=vendor' \
|
|
%else
|
|
--disable-perl-bindings \
|
|
%endif
|
|
--enable-gtk-doc
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%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
|
|
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 %{withperl}
|
|
|
|
%files -n perl-xfconf
|
|
%defattr(-,root,root)
|
|
%doc %{_mandir}/man3/Xfce4::Xfconf.3pm*
|
|
%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
|
|
|
|
%endif
|
|
|
|
%changelog
|