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