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