]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/delegates/ljpeg-6b.tar.gz | |
3 | # NOTE: it changes ABI! either make it work without ABI breakage, or build | |
4 | # second libjpeg (with lossless support) with different name/soname | |
5 | # | |
6 | # Conditional build: | |
7 | %bcond_with arith # arithmetic coding support (changes error codes in ABI, patent problems somewhere) | |
8 | %bcond_with crop # lossless cropping support (changes error codes in ABI) | |
9 | # | |
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-файлів | |
19 | Name: libjpeg | |
20 | Version: 6b | |
21 | Release: 27 | |
22 | License: distributable | |
23 | Group: Libraries | |
24 | Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz | |
25 | # Source0-md5: dbd5f3b47ed13132f04c685d608a7547 | |
26 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 | |
27 | # Source1-md5: d6342c015a489de275ada637a77dc2b0 | |
28 | Patch0: %{name}-DESTDIR.patch | |
29 | Patch1: %{name}-arm.patch | |
30 | Patch2: %{name}-include.patch | |
31 | Patch3: %{name}-c++.patch | |
32 | Patch4: %{name}-libtool.patch | |
33 | # from http://sylvana.net/jpeg-ari/jpeg-ari-28mar98.tar.gz | |
34 | Patch5: %{name}-arith.patch | |
35 | # from http://sylvana.net/jpegcrop/croppatch.tar.gz | |
36 | Patch6: %{name}-crop.patch | |
37 | URL: http://www.ijg.org/ | |
38 | BuildRequires: libtool | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | The libjpeg package contains a library of functions for manipulating | |
43 | JPEG images. | |
44 | ||
45 | %description -l de.UTF-8 | |
46 | Dieses Paket ist eine Library mit Funktionen zur Manipulation von | |
47 | JPEG-Bildern. | |
48 | ||
49 | %description -l es.UTF-8 | |
50 | Este paquete contiene una biblioteca de funciones que manipulan | |
51 | imágenes JPEG. | |
52 | ||
53 | %description -l fr.UTF-8 | |
54 | Bibliothèque de fonctions qui manipulent des images JPEG. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | Ten pakiet zawiera bibliotekę funkcji do manipulacji plikami JPEG. | |
58 | ||
59 | %description -l pt_BR.UTF-8 | |
60 | Este pacote contém uma biblioteca de funções que manipulam imagens | |
61 | JPEG. | |
62 | ||
63 | %description -l ru.UTF-8 | |
64 | Библиотека функций для обработки JPEG-изображений и простые клиенты | |
65 | для такой обработки. | |
66 | ||
67 | %description -l tr.UTF-8 | |
68 | Bu paket, JPEG şekillerini işlemek için kitaplıklar ve basit | |
69 | istemciler içerir. | |
70 | ||
71 | %description -l uk.UTF-8 | |
72 | Бібліотека функцій для обробки JPEG-зображень та прості клієнти для | |
73 | такої обробки. | |
74 | ||
75 | %package devel | |
76 | Summary: Headers for developing programs using libjpeg | |
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 | |
79 | Summary(pl.UTF-8): Pliki nagłówkowe libjpeg | |
80 | Summary(pt_BR.UTF-8): Arquivos de inclusão para desenvolver programas usando libjpeg | |
81 | Summary(ru.UTF-8): Хедеры для разработки программ, использующих libjpeg | |
82 | Summary(tr.UTF-8): libjpeg için geliştirme kitaplıkları ve başlık dosyaları | |
83 | Summary(uk.UTF-8): Хедери для розробки програм, що використовують libjpeg | |
84 | Group: Development/Libraries | |
85 | Requires: %{name} = %{version}-%{release} | |
86 | ||
87 | %description devel | |
88 | The libjpeg-devel package includes the header files necessary for | |
89 | developing programs which will manipulate JPEG files using the libjpeg | |
90 | library. | |
91 | ||
92 | %description devel -l de.UTF-8 | |
93 | Dieses Paket bietet alles, was Sie brauchen, um Programme zur | |
94 | Manipulation von JPEG-Grafiken, einschließlich Dokumentation, zu | |
95 | entwickeln. | |
96 | ||
97 | %description devel -l es.UTF-8 | |
98 | Este paquete es todo lo que necesitas para desarrollar programas que | |
99 | manipulen imágenes JPEG, incluso documentación. | |
100 | ||
101 | %description devel -l fr.UTF-8 | |
102 | Ce package est tout ce dont vous avez besoin pour développer des | |
103 | programmes manipulant des images JPEG, et comprend la documentation. | |
104 | ||
105 | %description devel -l pl.UTF-8 | |
106 | Ten pakiet zawiera pliki potrzebne do programowania z wykorzystaniem | |
107 | biblioteki libjpeg. Zawiera także dokumentację. | |
108 | ||
109 | %description devel -l pt_BR.UTF-8 | |
110 | Este pacote é tudo que você precisa para desenvolver programas que | |
111 | manipulam imagens JPEG, incluindo documentação. | |
112 | ||
113 | %description devel -l ru.UTF-8 | |
114 | В этом пакете содержится все необходимое для разработки программ, | |
115 | которые работают с JPEG-изображениями включая документацию. | |
116 | ||
117 | %description devel -l tr.UTF-8 | |
118 | Bu paket, JPEG resimlerini işleyen programlar geliştirmeniz için | |
119 | gereken başlık dosyalarını, kitaplıkları ve ilgili yardım belgelerini | |
120 | içerir. | |
121 | ||
122 | %description devel -l uk.UTF-8 | |
123 | Цей пакет містить все необхідне для розробки програм, котрі працюють з | |
124 | JPEG-зображеннями, включаючи документацію. | |
125 | ||
126 | %package static | |
127 | Summary: Static library for developing programs using libjpeg | |
128 | Summary(pl.UTF-8): Biblioteka statyczna libjpeg | |
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 | |
132 | Group: Development/Libraries | |
133 | Requires: %{name}-devel = %{version}-%{release} | |
134 | ||
135 | %description static | |
136 | Static library for developing programs using libjpeg. | |
137 | ||
138 | %description static -l pl.UTF-8 | |
139 | Statyczna biblioteka libjpeg. | |
140 | ||
141 | %description static -l pt_BR.UTF-8 | |
142 | Bibliotecas estáticas para desenvolvimento com libjpeg. | |
143 | ||
144 | %description static -l ru.UTF-8 | |
145 | Этот пакет содержит статические библиотеки, необходимые для написания | |
146 | программ, использующих libjpeg. | |
147 | ||
148 | %description static -l uk.UTF-8 | |
149 | Цей пакет містить статичні бібліотеки, необхідні для написання | |
150 | програм, що використовують libjpeg. | |
151 | ||
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 | ||
181 | %prep | |
182 | %setup -q -n jpeg-%{version} | |
183 | %patch0 -p1 | |
184 | %patch1 -p1 | |
185 | %patch2 -p1 | |
186 | %patch3 -p1 | |
187 | %patch4 -p1 | |
188 | %{?with_arith:%patch5 -p1} | |
189 | %{?with_crop:%patch6 -p1} | |
190 | ||
191 | cp -f %{_datadir}/libtool/config.sub . | |
192 | ||
193 | %build | |
194 | %configure \ | |
195 | --enable-shared \ | |
196 | --enable-static | |
197 | ||
198 | %{__make} \ | |
199 | libdir=%{_libdir} | |
200 | ||
201 | LD_PRELOAD=$PWD/.libs/%{name}.so \ | |
202 | %{__make} test | |
203 | ||
204 | %install | |
205 | rm -rf $RPM_BUILD_ROOT | |
206 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_bindir},%{_mandir}/man1} | |
207 | ||
208 | %{__make} install install-headers install-lib \ | |
209 | libdir=%{_libdir} \ | |
210 | DESTDIR=$RPM_BUILD_ROOT | |
211 | ||
212 | install jversion.h $RPM_BUILD_ROOT%{_includedir} | |
213 | ||
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 | ||
221 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} | |
222 | ||
223 | %clean | |
224 | rm -rf $RPM_BUILD_ROOT | |
225 | ||
226 | %post -p /sbin/ldconfig | |
227 | %postun -p /sbin/ldconfig | |
228 | ||
229 | %files | |
230 | %defattr(644,root,root,755) | |
231 | %doc README change.log %{?with_arith:README.arithmetic} | |
232 | %attr(755,root,root) %{_libdir}/libjpeg.so.*.*.* | |
233 | %attr(755,root,root) %ghost %{_libdir}/libjpeg.so.62 | |
234 | ||
235 | %files devel | |
236 | %defattr(644,root,root,755) | |
237 | %doc {libjpeg,structure}.doc | |
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 | |
245 | ||
246 | %files static | |
247 | %defattr(644,root,root,755) | |
248 | %{_libdir}/libjpeg.a | |
249 | ||
250 | %files progs | |
251 | %defattr(644,root,root,755) | |
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* |