Summary: 	Utility library for the Xfce desktop environment
Name: 		@PACKAGE_TARNAME@
Version: 	@PACKAGE_VERSION@
Release: 	1
License:	LGPL
URL: 		http://www.xfce.org/
Source0: 	%{name}-%{version}.tar.gz
Group: 		Development/Libraries
BuildRoot: 	%{_tmppath}/%{name}-root
Requires:	glib2 >= @GOBJECT_REQUIRED_VERSION@
BuildRequires: 	glib2-devel >= @GOBJECT_REQUIRED_VERSION@
BuildRequires:	gtk-doc

%description
Basic utility non-GUI functions for the Xfce desktop environment.

%package devel
Summary:	developpment tools for libxfce4util library
Group:		Development/Libraries
Requires:	libxfce4util

%description devel
Static libraries and header files for the libxfce4util library.

%prep
%setup -q

%build
%configure --enable-final --enable-gtk-doc
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir}

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%{_sbindir}/*

%files devel
%defattr(-, root, root)
%{_libdir}/lib*.so
%{_libdir}/*a
%{_libdir}/pkgconfig/*.pc
%{_includedir}/xfce4/libxfce4util
%{_datadir}/gtk-doc

