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