]> git.pld-linux.org Git - packages/epsilon.git/blobdiff - epsilon.spec
- note
[packages/epsilon.git] / epsilon.spec
index 6ff7ac95a647e3299b8741c8d24cbfac8c772ae7..8b10f1188c2658bf005f8e7b989f57656048f5c4 100644 (file)
+# NOTE: this library is obsolete, don't on ftp
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+%bcond_with    epeg            # use Epeg for JPEG scaling (no longer supported by configure)
+#
+%define                ecore_ver       1.0.0
+%define                edje_ver        0.9.9.044
+%define                epeg_ver        0.9.1.043
+%define                evas_ver        0.9.9.044
+%define                _snap   20080813
+
 Summary:       Enlightened Thumbnail Generator
-Summary(pl):   O¶wiecony generator miniaturek obrazów
+Summary(pl.UTF-8):     Oświecony generator miniaturek obrazów
 Name:          epsilon
-Version:       0.3.0.004
-Release:       1
+Version:       0.3.0.013
+Release:       0.%{_snap}.1.1
 License:       BSD
 Group:         X11/Libraries
-Source0:       http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
-# Source0-md5: 10118c712b42d00b332c6fe1d9257661
-URL:           http://enlightenment.org/Libraries/Epsilon/
+Source0:       %{name}-%{version}-%{_snap}.tar.bz2
+# Source0-md5: b677b9c39aa2d5b467503faffd4b4879
+# this patch is probably incomplete, Ecore_List and Eina_List semantics differ
+Patch0:                %{name}-update.patch
+URL:           http://enlightenment.org/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: edje-devel
-BuildRequires: epeg-devel
+BuildRequires: ecore-devel >= %{ecore_ver}
+BuildRequires: ecore-evas-devel >= %{ecore_ver}
+BuildRequires: ecore-file-devel >= %{ecore_ver}
+BuildRequires: ecore-ipc-devel >= %{ecore_ver}
+BuildRequires: edje-devel >= %{edje_ver}
+%{?with_epeg:BuildRequires:    epeg-devel >= %{epeg_ver}}
+BuildRequires: evas-devel >= %{evas_ver}
+BuildRequires: imlib2-devel >= 1.0.0
+BuildRequires: libpng-devel >= 1.2.0
 BuildRequires: libtool
+BuildRequires: perl-base
+BuildRequires: pkgconfig
+BuildRequires: xine-lib-devel >= 1:1.0.0
+Requires:      %{name}-libs = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%undefine      __cxx
+
 %description
 Epsilon is a small, display independent, and quick thumbnailing
 library. The lib itself conforms to the standard put forth by
 freedesktop.org . You can find out more information about it at
 http://triq.net/~jens/thumbnail-spec/index.html .
+%if %{with epeg}
 
 Epeg offers very noticeable speed increases to this standard, but it
 is only available if the input image is a JPEG file. If the file is
 anything other than jpg, the traditional freedesktop.org thumbnailing
 will occur. To show the speed increase epeg offers, Epsilon can be
 built with and without epeg.
+%endif
 
-%description -l pl
-Epsilon to ma³a, niezale¿na od ekranu i szybka biblioteka do
-generowania miniaturek obrazów. Sama biblioteka jest zgodna ze
-standardem opracowanym przez freedesktop.org . Wiêcej informacji
-mo¿na znale¼æ pod adresem
+Note: this library is obsolete; Ethumb should be used instead.
+
+%description -l pl.UTF-8
+Epsilon to mała, niezależna od ekranu i szybka biblioteka do
+generowania miniaturek obrazów. Sama biblioteka jest zgodna ze
+standardem opracowanym przez freedesktop.org . Więcej informacji
+można znaleźć pod adresem
 http://triq.net/~jens/thumbnail-spec/index.html .
+%if %{with epeg}
+
+Epeg oferuje bardzo zauważalne przyspieszenie w stosunku do tego
+standardu, ale jest ono dostępne tylko jeśli obrazek jest plikiem
+JPEG. Jeśli plik jest innego typu, zostanie użyte tradycyjne
+zachowanie freedesktop.org . Aby pokazać przyspieszenie oferowane
+przez epeg, Epsilon może być zbudowany z lub bez epeg.
+%endif
+
+Uwaga: ta biblioteka jest przestarzała; zamiast niej należy używać
+biblioteki Ethumb.
+
+%package libs
+Summary:       Epsilon library
+Summary(pl.UTF-8):     Biblioteka Epsilon
+Group:         X11/Libraries
+Requires:      ecore-evas >= %{ecore_ver}
+Requires:      ecore-file >= %{ecore_ver}
+Requires:      ecore-ipc >= %{ecore_ver}
+Requires:      edje-libs >= %{edje_ver}
+%{?with_epeg:Requires: epeg-libs >= %{epeg_ver}}
+Requires:      evas >= %{evas_ver}
+Requires:      imlib2 >= 1.0.0
+
+%description libs
+Epsilon library.
 
-Epeg oferuje bardzo zauwa¿alne przyspieszenie w stosunku do tego
-standardu, ale jest ono dostêpne tylko je¶li obrazek jest plikiem
-JPEG. Je¶li plik jest innego typu, zostanie u¿yte tradycyjne
-zachowanie freedesktop.org . Aby pokazaæ przyspieszenie oferowane
-przez epeg, Epsilon mo¿e byæ zbudowany z lub bez epeg.
+%description libs -l pl.UTF-8
+Biblioteka Epsilon.
 
 %package devel
 Summary:       Epsilon header file
-Summary(pl):   Plik nag³ówkowy Epsilon
-Group:         Development/Libraries
-Requires:      %{name} = %{version}-%{release}
+Summary(pl.UTF-8):     Plik nagłówkowy Epsilon
+Group:         X11/Development/Libraries
+Requires:      %{name}-libs = %{version}-%{release}
+Requires:      ecore-evas-devel >= %{ecore_ver}
+Requires:      ecore-file-devel >= %{ecore_ver}
+Requires:      ecore-ipc-devel >= %{ecore_ver}
+Requires:      edje-devel >= %{edje_ver}
+%{?with_epeg:Requires: epeg-devel >= %{epeg_ver}}
+Requires:      evas-devel >= %{evas_ver}
+Requires:      imlib2-devel >= 1.0.0
+Requires:      libpng-devel >= 1.2.0
 
 %description devel
 Epsilon thumbnailer development header.
 
-%description devel -l pl
-Plik nag³ówkowy biblioteki Epsilon generuj±cej miniaturki obrazów.
+%description devel -l pl.UTF-8
+Plik nagłówkowy biblioteki Epsilon generującej miniaturki obrazów.
 
 %package static
 Summary:       Static Epsilon library
-Summary(pl):   Statyczna biblioteka Epsilon
-Group:         Development/Libraries
+Summary(pl.UTF-8):     Statyczna biblioteka Epsilon
+Group:         X11/Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static Epsilon library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna biblioteka Epsilon.
 
+%package plugin-xine
+Summary:       XINE-based thumbnailer for Epsilon
+Summary(pl.UTF-8):     Oparty na XINE generator miniaturek dla Epsilona
+Group:         Libraries
+Requires:      %{name}-libs = %{version}-%{release}
+Requires:      xine-lib >= 1:1.0.0
+
+%description plugin-xine
+XINE-based thumbnailer for Epsilon. It supports MPEG, AVI, WMV and
+QuickTime files.
+
+Oparty na XINE generator miniaturek dla Epsilona. Obsługuje pliki
+MPEG, AVI, WMV i QuickTime.
+
 %prep
-%setup -q
+%setup -q -n %{name}-%{version}-%{_snap}
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -73,7 +150,8 @@ Statyczna biblioteka Epsilon.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       %{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -82,25 +160,41 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/epsilon/plugins/*.{la,a}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS COPYING README
 %attr(755,root,root) %{_bindir}/epsilon
+%attr(755,root,root) %{_bindir}/epsilon_thumbd
+%attr(755,root,root) %{_bindir}/epsilon_thumb_test
+
+%files libs
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libepsilon.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libepsilon.so.0
+%dir %{_libdir}/epsilon
+%dir %{_libdir}/epsilon/plugins
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/epsilon-config
 %attr(755,root,root) %{_libdir}/libepsilon.so
 %{_libdir}/libepsilon.la
-%{_includedir}/Epsilon.h
+%{_includedir}/Epsilon*.h
+%{_pkgconfigdir}/epsilon.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libepsilon.a
+%endif
+
+%files plugin-xine
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/epsilon/plugins/xine_thumbnailer.so
This page took 0.097349 seconds and 4 git commands to generate.