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