]>
Commit | Line | Data |
---|---|---|
88984029 ER |
1 | # TODO |
2 | # - ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/delegates/ljpeg-6b.tar.gz | |
604a8e24 JB |
3 | # NOTE: it changes ABI! either make it work without ABI breakage, or build |
4 | # second libjpeg (with lossless support) with different name/soname | |
b85c1130 | 5 | # |
6 | # Conditional build: | |
0431f0db | 7 | %bcond_with arith # arithmetic coding support (changes error codes in ABI, patent problems somewhere) |
3070f631 | 8 | %bcond_with crop # lossless cropping support (changes error codes in ABI) |
b85c1130 | 9 | # |
bdc11f6d JB |
10 | Summary: Library for handling different JPEG files |
11 | Summary(de.UTF-8): Library zum Verarbeiten verschiedener JPEG-Dateien | |
12 | Summary(es.UTF-8): Biblioteca para manipulación de diferentes archivos JPEGs | |
13 | Summary(fr.UTF-8): Bibliothèque pour gérer différents fichiers JPEG | |
14 | Summary(pl.UTF-8): Biblioteka do manipulacji plikami w formacie JPEG | |
15 | Summary(pt_BR.UTF-8): Biblioteca para manipulação de diferentes arquivos JPEGs | |
16 | Summary(ru.UTF-8): Библиотека для обработки различных JPEG-файлов | |
17 | Summary(tr.UTF-8): JPEG resimlerini işleme kitaplığı | |
18 | Summary(uk.UTF-8): Бібліотека для обробки різноманітних JPEG-файлів | |
0d312acb | 19 | Name: libjpeg |
20 | Version: 6b | |
99e0cab1 | 21 | Release: 27 |
2c2aba65 | 22 | License: distributable |
0d312acb | 23 | Group: Libraries |
3f2b3b82 | 24 | Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz |
4b382076 | 25 | # Source0-md5: dbd5f3b47ed13132f04c685d608a7547 |
b98883d9 | 26 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
4b382076 | 27 | # Source1-md5: d6342c015a489de275ada637a77dc2b0 |
2c2aba65 | 28 | Patch0: %{name}-DESTDIR.patch |
29 | Patch1: %{name}-arm.patch | |
30 | Patch2: %{name}-include.patch | |
31 | Patch3: %{name}-c++.patch | |
88984029 | 32 | Patch4: %{name}-libtool.patch |
0431f0db JB |
33 | # from http://sylvana.net/jpeg-ari/jpeg-ari-28mar98.tar.gz |
34 | Patch5: %{name}-arith.patch | |
3070f631 JB |
35 | # from http://sylvana.net/jpegcrop/croppatch.tar.gz |
36 | Patch6: %{name}-crop.patch | |
0431f0db | 37 | URL: http://www.ijg.org/ |
fcc3ef47 | 38 | BuildRequires: libtool |
de535b84 | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22eb4c1b | 40 | |
41 | %description | |
3f2b3b82 | 42 | The libjpeg package contains a library of functions for manipulating |
43 | JPEG images. | |
539cbc70 | 44 | |
0adec598 | 45 | %description -l de.UTF-8 |
2e00129d | 46 | Dieses Paket ist eine Library mit Funktionen zur Manipulation von |
bdc11f6d | 47 | JPEG-Bildern. |
539cbc70 | 48 | |
0adec598 | 49 | %description -l es.UTF-8 |
bdc11f6d JB |
50 | Este paquete contiene una biblioteca de funciones que manipulan |
51 | imágenes JPEG. | |
96c7e84f | 52 | |
0adec598 | 53 | %description -l fr.UTF-8 |
bdc11f6d | 54 | Bibliothèque de fonctions qui manipulent des images JPEG. |
539cbc70 | 55 | |
0adec598 | 56 | %description -l pl.UTF-8 |
bdc11f6d | 57 | Ten pakiet zawiera bibliotekę funkcji do manipulacji plikami JPEG. |
539cbc70 | 58 | |
0adec598 | 59 | %description -l pt_BR.UTF-8 |
bdc11f6d JB |
60 | Este pacote contém uma biblioteca de funções que manipulam imagens |
61 | JPEG. | |
96c7e84f | 62 | |
0adec598 | 63 | %description -l ru.UTF-8 |
bdc11f6d | 64 | Библиотека функций для обработки JPEG-изображений и простые клиенты |
0adec598 | 65 | для такой обработки. |
96c7e84f | 66 | |
0adec598 | 67 | %description -l tr.UTF-8 |
bdc11f6d | 68 | Bu paket, JPEG şekillerini işlemek için kitaplıklar ve basit |
0adec598 | 69 | istemciler içerir. |
22eb4c1b | 70 | |
0adec598 | 71 | %description -l uk.UTF-8 |
bdc11f6d | 72 | Бібліотека функцій для обробки JPEG-зображень та прості клієнти для |
0adec598 | 73 | такої обробки. |
96c7e84f | 74 | |
22eb4c1b | 75 | %package devel |
f82d2684 | 76 | Summary: Headers for developing programs using libjpeg |
bdc11f6d JB |
77 | Summary(de.UTF-8): Header zum Entwickeln von Programmen mit libjpeg |
78 | Summary(es.UTF-8): Archivos de inclusión para desarrollar programas usando libjpeg | |
c13483d8 | 79 | Summary(pl.UTF-8): Pliki nagłówkowe libjpeg |
bdc11f6d JB |
80 | Summary(pt_BR.UTF-8): Arquivos de inclusão para desenvolver programas usando libjpeg |
81 | Summary(ru.UTF-8): Хедеры для разработки программ, использующих libjpeg | |
c13483d8 | 82 | Summary(tr.UTF-8): libjpeg için geliştirme kitaplıkları ve başlık dosyaları |
bdc11f6d | 83 | Summary(uk.UTF-8): Хедери для розробки програм, що використовують libjpeg |
0d312acb | 84 | Group: Development/Libraries |
604a8e24 | 85 | Requires: %{name} = %{version}-%{release} |
22eb4c1b | 86 | |
87 | %description devel | |
bdc11f6d JB |
88 | The libjpeg-devel package includes the header files necessary for |
89 | developing programs which will manipulate JPEG files using the libjpeg | |
90 | library. | |
22eb4c1b | 91 | |
0adec598 | 92 | %description devel -l de.UTF-8 |
3f2b3b82 | 93 | Dieses Paket bietet alles, was Sie brauchen, um Programme zur |
bdc11f6d | 94 | Manipulation von JPEG-Grafiken, einschließlich Dokumentation, zu |
3f2b3b82 | 95 | entwickeln. |
22eb4c1b | 96 | |
0adec598 | 97 | %description devel -l es.UTF-8 |
96c7e84f | 98 | Este paquete es todo lo que necesitas para desarrollar programas que |
bdc11f6d | 99 | manipulen imágenes JPEG, incluso documentación. |
96c7e84f | 100 | |
0adec598 JR |
101 | %description devel -l fr.UTF-8 |
102 | Ce package est tout ce dont vous avez besoin pour développer des | |
bdc11f6d | 103 | programmes manipulant des images JPEG, et comprend la documentation. |
22eb4c1b | 104 | |
0adec598 | 105 | %description devel -l pl.UTF-8 |
bdc11f6d JB |
106 | Ten pakiet zawiera pliki potrzebne do programowania z wykorzystaniem |
107 | biblioteki libjpeg. Zawiera także dokumentację. | |
22eb4c1b | 108 | |
0adec598 JR |
109 | %description devel -l pt_BR.UTF-8 |
110 | Este pacote é tudo que você precisa para desenvolver programas que | |
bdc11f6d | 111 | manipulam imagens JPEG, incluindo documentação. |
96c7e84f | 112 | |
0adec598 JR |
113 | %description devel -l ru.UTF-8 |
114 | В этом пакете содержится все необходимое для разработки программ, | |
bdc11f6d | 115 | которые работают с JPEG-изображениями включая документацию. |
96c7e84f | 116 | |
0adec598 | 117 | %description devel -l tr.UTF-8 |
bdc11f6d | 118 | Bu paket, JPEG resimlerini işleyen programlar geliştirmeniz için |
0adec598 JR |
119 | gereken başlık dosyalarını, kitaplıkları ve ilgili yardım belgelerini |
120 | içerir. | |
22eb4c1b | 121 | |
0adec598 JR |
122 | %description devel -l uk.UTF-8 |
123 | Цей пакет містить все необхідне для розробки програм, котрі працюють з | |
bdc11f6d | 124 | JPEG-зображеннями, включаючи документацію. |
539cbc70 | 125 | |
126 | %package static | |
bdc11f6d JB |
127 | Summary: Static library for developing programs using libjpeg |
128 | Summary(pl.UTF-8): Biblioteka statyczna libjpeg | |
c13483d8 ER |
129 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com libjpeg |
130 | Summary(ru.UTF-8): Статическая библиотека для программирования с libjpeg | |
131 | Summary(uk.UTF-8): Статична бібліотека для програмування з libjpeg | |
0d312acb | 132 | Group: Development/Libraries |
604a8e24 | 133 | Requires: %{name}-devel = %{version}-%{release} |
539cbc70 | 134 | |
135 | %description static | |
bdc11f6d | 136 | Static library for developing programs using libjpeg. |
539cbc70 | 137 | |
0adec598 | 138 | %description static -l pl.UTF-8 |
f82d2684 | 139 | Statyczna biblioteka libjpeg. |
22eb4c1b | 140 | |
0adec598 JR |
141 | %description static -l pt_BR.UTF-8 |
142 | Bibliotecas estáticas para desenvolvimento com libjpeg. | |
96c7e84f | 143 | |
0adec598 JR |
144 | %description static -l ru.UTF-8 |
145 | Этот пакет содержит статические библиотеки, необходимые для написания | |
146 | программ, использующих libjpeg. | |
96c7e84f | 147 | |
0adec598 JR |
148 | %description static -l uk.UTF-8 |
149 | Цей пакет містить статичні бібліотеки, необхідні для написання | |
150 | програм, що використовують libjpeg. | |
96c7e84f | 151 | |
bdc11f6d JB |
152 | %package progs |
153 | Summary: Simple clients for manipulating JPEG images | |
154 | Summary(de.UTF-8): Einfachen Clients zur Manipulation von JPEG | |
155 | Summary(fr.UTF-8): Clients simples pour manipuler des images JPEG | |
156 | Summary(pl.UTF-8): Kilka prostych programów do manipulowania na plikach JPEG | |
157 | Group: Development/Libraries | |
158 | Requires: %{name} = %{version}-%{release} | |
159 | ||
160 | %description progs | |
161 | Simple clients for manipulating JPEG images. Libjpeg client programs | |
162 | include cjpeg, djpeg, jpegtran, rdjpgcom and wrjpgcom. Djpeg | |
163 | decompresses a JPEG file into a regular image file. Jpegtran can | |
164 | perform various useful transformations on JPEG files. Rdjpgcom | |
165 | displays any text comments included in a JPEG file. Wrjpgcom inserts | |
166 | text comments into a JPEG file. | |
167 | ||
168 | %description progs -l de.UTF-8 | |
169 | Einfachen Clients zur Manipulation von JPEG. | |
170 | ||
171 | %description progs -l fr.UTF-8 | |
172 | Clients simples pour manipuler des images JPEG. | |
173 | ||
174 | %description progs -l pl.UTF-8 | |
175 | Kilka prostych programów do obróbki plików JPEG, w tym: cjpeg, djpeg, | |
176 | jpegtran, rdjpgcom i wrjpgcom. djpeg dekompresuje plik JPEG do | |
177 | zwykłego pliku obrazu, jpegtran potrafi wykonywać różne | |
178 | przekształcenia na plikach JPEG. rdjpgcom wyświetla komentarze | |
179 | tekstowe dołączone do pliku JPEG, a wrjpgcom wstawia takie komentarze. | |
180 | ||
22eb4c1b | 181 | %prep |
bdc11f6d | 182 | %setup -q -n jpeg-%{version} |
2e00129d | 183 | %patch0 -p1 |
184 | %patch1 -p1 | |
4c35aa8b | 185 | %patch2 -p1 |
2c2aba65 | 186 | %patch3 -p1 |
88984029 | 187 | %patch4 -p1 |
0431f0db | 188 | %{?with_arith:%patch5 -p1} |
3070f631 | 189 | %{?with_crop:%patch6 -p1} |
d0424a0a | 190 | |
2e34b5cb | 191 | cp -f %{_datadir}/libtool/config.sub . |
88984029 ER |
192 | |
193 | %build | |
78479226 | 194 | %configure \ |
0d312acb | 195 | --enable-shared \ |
196 | --enable-static | |
197 | ||
60976ce1 | 198 | %{__make} \ |
88984029 ER |
199 | libdir=%{_libdir} |
200 | ||
bdc11f6d JB |
201 | LD_PRELOAD=$PWD/.libs/%{name}.so \ |
202 | %{__make} test | |
22eb4c1b | 203 | |
204 | %install | |
205 | rm -rf $RPM_BUILD_ROOT | |
30681806 | 206 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_bindir},%{_mandir}/man1} |
9f756785 | 207 | |
7522fe7c | 208 | %{__make} install install-headers install-lib \ |
75e7d42f | 209 | libdir=%{_libdir} \ |
7522fe7c | 210 | DESTDIR=$RPM_BUILD_ROOT |
22eb4c1b | 211 | |
fcc3ef47 | 212 | install jversion.h $RPM_BUILD_ROOT%{_includedir} |
213 | ||
f82d2684 JB |
214 | # remove HAVE_STD{DEF,LIB}_H |
215 | # (not necessary but may generate warnings confusing autoconf) | |
216 | (cd $RPM_BUILD_ROOT%{_includedir} | |
217 | grep -v 'HAVE_STD..._H' jconfig.h > jconfig.h.new | |
218 | mv -f jconfig.h.new jconfig.h | |
219 | ) | |
220 | ||
83a30698 | 221 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
222 | ||
22eb4c1b | 223 | %clean |
224 | rm -rf $RPM_BUILD_ROOT | |
225 | ||
bdc11f6d JB |
226 | %post -p /sbin/ldconfig |
227 | %postun -p /sbin/ldconfig | |
228 | ||
22eb4c1b | 229 | %files |
56464ee9 | 230 | %defattr(644,root,root,755) |
0431f0db | 231 | %doc README change.log %{?with_arith:README.arithmetic} |
bdc11f6d JB |
232 | %attr(755,root,root) %{_libdir}/libjpeg.so.*.*.* |
233 | %attr(755,root,root) %ghost %{_libdir}/libjpeg.so.62 | |
22eb4c1b | 234 | |
235 | %files devel | |
56464ee9 | 236 | %defattr(644,root,root,755) |
7522fe7c | 237 | %doc {libjpeg,structure}.doc |
bdc11f6d JB |
238 | %attr(755,root,root) %{_libdir}/libjpeg.so |
239 | %{_libdir}/libjpeg.la | |
240 | %{_includedir}/jconfig.h | |
241 | %{_includedir}/jerror.h | |
242 | %{_includedir}/jmorecfg.h | |
243 | %{_includedir}/jpeglib.h | |
244 | %{_includedir}/jversion.h | |
0d312acb | 245 | |
bdc11f6d | 246 | %files static |
56464ee9 | 247 | %defattr(644,root,root,755) |
bdc11f6d | 248 | %{_libdir}/libjpeg.a |
539cbc70 | 249 | |
bdc11f6d | 250 | %files progs |
56464ee9 | 251 | %defattr(644,root,root,755) |
bdc11f6d JB |
252 | %attr(755,root,root) %{_bindir}/cjpeg |
253 | %attr(755,root,root) %{_bindir}/djpeg | |
254 | %attr(755,root,root) %{_bindir}/jpegtran | |
255 | %attr(755,root,root) %{_bindir}/rdjpgcom | |
256 | %attr(755,root,root) %{_bindir}/wrjpgcom | |
257 | %{_mandir}/man1/cjpeg.1* | |
258 | %{_mandir}/man1/djpeg.1* | |
259 | %{_mandir}/man1/jpegtran.1* | |
260 | %{_mandir}/man1/rdjpgcom.1* | |
261 | %{_mandir}/man1/wrjpgcom.1* | |
262 | %lang(fi) %{_mandir}/fi/man1/cjpeg.1* | |
263 | %lang(pl) %{_mandir}/pl/man1/cjpeg.1* | |
264 | %lang(pl) %{_mandir}/pl/man1/djpeg.1* |