%define url_ver %(echo %{version} | cut -d. -f1,2) %define major 3 %define apiver 0 %define libname %mklibname %{name} %{apiver} %{major} %define develname %mklibname %{name} -d %define girname %mklibname %{name}-gir %{apiver} %define _disable_rebuild_configure 1 %bcond_without gsettings %bcond_with perl Summary: A configuration storage system for Xfce Name: xfconf Version: 4.16.0 Release: 1 License: GPLv2+ Group: Graphical desktop/Xfce Url: http://www.xfce.org Source0: http://archive.xfce.org/src/xfce/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2 Source1: xfconf.rpmlintrc BuildRequires: gettext BuildRequires: intltool BuildRequires: gtk-doc BuildRequires: gtk-doc-mkpdf BuildRequires: pkgconfig(libxfce4util-1.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: xfce4-dev-tools BuildRequires: pkgconfig(vapigen) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) %if %{with perl_bindings} BuildRequires: perl-devel BuildRequires: perl(ExtUtils::Depends) BuildRequires: perl(ExtUtils::PkgConfig) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Glib) BuildRequires: perl(Glib::MakeHelper) %endif Requires: dbus-x11 %description Xfconf is a hierarchical (tree-like) configuration system for the Xfce graphical desktop environment. %files -f %{name}.lang %doc AUTHORS NEWS ChangeLog %dir %{_sysconfdir}/xdg/xfce4/xfconf %{_bindir}/xfconf-query %{_libdir}/xfce4/%{name}/xfconfd %if %{with gsettings} %{_libdir}/gio/modules/libxfconfgsettingsbackend.so %endif %{_datadir}/dbus-1/services/org.xfce.Xfconf.service %{_datadir}/gtk-doc/html/xfconf %{_datadir}/bash-completion/completions/xfconf-query #--------------------------------------------------------------------------- %package -n %{libname} Summary: Main library for xfconf Group: System/Libraries Requires: %{name} = %{version}-%{release} Obsoletes: %{mklibname %{name} 0} < 4.5.92 %description -n %{libname} Main library for the xfconf, a configuration storage system for Xfce. %files -n %{libname} %{_libdir}/*xfconf-%{apiver}.so.%{major}* #--------------------------------------------------------------------------- %package -n %{develname} Summary: Development files for xfconf Group: Development/C++ Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} %description -n %{develname} Development files and headers for xfconf. %files -n %{develname} %{_includedir}/xfce4/xfconf-%{apiver} %{_libdir}/libxfconf-%{apiver}.so %{_libdir}/pkgconfig/libxfconf-%{apiver}.pc %{_datadir}/vala/vapi/libxfconf-0.{deps,vapi} %{_datadir}/gir-1.0/Xfconf-%{apiver}.gir #--------------------------------------------------------------------------- %package -n %{girname} Summary: GObject Introspection interface description for Xfconf Group: System/Libraries Requires: %{libname} = %{version}-%{release} %description -n %{girname} GObject Introspection interface description for Xfconf. %files -n %{girname} %{_libdir}/girepository-1.0/Xfconf-%{apiver}.typelib #--------------------------------------------------------------------------- %if %{with perl} %package -n perl-%{name} Summary: Perl bindings for %{name} Group: Development/Perl Requires: %{libname} = %{version}-%{release} %description -n perl-%{name} Perl bindings for %{name}. %files -n perl-%{name} %dir %{perl_sitearch}/Xfce4 %dir %{perl_sitearch}/Xfce4/Xfconf %dir %{perl_sitearch}/Xfce4/Xfconf/Install %dir %{perl_sitearch}/auto/Xfce4/Xfconf %{perl_sitearch}/Xfce4/*.pm %{perl_sitearch}/Xfce4/Xfconf/Install/* %{perl_sitearch}/auto/Xfce4/Xfconf/*.so %{_mandir}/man3/Xfce4::Xfconf.3pm.* %endif #--------------------------------------------------------------------------- %prep %setup -q %autopatch -p1 %build %configure \ %{?with_gsettings:--enable-gsettings-backend} \ %{!?with_perl:--disable-perl-bindings} \ %{nil} %make_build %install %make_install # remove unwanted find %{buildroot} -name "*.la" -delete # xdg install -dm 0755 %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf %if %{with perl} # fix permissions chmod 755 %{buildroot}%{perl_vendorarch}/auto/Xfce4/Xfconf/Xfconf.so chrpath -d %{buildroot}%{perl_vendorarch}/auto/Xfce4/Xfconf/Xfconf.so # fix man path install -dm 0755 %{buildroot}%{_mandir}/man3 mv -f %{buildroot}/usr/local/share/man/man3/Xfce4::Xfconf.3pm %{buildroot}%{_mandir}/man3 %endif # locales %find_lang %{name} %{name}.lang