5182b88
%global xfceversion 4.18
3f14eb0
05327d1
Name:           xfconf
cfa1a91
Version:        4.18.3
0b8db08
Release:        %autorelease
05327d1
Summary:        Hierarchical configuration system for Xfce
05327d1
05327d1
License:        GPLv2
05327d1
URL:            http://www.xfce.org/
53581c1
#VCS git:git://git.xfce.org/xfce/xfconf
9c5d18b
Source0:        http://archive.xfce.org/src/xfce/%{name}/%{xfceversion}/%{name}-%{version}.tar.bz2
05327d1
32ec348
BuildRequires:  make
05327d1
BuildRequires:  glib2-devel
53581c1
BuildRequires:  pkgconfig(libxfce4util-1.0) >= %{xfceversion}
53581c1
BuildRequires:  pkgconfig(dbus-1) >= 1.1.0
d4e7362
BuildRequires:  pkgconfig(dbus-glib-1) >= 0.84
05327d1
BuildRequires:  gettext
0e7b37c
BuildRequires:  intltool
c235a83
BuildRequires:  gcc-c++
d60e468
BuildRequires:  gobject-introspection-devel
a789992
BuildRequires:  vala
0e7b37c
32ec348
Requires:       dbus
05327d1
53581c1
Obsoletes:      libxfce4mcs < 4.4.3-3
d60e468
Obsoletes:      xfconf-perl < 4.13.8
05327d1
05327d1
%description
05327d1
Xfconf is a hierarchical (tree-like) configuration system where the
05327d1
immediate child nodes of the root are called "channels".  All settings
05327d1
beneath the channel nodes are called "properties."
05327d1
9c5d18b
%package        devel
9c5d18b
Summary:        Development tools for xfconf
9c5d18b
Requires:       %{name} = %{version}-%{release}
9c5d18b
Requires:       pkgconfig
9c5d18b
Requires:       dbus-devel
9c5d18b
Requires:       dbus-glib-devel
9c5d18b
Requires:       glib2-devel
9c5d18b
Obsoletes:      libxfce4mcs-devel < 4.4.3-3
9c5d18b
Obsoletes:      xfce-mcs-manager-devel < 4.4.3-3
05327d1
05327d1
%description devel
05327d1
This package includes the libraries and header files you will need
05327d1
to compile applications for xfconf.
05327d1
05327d1
%prep
05327d1
%setup -q
05327d1
05327d1
%build
b34a854
%configure --disable-static --with-perl-options=INSTALLDIRS="vendor"
05327d1
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
05327d1
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
d60e468
export LD_LIBRARY_PATH="`pwd`/xfconf/.libs"
05327d1
197879d
%make_build
05327d1
05327d1
%install
197879d
%make_install
05327d1
9742e86
# fix permissions for installed libraries
6c3f389
chmod 755 %{buildroot}/%{_libdir}/*.so
197879d
05327d1
# remove .packlist files. 
6c3f389
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
6c3f389
6c3f389
# get rid of .la files
6c3f389
find %{buildroot} -type f -name *.la -exec rm -f {} \;
6c3f389
05327d1
%find_lang %{name}
05327d1
05327d1
%files -f %{name}.lang
197879d
%license COPYING
3f14eb0
%doc AUTHORS NEWS TODO
05327d1
%{_libdir}/lib*.so.*
05327d1
%{_bindir}/xfconf-query
9c5d18b
%{_libdir}/xfce4/xfconf/
d60e468
%{_libdir}/girepository-1.0/Xfconf-0.typelib
a789992
%{_datadir}/vala/vapi/libxfconf-0.deps
a789992
%{_datadir}/vala/vapi/libxfconf-0.vapi
05327d1
%{_datadir}/dbus-1/services/org.xfce.Xfconf.service
d60e468
%{_datadir}/gir-1.0/Xfconf-0.gir
3f14eb0
%{_datadir}/bash-completion/completions/xfconf-query
05327d1
05327d1
%files devel
Kevin Fenzi e8c5cbc
%doc %{_datadir}/gtk-doc
05327d1
%{_libdir}/lib*.so
05327d1
%{_libdir}/pkgconfig/*.pc
05327d1
%{_includedir}/xfce4/xfconf-0
3f14eb0
%{_libdir}/gio/modules/libxfconfgsettingsbackend.so
3f14eb0
%{_datadir}/gtk-doc/html/%{name}/*
05327d1
05327d1
%changelog
0b8db08
%autochangelog