+# NOTE: for versions >= 1.8 see efl.spec
#
# Conditional build:
%bcond_without static_libs # don't build static library
#
-%define _snap 20080813
-%define ecore_ver 0.9.9.044
+%define ecore_ver 1.7.10
+%define eet_ver 1.7.10
+%define eina_ver 1.7.10
Summary: freedesktop.org standards implementation for the EFL
Summary(pl.UTF-8): Implementacja standardów freedesktop.org dla EFL
Name: efreet
-Version: 0.5.0.045
-Release: 0.%{_snap}.1
+Version: 1.7.10
+Release: 2
License: BSD
Group: X11/Libraries
-Source0: %{name}-%{version}-%{_snap}.tar.bz2
-# Source0-md5: 1625909f41a65cd71648c8b87e33b94a
-URL: http://enlightenment.org/p.php?p=about/libs/efreet
+Source0: http://download.enlightenment.org/releases/%{name}-%{version}.tar.bz2
+# Source0-md5: 4aa5d4a677abd2d5a013ccfe61be8824
+URL: http://trac.enlightenment.org/e/wiki/Efreet
BuildRequires: autoconf >= 2.52
BuildRequires: automake >= 1.6
-# ecore-file; ecore-desktop for tests
BuildRequires: ecore-devel >= %{ecore_ver}
+BuildRequires: ecore-file-devel >= %{ecore_ver}
+BuildRequires: eet-devel >= %{eet_ver}
+BuildRequires: eina-devel >= %{eina_ver}
+BuildRequires: gettext-tools >= 0.17
BuildRequires: libtool
-BuildRequires: pkgconfig
-BuildRequires: sed >= 4.0
+BuildRequires: pkgconfig >= 1:0.22
+Requires: ecore >= %{ecore_ver}
Requires: ecore-file >= %{ecore_ver}
+Requires: eet >= %{eet_ver}
+Requires: eina >= %{eina_ver}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary(pl.UTF-8): Pliki nagłówkowe Efreet
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-# ecore-file
-BuildRequires: ecore-devel >= %{ecore_ver}
+Requires: ecore-devel >= %{ecore_ver}
+Requires: ecore-file-devel >= %{ecore_ver}
+Requires: eet-devel >= %{eet_ver}
+Requires: eina-devel >= %{eina_ver}
%description devel
Header files for Efreet.
Statyczna biblioteka Efreet.
%prep
-%setup -q -n %{name}-%{version}-%{_snap}
-
-sed -i -e 's/-g -O0//' src/lib/Makefile.am
+%setup -q
%build
+%{__gettextize}
%{__libtoolize}
%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
+ --disable-silent-rules \
%{!?with_static_libs:--disable-static}
%{__make}
DESTDIR=$RPM_BUILD_ROOT
# just tests
-rm -f $RPM_BUILD_ROOT%{_bindir}/efreet_{alloc,menu_alloc,test,spec_test,cache_test}
-rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/test
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/efreet_{alloc,menu_alloc,test,spec_test,cache_test}
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/test
+
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS COPYING README TODO
+%doc AUTHORS COPYING ChangeLog NEWS README TODO
+%attr(755,root,root) %{_bindir}/efreet_icon_cache_dump
%attr(755,root,root) %{_libdir}/libefreet.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libefreet.so.0
+%attr(755,root,root) %ghost %{_libdir}/libefreet.so.1
%attr(755,root,root) %{_libdir}/libefreet_mime.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libefreet_mime.so.0
+%attr(755,root,root) %ghost %{_libdir}/libefreet_mime.so.1
%attr(755,root,root) %{_libdir}/libefreet_trash.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libefreet_trash.so.0
+%attr(755,root,root) %ghost %{_libdir}/libefreet_trash.so.1
+%dir %{_libdir}/efreet
+%attr(755,root,root) %{_libdir}/efreet/efreet_desktop_cache_create
+%attr(755,root,root) %{_libdir}/efreet/efreet_icon_cache_create
%files devel
%defattr(644,root,root,755)
%{_libdir}/libefreet.la
%{_libdir}/libefreet_mime.la
%{_libdir}/libefreet_trash.la
-%{_includedir}/efreet
+%{_includedir}/efreet-1
%{_pkgconfigdir}/efreet.pc
%{_pkgconfigdir}/efreet-mime.pc
%{_pkgconfigdir}/efreet-trash.pc