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