]>
Commit | Line | Data |
---|---|---|
eb011f04 JB |
1 | # |
2 | # Conditional build | |
3 | %bcond_without tests # don't perform "make test" | |
4 | %bcond_without java # Java binding | |
5 | # | |
1b80ac98 | 6 | %define libjpeg_ver 8c |
98befeb3 | 7 | %define libjpeg_ver_lt 9-1 |
8740afba | 8 | Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files |
6e49197d | 9 | Summary(pl.UTF-8): Biblioteka do obróbki plików obrazów JPEG z akceleracją MMX/SSE2 |
8740afba | 10 | Name: libjpeg-turbo |
9b51cfdc | 11 | Version: 1.4.2 |
597f919b | 12 | Release: 1 |
8740afba | 13 | License: wxWidgets |
0d312acb | 14 | Group: Libraries |
6e49197d | 15 | Source0: http://downloads.sourceforge.net/libjpeg-turbo/%{name}-%{version}.tar.gz |
9b51cfdc | 16 | # Source0-md5: 86b0d5f7507c2e6c21c00219162c3c44 |
12be3e29 JB |
17 | URL: http://libjpeg-turbo.virtualgl.org/ |
18 | BuildRequires: autoconf >= 2.56 | |
8740afba | 19 | BuildRequires: automake |
eb011f04 | 20 | %{?with_java:BuildRequires: jdk} |
d2c8238e | 21 | BuildRequires: libstdc++-devel |
22 | BuildRequires: libtool | |
eb011f04 JB |
23 | # x86* SIMD code uses NASM; arm uses gas, no SIMD code for other archs |
24 | %ifarch %{ix86} %{x8664} | |
8740afba | 25 | BuildRequires: nasm |
eb011f04 | 26 | %endif |
d2c8238e | 27 | Provides: libjpeg = %{libjpeg_ver} |
98befeb3 | 28 | Obsoletes: libjpeg < %{libjpeg_ver_lt} |
abf4f5a4 | 29 | Obsoletes: libjpegsimd |
de535b84 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22eb4c1b | 31 | |
32 | %description | |
8740afba AM |
33 | libjpeg-turbo is a version of libjpeg which uses MMX, SSE, and SSE2 |
34 | SIMD instructions to accelerate baseline JPEG | |
35 | compression/decompression by about 2-4x on x86 and x86-64 platforms. | |
36 | It is based on libjpeg/SIMD but has numerous enhancements. | |
96c7e84f | 37 | |
6e49197d | 38 | %description -l pl.UTF-8 |
b76ff88a | 39 | libjpeg-turbo to wersja biblioteki libjpeg wykorzystująca instrukcje |
6e49197d JB |
40 | SIMD MMX, SSE i SSE2 w celu przyspieszenia kompresji/dekompresji JPEG |
41 | o około 2-4 razy na platformach x86 i x86-64. Jest oparta na | |
42 | libjpeg/SIMD, ale ma wiele rozszerzeń. | |
43 | ||
22eb4c1b | 44 | %package devel |
8740afba | 45 | Summary: Headers for developing programs using libjpeg-turbo |
6e49197d | 46 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów przy użyciu libjpeg-turbo |
0d312acb | 47 | Group: Development/Libraries |
604a8e24 | 48 | Requires: %{name} = %{version}-%{release} |
8740afba | 49 | Provides: libjpeg-devel = %{libjpeg_ver} |
98befeb3 | 50 | Obsoletes: libjpeg-devel < %{libjpeg_ver_lt} |
abf4f5a4 | 51 | Obsoletes: libjpegsimd-devel |
254235ea | 52 | Conflicts: libjpeg6-devel |
22eb4c1b | 53 | |
54 | %description devel | |
8740afba AM |
55 | The libjpeg-turbo-devel package includes the header files necessary |
56 | for developing programs which will manipulate JPEG files using the | |
57 | libjpeg-turbo library. | |
22eb4c1b | 58 | |
0adec598 | 59 | %description devel -l de.UTF-8 |
3f2b3b82 | 60 | Dieses Paket bietet alles, was Sie brauchen, um Programme zur |
6e49197d | 61 | Manipulation von JPEG-Grafiken, zu entwickeln. |
22eb4c1b | 62 | |
0adec598 | 63 | %description devel -l es.UTF-8 |
96c7e84f | 64 | Este paquete es todo lo que necesitas para desarrollar programas que |
6e49197d | 65 | manipulen imágenes JPEG. |
96c7e84f | 66 | |
0adec598 JR |
67 | %description devel -l fr.UTF-8 |
68 | Ce package est tout ce dont vous avez besoin pour développer des | |
6e49197d | 69 | programmes manipulant des images JPEG. |
22eb4c1b | 70 | |
0adec598 | 71 | %description devel -l pl.UTF-8 |
bdc11f6d | 72 | Ten pakiet zawiera pliki potrzebne do programowania z wykorzystaniem |
6e49197d | 73 | biblioteki libjpeg-turbo. |
22eb4c1b | 74 | |
0adec598 JR |
75 | %description devel -l pt_BR.UTF-8 |
76 | Este pacote é tudo que você precisa para desenvolver programas que | |
6e49197d | 77 | manipulam imagens JPEG. |
96c7e84f | 78 | |
0adec598 JR |
79 | %description devel -l ru.UTF-8 |
80 | В этом пакете содержится все необходимое для разработки программ, | |
bdc11f6d | 81 | которые работают с JPEG-изображениями включая документацию. |
96c7e84f | 82 | |
0adec598 | 83 | %description devel -l tr.UTF-8 |
bdc11f6d | 84 | Bu paket, JPEG resimlerini işleyen programlar geliştirmeniz için |
0adec598 JR |
85 | gereken başlık dosyalarını, kitaplıkları ve ilgili yardım belgelerini |
86 | içerir. | |
22eb4c1b | 87 | |
0adec598 JR |
88 | %description devel -l uk.UTF-8 |
89 | Цей пакет містить все необхідне для розробки програм, котрі працюють з | |
bdc11f6d | 90 | JPEG-зображеннями, включаючи документацію. |
539cbc70 | 91 | |
92 | %package static | |
8740afba AM |
93 | Summary: Static library for developing programs using libjpeg-turbo |
94 | Summary(pl.UTF-8): Biblioteka statyczna libjpeg-turbo | |
95 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com libjpeg-turbo | |
96 | Summary(ru.UTF-8): Статическая библиотека для программирования с libjpeg-turbo | |
97 | Summary(uk.UTF-8): Статична бібліотека для програмування з libjpeg-turbo | |
0d312acb | 98 | Group: Development/Libraries |
604a8e24 | 99 | Requires: %{name}-devel = %{version}-%{release} |
8740afba | 100 | Provides: libjpeg-static = %{libjpeg_ver} |
98befeb3 | 101 | Obsoletes: libjpeg-static < %{libjpeg_ver_lt} |
abf4f5a4 | 102 | Obsoletes: libjpegsimd-static |
8740afba | 103 | Conflicts: libjpeg-turbo6-static |
539cbc70 | 104 | |
105 | %description static | |
8740afba | 106 | Static library for developing programs using libjpeg-turbo. |
539cbc70 | 107 | |
0adec598 | 108 | %description static -l pl.UTF-8 |
8740afba | 109 | Statyczna biblioteka libjpeg-turbo. |
22eb4c1b | 110 | |
0adec598 | 111 | %description static -l pt_BR.UTF-8 |
8740afba | 112 | Bibliotecas estáticas para desenvolvimento com libjpeg-turbo. |
96c7e84f | 113 | |
0adec598 JR |
114 | %description static -l ru.UTF-8 |
115 | Этот пакет содержит статические библиотеки, необходимые для написания | |
8740afba | 116 | программ, использующих libjpeg-turbo. |
96c7e84f | 117 | |
0adec598 JR |
118 | %description static -l uk.UTF-8 |
119 | Цей пакет містить статичні бібліотеки, необхідні для написання | |
8740afba | 120 | програм, що використовують libjpeg-turbo. |
96c7e84f | 121 | |
bdc11f6d JB |
122 | %package progs |
123 | Summary: Simple clients for manipulating JPEG images | |
124 | Summary(de.UTF-8): Einfachen Clients zur Manipulation von JPEG | |
125 | Summary(fr.UTF-8): Clients simples pour manipuler des images JPEG | |
126 | Summary(pl.UTF-8): Kilka prostych programów do manipulowania na plikach JPEG | |
127 | Group: Development/Libraries | |
128 | Requires: %{name} = %{version}-%{release} | |
8740afba | 129 | Provides: libjpeg-progs = %{libjpeg_ver} |
98befeb3 | 130 | Obsoletes: libjpeg-progs < %{libjpeg_ver_lt} |
abf4f5a4 | 131 | Obsoletes: libjpegsimd-progs |
8740afba | 132 | Conflicts: libjpeg-turbo6-progs |
bdc11f6d JB |
133 | |
134 | %description progs | |
135 | Simple clients for manipulating JPEG images. Libjpeg client programs | |
136 | include cjpeg, djpeg, jpegtran, rdjpgcom and wrjpgcom. Djpeg | |
137 | decompresses a JPEG file into a regular image file. Jpegtran can | |
138 | perform various useful transformations on JPEG files. Rdjpgcom | |
139 | displays any text comments included in a JPEG file. Wrjpgcom inserts | |
140 | text comments into a JPEG file. | |
141 | ||
142 | %description progs -l de.UTF-8 | |
143 | Einfachen Clients zur Manipulation von JPEG. | |
144 | ||
145 | %description progs -l fr.UTF-8 | |
146 | Clients simples pour manipuler des images JPEG. | |
147 | ||
148 | %description progs -l pl.UTF-8 | |
149 | Kilka prostych programów do obróbki plików JPEG, w tym: cjpeg, djpeg, | |
150 | jpegtran, rdjpgcom i wrjpgcom. djpeg dekompresuje plik JPEG do | |
151 | zwykłego pliku obrazu, jpegtran potrafi wykonywać różne | |
152 | przekształcenia na plikach JPEG. rdjpgcom wyświetla komentarze | |
153 | tekstowe dołączone do pliku JPEG, a wrjpgcom wstawia takie komentarze. | |
154 | ||
eb011f04 JB |
155 | %package -n java-turbojpeg |
156 | Summary: Java wrapper for the TurboJPEG/OSS library | |
157 | Summary(pl.UTF-8): Interfejs Javy do biblioteki TurboJPEG/OSS | |
158 | Group: Development/Languages/Java | |
159 | Requires: %{name} = %{version}-%{release} | |
160 | Requires: jpackage-utils | |
161 | ||
162 | %description -n java-turbojpeg | |
163 | Java wrapper for the TurboJPEG/OSS library. | |
164 | ||
165 | %description -n java-turbojpeg -l pl.UTF-8 | |
166 | Interfejs Javy do biblioteki TurboJPEG/OSS. | |
167 | ||
22eb4c1b | 168 | %prep |
8740afba | 169 | %setup -q |
d0424a0a | 170 | |
88984029 | 171 | %build |
8740afba AM |
172 | %{__libtoolize} |
173 | %{__aclocal} | |
174 | %{__autoconf} | |
175 | %{__automake} | |
176 | ||
78479226 | 177 | %configure \ |
bd06e2e4 | 178 | --disable-silent-rules \ |
eb011f04 | 179 | %{?with_java:JNI_CFLAGS="-I%{_jvmdir}/java/include -I%{_jvmdir}/java/include/linux"} \ |
0d312acb | 180 | --enable-shared \ |
8d95c872 | 181 | --enable-static \ |
eb011f04 | 182 | %{?with_java:--with-java} \ |
0de566d2 JR |
183 | %ifnarch %{ix86} %{x8664} |
184 | --without-simd \ | |
185 | %endif | |
8d95c872 | 186 | --with-jpeg8 |
0d312acb | 187 | |
4cd4d3a3 | 188 | %{__make} -j1 |
88984029 | 189 | |
8740afba | 190 | %{?with_tests:%{__make} test} |
22eb4c1b | 191 | |
192 | %install | |
193 | rm -rf $RPM_BUILD_ROOT | |
9f756785 | 194 | |
98d1d005 | 195 | %{__make} install \ |
7522fe7c | 196 | DESTDIR=$RPM_BUILD_ROOT |
22eb4c1b | 197 | |
eb011f04 JB |
198 | %if %{with java} |
199 | install -d $RPM_BUILD_ROOT%{_javadir} | |
7179a7e4 | 200 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/classes/turbojpeg.jar $RPM_BUILD_ROOT%{_javadir} |
eb011f04 JB |
201 | %endif |
202 | ||
22eb4c1b | 203 | %clean |
204 | rm -rf $RPM_BUILD_ROOT | |
205 | ||
bdc11f6d JB |
206 | %post -p /sbin/ldconfig |
207 | %postun -p /sbin/ldconfig | |
208 | ||
22eb4c1b | 209 | %files |
56464ee9 | 210 | %defattr(644,root,root,755) |
98d1d005 | 211 | %doc README change.log |
bdc11f6d | 212 | %attr(755,root,root) %{_libdir}/libjpeg.so.*.*.* |
8d95c872 | 213 | %attr(755,root,root) %ghost %{_libdir}/libjpeg.so.8 |
7b2aca16 JR |
214 | %attr(755,root,root) %{_libdir}/libturbojpeg.so.*.*.* |
215 | %attr(755,root,root) %ghost %{_libdir}/libturbojpeg.so.0 | |
22eb4c1b | 216 | |
217 | %files devel | |
56464ee9 | 218 | %defattr(644,root,root,755) |
bdc11f6d | 219 | %attr(755,root,root) %{_libdir}/libjpeg.so |
7b2aca16 | 220 | %attr(755,root,root) %{_libdir}/libturbojpeg.so |
bdc11f6d | 221 | %{_libdir}/libjpeg.la |
7b2aca16 | 222 | %{_libdir}/libturbojpeg.la |
bdc11f6d JB |
223 | %{_includedir}/jconfig.h |
224 | %{_includedir}/jerror.h | |
225 | %{_includedir}/jmorecfg.h | |
226 | %{_includedir}/jpeglib.h | |
7b2aca16 | 227 | %{_includedir}/turbojpeg.h |
0d312acb | 228 | |
bdc11f6d | 229 | %files static |
56464ee9 | 230 | %defattr(644,root,root,755) |
bdc11f6d | 231 | %{_libdir}/libjpeg.a |
7b2aca16 | 232 | %{_libdir}/libturbojpeg.a |
539cbc70 | 233 | |
bdc11f6d | 234 | %files progs |
56464ee9 | 235 | %defattr(644,root,root,755) |
bdc11f6d JB |
236 | %attr(755,root,root) %{_bindir}/cjpeg |
237 | %attr(755,root,root) %{_bindir}/djpeg | |
238 | %attr(755,root,root) %{_bindir}/jpegtran | |
239 | %attr(755,root,root) %{_bindir}/rdjpgcom | |
16fe0756 | 240 | %attr(755,root,root) %{_bindir}/tjbench |
bdc11f6d JB |
241 | %attr(755,root,root) %{_bindir}/wrjpgcom |
242 | %{_mandir}/man1/cjpeg.1* | |
243 | %{_mandir}/man1/djpeg.1* | |
244 | %{_mandir}/man1/jpegtran.1* | |
245 | %{_mandir}/man1/rdjpgcom.1* | |
246 | %{_mandir}/man1/wrjpgcom.1* | |
eb011f04 JB |
247 | |
248 | %if %{with java} | |
249 | %files -n java-turbojpeg | |
250 | %defattr(644,root,root,755) | |
251 | %doc java/doc/* | |
252 | %{_javadir}/turbojpeg.jar | |
253 | %endif |