]>
Commit | Line | Data |
---|---|---|
b5150ecc | 1 | # |
2 | # Conditional build: | |
8014476f | 3 | %bcond_with arith # arithmetic coding support (changes error codes in ABI, patent problems somewhere) |
243850ca | 4 | %bcond_with crop # lossless cropping support (changes error codes in ABI) |
b5150ecc | 5 | # |
f6d3fdee 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-файлів | |
7eb0bc45 | 15 | Name: libjpeg |
16 | Version: 6b | |
0408af35 | 17 | Release: 28 |
d2dd9682 | 18 | License: distributable |
7eb0bc45 | 19 | Group: Libraries |
2f2d0e74 | 20 | Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz |
18a19c68 | 21 | # Source0-md5: dbd5f3b47ed13132f04c685d608a7547 |
364145e7 | 22 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
18a19c68 | 23 | # Source1-md5: d6342c015a489de275ada637a77dc2b0 |
d2dd9682 | 24 | Patch0: %{name}-DESTDIR.patch |
25 | Patch1: %{name}-arm.patch | |
26 | Patch2: %{name}-include.patch | |
27 | Patch3: %{name}-c++.patch | |
2e2c1841 | 28 | Patch4: %{name}-libtool.patch |
8014476f JB |
29 | # from http://sylvana.net/jpeg-ari/jpeg-ari-28mar98.tar.gz |
30 | Patch5: %{name}-arith.patch | |
243850ca JB |
31 | # from http://sylvana.net/jpegcrop/croppatch.tar.gz |
32 | Patch6: %{name}-crop.patch | |
8014476f | 33 | URL: http://www.ijg.org/ |
78097371 | 34 | BuildRequires: libtool |
e264e23f | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6415cd48 | 36 | |
37 | %description | |
2f2d0e74 | 38 | The libjpeg package contains a library of functions for manipulating |
39 | JPEG images. | |
f1f51b6b | 40 | |
ddf57df6 | 41 | %description -l de.UTF-8 |
c6f6f7dd | 42 | Dieses Paket ist eine Library mit Funktionen zur Manipulation von |
f6d3fdee | 43 | JPEG-Bildern. |
f1f51b6b | 44 | |
ddf57df6 | 45 | %description -l es.UTF-8 |
f6d3fdee JB |
46 | Este paquete contiene una biblioteca de funciones que manipulan |
47 | imágenes JPEG. | |
67905172 | 48 | |
ddf57df6 | 49 | %description -l fr.UTF-8 |
f6d3fdee | 50 | Bibliothèque de fonctions qui manipulent des images JPEG. |
f1f51b6b | 51 | |
ddf57df6 | 52 | %description -l pl.UTF-8 |
f6d3fdee | 53 | Ten pakiet zawiera bibliotekę funkcji do manipulacji plikami JPEG. |
f1f51b6b | 54 | |
ddf57df6 | 55 | %description -l pt_BR.UTF-8 |
f6d3fdee JB |
56 | Este pacote contém uma biblioteca de funções que manipulam imagens |
57 | JPEG. | |
67905172 | 58 | |
ddf57df6 | 59 | %description -l ru.UTF-8 |
f6d3fdee | 60 | Библиотека функций для обработки JPEG-изображений и простые клиенты |
ddf57df6 | 61 | для такой обработки. |
67905172 | 62 | |
ddf57df6 | 63 | %description -l tr.UTF-8 |
f6d3fdee | 64 | Bu paket, JPEG şekillerini işlemek için kitaplıklar ve basit |
ddf57df6 | 65 | istemciler içerir. |
6415cd48 | 66 | |
ddf57df6 | 67 | %description -l uk.UTF-8 |
f6d3fdee | 68 | Бібліотека функцій для обробки JPEG-зображень та прості клієнти для |
ddf57df6 | 69 | такої обробки. |
67905172 | 70 | |
6415cd48 | 71 | %package devel |
5df36b8d | 72 | Summary: Headers for developing programs using libjpeg |
f6d3fdee 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 | |
3df90f45 | 75 | Summary(pl.UTF-8): Pliki nagłówkowe libjpeg |
f6d3fdee JB |
76 | Summary(pt_BR.UTF-8): Arquivos de inclusão para desenvolver programas usando libjpeg |
77 | Summary(ru.UTF-8): Хедеры для разработки программ, использующих libjpeg | |
3df90f45 | 78 | Summary(tr.UTF-8): libjpeg için geliştirme kitaplıkları ve başlık dosyaları |
f6d3fdee | 79 | Summary(uk.UTF-8): Хедери для розробки програм, що використовують libjpeg |
7eb0bc45 | 80 | Group: Development/Libraries |
9358c4bb | 81 | Requires: %{name} = %{version}-%{release} |
6415cd48 | 82 | |
83 | %description devel | |
f6d3fdee 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. | |
6415cd48 | 87 | |
ddf57df6 | 88 | %description devel -l de.UTF-8 |
2f2d0e74 | 89 | Dieses Paket bietet alles, was Sie brauchen, um Programme zur |
f6d3fdee | 90 | Manipulation von JPEG-Grafiken, einschließlich Dokumentation, zu |
2f2d0e74 | 91 | entwickeln. |
6415cd48 | 92 | |
ddf57df6 | 93 | %description devel -l es.UTF-8 |
67905172 | 94 | Este paquete es todo lo que necesitas para desarrollar programas que |
f6d3fdee | 95 | manipulen imágenes JPEG, incluso documentación. |
67905172 | 96 | |
ddf57df6 JR |
97 | %description devel -l fr.UTF-8 |
98 | Ce package est tout ce dont vous avez besoin pour développer des | |
f6d3fdee | 99 | programmes manipulant des images JPEG, et comprend la documentation. |
6415cd48 | 100 | |
ddf57df6 | 101 | %description devel -l pl.UTF-8 |
f6d3fdee JB |
102 | Ten pakiet zawiera pliki potrzebne do programowania z wykorzystaniem |
103 | biblioteki libjpeg. Zawiera także dokumentację. | |
6415cd48 | 104 | |
ddf57df6 JR |
105 | %description devel -l pt_BR.UTF-8 |
106 | Este pacote é tudo que você precisa para desenvolver programas que | |
f6d3fdee | 107 | manipulam imagens JPEG, incluindo documentação. |
67905172 | 108 | |
ddf57df6 JR |
109 | %description devel -l ru.UTF-8 |
110 | В этом пакете содержится все необходимое для разработки программ, | |
f6d3fdee | 111 | которые работают с JPEG-изображениями включая документацию. |
67905172 | 112 | |
ddf57df6 | 113 | %description devel -l tr.UTF-8 |
f6d3fdee | 114 | Bu paket, JPEG resimlerini işleyen programlar geliştirmeniz için |
ddf57df6 JR |
115 | gereken başlık dosyalarını, kitaplıkları ve ilgili yardım belgelerini |
116 | içerir. | |
6415cd48 | 117 | |
ddf57df6 JR |
118 | %description devel -l uk.UTF-8 |
119 | Цей пакет містить все необхідне для розробки програм, котрі працюють з | |
f6d3fdee | 120 | JPEG-зображеннями, включаючи документацію. |
f1f51b6b | 121 | |
122 | %package static | |
f6d3fdee JB |
123 | Summary: Static library for developing programs using libjpeg |
124 | Summary(pl.UTF-8): Biblioteka statyczna libjpeg | |
3df90f45 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 | |
7eb0bc45 | 128 | Group: Development/Libraries |
9358c4bb | 129 | Requires: %{name}-devel = %{version}-%{release} |
f1f51b6b | 130 | |
131 | %description static | |
f6d3fdee | 132 | Static library for developing programs using libjpeg. |
f1f51b6b | 133 | |
ddf57df6 | 134 | %description static -l pl.UTF-8 |
5df36b8d | 135 | Statyczna biblioteka libjpeg. |
6415cd48 | 136 | |
ddf57df6 JR |
137 | %description static -l pt_BR.UTF-8 |
138 | Bibliotecas estáticas para desenvolvimento com libjpeg. | |
67905172 | 139 | |
ddf57df6 JR |
140 | %description static -l ru.UTF-8 |
141 | Этот пакет содержит статические библиотеки, необходимые для написания | |
142 | программ, использующих libjpeg. | |
67905172 | 143 | |
ddf57df6 JR |
144 | %description static -l uk.UTF-8 |
145 | Цей пакет містить статичні бібліотеки, необхідні для написання | |
146 | програм, що використовують libjpeg. | |
67905172 | 147 | |
f6d3fdee 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 | ||
6415cd48 | 177 | %prep |
f6d3fdee | 178 | %setup -q -n jpeg-%{version} |
c6f6f7dd | 179 | %patch0 -p1 |
180 | %patch1 -p1 | |
ff596b28 | 181 | %patch2 -p1 |
d2dd9682 | 182 | %patch3 -p1 |
2e2c1841 | 183 | %patch4 -p1 |
8014476f | 184 | %{?with_arith:%patch5 -p1} |
243850ca | 185 | %{?with_crop:%patch6 -p1} |
ddb61eec | 186 | |
980e6a8c | 187 | cp -f %{_datadir}/libtool/config.sub . |
2e2c1841 ER |
188 | |
189 | %build | |
d19c5db4 | 190 | %configure \ |
7eb0bc45 | 191 | --enable-shared \ |
192 | --enable-static | |
193 | ||
5e0028c0 | 194 | %{__make} \ |
2e2c1841 ER |
195 | libdir=%{_libdir} |
196 | ||
f6d3fdee JB |
197 | LD_PRELOAD=$PWD/.libs/%{name}.so \ |
198 | %{__make} test | |
6415cd48 | 199 | |
200 | %install | |
201 | rm -rf $RPM_BUILD_ROOT | |
03263d3d | 202 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_bindir},%{_mandir}/man1} |
62468a60 | 203 | |
b6b4c812 | 204 | %{__make} install install-headers install-lib \ |
fab72418 | 205 | libdir=%{_libdir} \ |
b6b4c812 | 206 | DESTDIR=$RPM_BUILD_ROOT |
6415cd48 | 207 | |
78097371 | 208 | install jversion.h $RPM_BUILD_ROOT%{_includedir} |
209 | ||
5df36b8d JB |
210 | # remove HAVE_STD{DEF,LIB}_H |
211 | # (not necessary but may generate warnings confusing autoconf) | |
212 | (cd $RPM_BUILD_ROOT%{_includedir} | |
213 | grep -v 'HAVE_STD..._H' jconfig.h > jconfig.h.new | |
214 | mv -f jconfig.h.new jconfig.h | |
215 | ) | |
216 | ||
ba61cd5b | 217 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
218 | ||
6415cd48 | 219 | %clean |
220 | rm -rf $RPM_BUILD_ROOT | |
221 | ||
f6d3fdee JB |
222 | %post -p /sbin/ldconfig |
223 | %postun -p /sbin/ldconfig | |
224 | ||
6415cd48 | 225 | %files |
1007a85f | 226 | %defattr(644,root,root,755) |
8014476f | 227 | %doc README change.log %{?with_arith:README.arithmetic} |
f6d3fdee JB |
228 | %attr(755,root,root) %{_libdir}/libjpeg.so.*.*.* |
229 | %attr(755,root,root) %ghost %{_libdir}/libjpeg.so.62 | |
6415cd48 | 230 | |
231 | %files devel | |
1007a85f | 232 | %defattr(644,root,root,755) |
b6b4c812 | 233 | %doc {libjpeg,structure}.doc |
f6d3fdee JB |
234 | %attr(755,root,root) %{_libdir}/libjpeg.so |
235 | %{_libdir}/libjpeg.la | |
236 | %{_includedir}/jconfig.h | |
237 | %{_includedir}/jerror.h | |
238 | %{_includedir}/jmorecfg.h | |
239 | %{_includedir}/jpeglib.h | |
240 | %{_includedir}/jversion.h | |
7eb0bc45 | 241 | |
f6d3fdee | 242 | %files static |
1007a85f | 243 | %defattr(644,root,root,755) |
f6d3fdee | 244 | %{_libdir}/libjpeg.a |
f1f51b6b | 245 | |
f6d3fdee | 246 | %files progs |
1007a85f | 247 | %defattr(644,root,root,755) |
f6d3fdee JB |
248 | %attr(755,root,root) %{_bindir}/cjpeg |
249 | %attr(755,root,root) %{_bindir}/djpeg | |
250 | %attr(755,root,root) %{_bindir}/jpegtran | |
251 | %attr(755,root,root) %{_bindir}/rdjpgcom | |
252 | %attr(755,root,root) %{_bindir}/wrjpgcom | |
253 | %{_mandir}/man1/cjpeg.1* | |
254 | %{_mandir}/man1/djpeg.1* | |
255 | %{_mandir}/man1/jpegtran.1* | |
256 | %{_mandir}/man1/rdjpgcom.1* | |
257 | %{_mandir}/man1/wrjpgcom.1* | |
258 | %lang(fi) %{_mandir}/fi/man1/cjpeg.1* | |
259 | %lang(pl) %{_mandir}/pl/man1/cjpeg.1* | |
260 | %lang(pl) %{_mandir}/pl/man1/djpeg.1* |