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