Summary:		Application library for the Xfce desktop environment
Name:			@PACKAGE_TARNAME@@LIBEXO_VERSION_API@
Version:		@PACKAGE_VERSION@
Release:		1
License:		LGPL
URL:			http://libexo.os-cillation.com/
Source0:		%{name}-%{version}.tar.gz
Group:			Development/Libraries
BuildRoot:		%{_tmppath}/%{name}-root
Requires:		gtk2 >= @GTK_REQUIRED_VERSION@
Requires:		libxfce4util >= @LIBXFCE4UTIL_REQUIRED_VERSION@
BuildRequires:		gtk2-devel >= @GTK_REQUIRED_VERSION@
BuildRequires:		libxfce4util-devel >= @LIBXFCE4UTIL_REQUIRED_VERSION@
BuildRequires:		xfce-mcs-manager >= @XFCE_MCS_MANAGER_REQUIRED_VERSION@
BuildRequires:		gtk-doc

%description
Extension library for Xfce, targeted at application development.

%package devel
Summary:	Development files for the exo library
Group:		Development/Libraries
Requires:	@PACKAGE_TARNAME@@LIBEXO_VERSION_API@ >= @PACKAGE_VERSION@

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

%prep
%setup -q

%build
%configure --enable-final --enable-gtk-doc --disable-python --enable-xfce-mcs-manager --enable-xsltproc
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir}
mv $RPM_BUILD_ROOT/%{_datadir}/gtk-doc/html/exo $RPM_BUILD_ROOT/%{_datadir}/gtk-doc/html/exo-@LIBEXO_VERSION_API@

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
/sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%files
%defattr(-,root,root)
%{_bindir}/exo-desktop-item-edit
%{_bindir}/exo-open
%{_bindir}/exo-preferred-applications
%{_datadir}/applications
%{_datadir}/icons
%{_datadir}/locale
%{_datadir}/pixmaps
%{_datadir}/xfce4
%{_libdir}/lib*.so.*
%{_libdir}/xfce4/mcs-plugins/*
%{_libexecdir}
%{_mandir}/man1/exo-open.*
%{_sysconfdir}

%files devel
%defattr(-, root, root)
%{_bindir}/exo-csource
%{_datadir}/gtk-doc
%{_includedir}
%{_libdir}/lib*.so
%{_libdir}/lib*a
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man1/exo-csource.*

