]>
Commit | Line | Data |
---|---|---|
56cf30e6 | 1 | # NOTE: this library is obsolete, don't on ftp |
fbca8ac4 KK |
2 | # |
3 | # Conditional build: | |
4 | %bcond_without static_libs # don't build static library | |
ad7d4f17 | 5 | %bcond_with epeg # use Epeg for JPEG scaling (no longer supported by configure) |
fbca8ac4 | 6 | # |
ad7d4f17 | 7 | %define ecore_ver 1.0.0 |
729ddc43 | 8 | %define edje_ver 0.9.9.044 |
9 | %define epeg_ver 0.9.1.043 | |
10 | %define evas_ver 0.9.9.044 | |
11 | %define _snap 20080813 | |
8048ebe6 | 12 | |
c1be99b4 | 13 | Summary: Enlightened Thumbnail Generator |
a03995be | 14 | Summary(pl.UTF-8): Oświecony generator miniaturek obrazów |
c1be99b4 | 15 | Name: epsilon |
729ddc43 | 16 | Version: 0.3.0.013 |
56cf30e6 | 17 | Release: 0.%{_snap}.1.1 |
c1be99b4 | 18 | License: BSD |
19 | Group: X11/Libraries | |
729ddc43 | 20 | Source0: %{name}-%{version}-%{_snap}.tar.bz2 |
21 | # Source0-md5: b677b9c39aa2d5b467503faffd4b4879 | |
ad7d4f17 JB |
22 | # this patch is probably incomplete, Ecore_List and Eina_List semantics differ |
23 | Patch0: %{name}-update.patch | |
a9424692 | 24 | URL: http://enlightenment.org/ |
729ddc43 | 25 | BuildRequires: autoconf |
26 | BuildRequires: automake | |
8048ebe6 | 27 | BuildRequires: ecore-devel >= %{ecore_ver} |
ad7d4f17 JB |
28 | BuildRequires: ecore-evas-devel >= %{ecore_ver} |
29 | BuildRequires: ecore-file-devel >= %{ecore_ver} | |
30 | BuildRequires: ecore-ipc-devel >= %{ecore_ver} | |
8048ebe6 | 31 | BuildRequires: edje-devel >= %{edje_ver} |
ad7d4f17 | 32 | %{?with_epeg:BuildRequires: epeg-devel >= %{epeg_ver}} |
8048ebe6 | 33 | BuildRequires: evas-devel >= %{evas_ver} |
a9424692 JB |
34 | BuildRequires: imlib2-devel >= 1.0.0 |
35 | BuildRequires: libpng-devel >= 1.2.0 | |
729ddc43 | 36 | BuildRequires: libtool |
a9424692 JB |
37 | BuildRequires: perl-base |
38 | BuildRequires: pkgconfig | |
39 | BuildRequires: xine-lib-devel >= 1:1.0.0 | |
bedd446f | 40 | Requires: %{name}-libs = %{version}-%{release} |
c1be99b4 | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
e98ec6ba | 43 | %undefine __cxx |
44 | ||
c1be99b4 | 45 | %description |
46 | Epsilon is a small, display independent, and quick thumbnailing | |
47 | library. The lib itself conforms to the standard put forth by | |
7246afe3 JB |
48 | freedesktop.org . You can find out more information about it at |
49 | http://triq.net/~jens/thumbnail-spec/index.html . | |
ad7d4f17 | 50 | %if %{with epeg} |
c1be99b4 | 51 | |
52 | Epeg offers very noticeable speed increases to this standard, but it | |
7246afe3 | 53 | is only available if the input image is a JPEG file. If the file is |
c1be99b4 | 54 | anything other than jpg, the traditional freedesktop.org thumbnailing |
55 | will occur. To show the speed increase epeg offers, Epsilon can be | |
56 | built with and without epeg. | |
ad7d4f17 JB |
57 | %endif |
58 | ||
59 | Note: this library is obsolete; Ethumb should be used instead. | |
c1be99b4 | 60 | |
aa11d776 JR |
61 | %description -l pl.UTF-8 |
62 | Epsilon to mała, niezależna od ekranu i szybka biblioteka do | |
63 | generowania miniaturek obrazów. Sama biblioteka jest zgodna ze | |
64 | standardem opracowanym przez freedesktop.org . Więcej informacji | |
65 | można znaleźć pod adresem | |
7246afe3 | 66 | http://triq.net/~jens/thumbnail-spec/index.html . |
ad7d4f17 | 67 | %if %{with epeg} |
7246afe3 | 68 | |
aa11d776 JR |
69 | Epeg oferuje bardzo zauważalne przyspieszenie w stosunku do tego |
70 | standardu, ale jest ono dostępne tylko jeśli obrazek jest plikiem | |
71 | JPEG. Jeśli plik jest innego typu, zostanie użyte tradycyjne | |
72 | zachowanie freedesktop.org . Aby pokazać przyspieszenie oferowane | |
73 | przez epeg, Epsilon może być zbudowany z lub bez epeg. | |
ad7d4f17 JB |
74 | %endif |
75 | ||
76 | Uwaga: ta biblioteka jest przestarzała; zamiast niej należy używać | |
77 | biblioteki Ethumb. | |
7246afe3 | 78 | |
bedd446f | 79 | %package libs |
80 | Summary: Epsilon library | |
a03995be | 81 | Summary(pl.UTF-8): Biblioteka Epsilon |
bedd446f | 82 | Group: X11/Libraries |
8048ebe6 BZ |
83 | Requires: ecore-evas >= %{ecore_ver} |
84 | Requires: ecore-file >= %{ecore_ver} | |
ad7d4f17 | 85 | Requires: ecore-ipc >= %{ecore_ver} |
8048ebe6 | 86 | Requires: edje-libs >= %{edje_ver} |
ad7d4f17 | 87 | %{?with_epeg:Requires: epeg-libs >= %{epeg_ver}} |
8048ebe6 | 88 | Requires: evas >= %{evas_ver} |
a9424692 | 89 | Requires: imlib2 >= 1.0.0 |
bedd446f | 90 | |
91 | %description libs | |
92 | Epsilon library. | |
93 | ||
aa11d776 | 94 | %description libs -l pl.UTF-8 |
bedd446f | 95 | Biblioteka Epsilon. |
96 | ||
c1be99b4 | 97 | %package devel |
7246afe3 | 98 | Summary: Epsilon header file |
a03995be | 99 | Summary(pl.UTF-8): Plik nagłówkowy Epsilon |
a9424692 | 100 | Group: X11/Development/Libraries |
bedd446f | 101 | Requires: %{name}-libs = %{version}-%{release} |
ad7d4f17 JB |
102 | Requires: ecore-evas-devel >= %{ecore_ver} |
103 | Requires: ecore-file-devel >= %{ecore_ver} | |
104 | Requires: ecore-ipc-devel >= %{ecore_ver} | |
8048ebe6 | 105 | Requires: edje-devel >= %{edje_ver} |
ad7d4f17 | 106 | %{?with_epeg:Requires: epeg-devel >= %{epeg_ver}} |
8048ebe6 | 107 | Requires: evas-devel >= %{evas_ver} |
a9424692 JB |
108 | Requires: imlib2-devel >= 1.0.0 |
109 | Requires: libpng-devel >= 1.2.0 | |
c1be99b4 | 110 | |
111 | %description devel | |
7246afe3 JB |
112 | Epsilon thumbnailer development header. |
113 | ||
aa11d776 JR |
114 | %description devel -l pl.UTF-8 |
115 | Plik nagłówkowy biblioteki Epsilon generującej miniaturki obrazów. | |
c1be99b4 | 116 | |
117 | %package static | |
7246afe3 | 118 | Summary: Static Epsilon library |
a03995be | 119 | Summary(pl.UTF-8): Statyczna biblioteka Epsilon |
a9424692 | 120 | Group: X11/Development/Libraries |
7246afe3 | 121 | Requires: %{name}-devel = %{version}-%{release} |
c1be99b4 | 122 | |
123 | %description static | |
7246afe3 JB |
124 | Static Epsilon library. |
125 | ||
aa11d776 | 126 | %description static -l pl.UTF-8 |
7246afe3 | 127 | Statyczna biblioteka Epsilon. |
c1be99b4 | 128 | |
a9424692 JB |
129 | %package plugin-xine |
130 | Summary: XINE-based thumbnailer for Epsilon | |
131 | Summary(pl.UTF-8): Oparty na XINE generator miniaturek dla Epsilona | |
132 | Group: Libraries | |
133 | Requires: %{name}-libs = %{version}-%{release} | |
134 | Requires: xine-lib >= 1:1.0.0 | |
135 | ||
136 | %description plugin-xine | |
137 | XINE-based thumbnailer for Epsilon. It supports MPEG, AVI, WMV and | |
138 | QuickTime files. | |
139 | ||
140 | Oparty na XINE generator miniaturek dla Epsilona. Obsługuje pliki | |
141 | MPEG, AVI, WMV i QuickTime. | |
142 | ||
c1be99b4 | 143 | %prep |
729ddc43 | 144 | %setup -q -n %{name}-%{version}-%{_snap} |
ad7d4f17 | 145 | %patch0 -p1 |
c1be99b4 | 146 | |
147 | %build | |
729ddc43 | 148 | %{__libtoolize} |
149 | %{__aclocal} | |
150 | %{__autoconf} | |
151 | %{__autoheader} | |
152 | %{__automake} | |
fbca8ac4 KK |
153 | %configure \ |
154 | %{!?with_static_libs:--disable-static} | |
c1be99b4 | 155 | %{__make} |
156 | ||
157 | %install | |
158 | rm -rf $RPM_BUILD_ROOT | |
7246afe3 | 159 | |
c1be99b4 | 160 | %{__make} install \ |
161 | DESTDIR=$RPM_BUILD_ROOT | |
162 | ||
ad7d4f17 | 163 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/epsilon/plugins/*.{la,a} |
a9424692 | 164 | |
c1be99b4 | 165 | %clean |
166 | rm -rf $RPM_BUILD_ROOT | |
167 | ||
a9424692 JB |
168 | %post libs -p /sbin/ldconfig |
169 | %postun libs -p /sbin/ldconfig | |
c1be99b4 | 170 | |
171 | %files | |
172 | %defattr(644,root,root,755) | |
173 | %doc AUTHORS COPYING README | |
a9424692 JB |
174 | %attr(755,root,root) %{_bindir}/epsilon |
175 | %attr(755,root,root) %{_bindir}/epsilon_thumbd | |
176 | %attr(755,root,root) %{_bindir}/epsilon_thumb_test | |
bedd446f | 177 | |
178 | %files libs | |
179 | %defattr(644,root,root,755) | |
8ef609ec JB |
180 | %attr(755,root,root) %{_libdir}/libepsilon.so.*.*.* |
181 | %attr(755,root,root) %ghost %{_libdir}/libepsilon.so.0 | |
a9424692 JB |
182 | %dir %{_libdir}/epsilon |
183 | %dir %{_libdir}/epsilon/plugins | |
c1be99b4 | 184 | |
185 | %files devel | |
186 | %defattr(644,root,root,755) | |
187 | %attr(755,root,root) %{_libdir}/libepsilon.so | |
188 | %{_libdir}/libepsilon.la | |
d79a7074 | 189 | %{_includedir}/Epsilon*.h |
a9424692 | 190 | %{_pkgconfigdir}/epsilon.pc |
c1be99b4 | 191 | |
fbca8ac4 | 192 | %if %{with static_libs} |
c1be99b4 | 193 | %files static |
194 | %defattr(644,root,root,755) | |
195 | %{_libdir}/libepsilon.a | |
fbca8ac4 | 196 | %endif |
a9424692 JB |
197 | |
198 | %files plugin-xine | |
199 | %defattr(644,root,root,755) | |
200 | %attr(755,root,root) %{_libdir}/epsilon/plugins/xine_thumbnailer.so |