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