]> git.pld-linux.org Git - packages/libjpeg-turbo.git/blame_incremental - libjpeg-turbo.spec
- croppatch "patch" converted to diff; still evil, but not conflicting now
[packages/libjpeg-turbo.git] / libjpeg-turbo.spec
... / ...
CommitLineData
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#
10Summary: Library for handling different JPEG files
11Summary(de.UTF-8): Library zum Verarbeiten verschiedener JPEG-Dateien
12Summary(es.UTF-8): Biblioteca para manipulación de diferentes archivos JPEGs
13Summary(fr.UTF-8): Bibliothèque pour gérer différents fichiers JPEG
14Summary(pl.UTF-8): Biblioteka do manipulacji plikami w formacie JPEG
15Summary(pt_BR.UTF-8): Biblioteca para manipulação de diferentes arquivos JPEGs
16Summary(ru.UTF-8): Библиотека для обработки различных JPEG-файлов
17Summary(tr.UTF-8): JPEG resimlerini işleme kitaplığı
18Summary(uk.UTF-8): Бібліотека для обробки різноманітних JPEG-файлів
19Name: libjpeg
20Version: 6b
21Release: 27
22License: distributable
23Group: Libraries
24Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz
25# Source0-md5: dbd5f3b47ed13132f04c685d608a7547
26Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
27# Source1-md5: d6342c015a489de275ada637a77dc2b0
28Patch0: %{name}-DESTDIR.patch
29Patch1: %{name}-arm.patch
30Patch2: %{name}-include.patch
31Patch3: %{name}-c++.patch
32Patch4: %{name}-libtool.patch
33# from http://sylvana.net/jpeg-ari/jpeg-ari-28mar98.tar.gz
34Patch5: %{name}-arith.patch
35# from http://sylvana.net/jpegcrop/croppatch.tar.gz
36Patch6: %{name}-crop.patch
37URL: http://www.ijg.org/
38BuildRequires: libtool
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42The libjpeg package contains a library of functions for manipulating
43JPEG images.
44
45%description -l de.UTF-8
46Dieses Paket ist eine Library mit Funktionen zur Manipulation von
47JPEG-Bildern.
48
49%description -l es.UTF-8
50Este paquete contiene una biblioteca de funciones que manipulan
51imágenes JPEG.
52
53%description -l fr.UTF-8
54Bibliothèque de fonctions qui manipulent des images JPEG.
55
56%description -l pl.UTF-8
57Ten pakiet zawiera bibliotekę funkcji do manipulacji plikami JPEG.
58
59%description -l pt_BR.UTF-8
60Este pacote contém uma biblioteca de funções que manipulam imagens
61JPEG.
62
63%description -l ru.UTF-8
64Библиотека функций для обработки JPEG-изображений и простые клиенты
65для такой обработки.
66
67%description -l tr.UTF-8
68Bu paket, JPEG şekillerini işlemek için kitaplıklar ve basit
69istemciler içerir.
70
71%description -l uk.UTF-8
72Бібліотека функцій для обробки JPEG-зображень та прості клієнти для
73такої обробки.
74
75%package devel
76Summary: Headers for developing programs using libjpeg
77Summary(de.UTF-8): Header zum Entwickeln von Programmen mit libjpeg
78Summary(es.UTF-8): Archivos de inclusión para desarrollar programas usando libjpeg
79Summary(pl.UTF-8): Pliki nagłówkowe libjpeg
80Summary(pt_BR.UTF-8): Arquivos de inclusão para desenvolver programas usando libjpeg
81Summary(ru.UTF-8): Хедеры для разработки программ, использующих libjpeg
82Summary(tr.UTF-8): libjpeg için geliştirme kitaplıkları ve başlık dosyaları
83Summary(uk.UTF-8): Хедери для розробки програм, що використовують libjpeg
84Group: Development/Libraries
85Requires: %{name} = %{version}-%{release}
86
87%description devel
88The libjpeg-devel package includes the header files necessary for
89developing programs which will manipulate JPEG files using the libjpeg
90library.
91
92%description devel -l de.UTF-8
93Dieses Paket bietet alles, was Sie brauchen, um Programme zur
94Manipulation von JPEG-Grafiken, einschließlich Dokumentation, zu
95entwickeln.
96
97%description devel -l es.UTF-8
98Este paquete es todo lo que necesitas para desarrollar programas que
99manipulen imágenes JPEG, incluso documentación.
100
101%description devel -l fr.UTF-8
102Ce package est tout ce dont vous avez besoin pour développer des
103programmes manipulant des images JPEG, et comprend la documentation.
104
105%description devel -l pl.UTF-8
106Ten pakiet zawiera pliki potrzebne do programowania z wykorzystaniem
107biblioteki libjpeg. Zawiera także dokumentację.
108
109%description devel -l pt_BR.UTF-8
110Este pacote é tudo que você precisa para desenvolver programas que
111manipulam imagens JPEG, incluindo documentação.
112
113%description devel -l ru.UTF-8
114В этом пакете содержится все необходимое для разработки программ,
115которые работают с JPEG-изображениями включая документацию.
116
117%description devel -l tr.UTF-8
118Bu paket, JPEG resimlerini işleyen programlar geliştirmeniz için
119gereken başlık dosyalarını, kitaplıkları ve ilgili yardım belgelerini
120içerir.
121
122%description devel -l uk.UTF-8
123Цей пакет містить все необхідне для розробки програм, котрі працюють з
124JPEG-зображеннями, включаючи документацію.
125
126%package static
127Summary: Static library for developing programs using libjpeg
128Summary(pl.UTF-8): Biblioteka statyczna libjpeg
129Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com libjpeg
130Summary(ru.UTF-8): Статическая библиотека для программирования с libjpeg
131Summary(uk.UTF-8): Статична бібліотека для програмування з libjpeg
132Group: Development/Libraries
133Requires: %{name}-devel = %{version}-%{release}
134
135%description static
136Static library for developing programs using libjpeg.
137
138%description static -l pl.UTF-8
139Statyczna biblioteka libjpeg.
140
141%description static -l pt_BR.UTF-8
142Bibliotecas 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
153Summary: Simple clients for manipulating JPEG images
154Summary(de.UTF-8): Einfachen Clients zur Manipulation von JPEG
155Summary(fr.UTF-8): Clients simples pour manipuler des images JPEG
156Summary(pl.UTF-8): Kilka prostych programów do manipulowania na plikach JPEG
157Group: Development/Libraries
158Requires: %{name} = %{version}-%{release}
159
160%description progs
161Simple clients for manipulating JPEG images. Libjpeg client programs
162include cjpeg, djpeg, jpegtran, rdjpgcom and wrjpgcom. Djpeg
163decompresses a JPEG file into a regular image file. Jpegtran can
164perform various useful transformations on JPEG files. Rdjpgcom
165displays any text comments included in a JPEG file. Wrjpgcom inserts
166text comments into a JPEG file.
167
168%description progs -l de.UTF-8
169Einfachen Clients zur Manipulation von JPEG.
170
171%description progs -l fr.UTF-8
172Clients simples pour manipuler des images JPEG.
173
174%description progs -l pl.UTF-8
175Kilka prostych programów do obróbki plików JPEG, w tym: cjpeg, djpeg,
176jpegtran, rdjpgcom i wrjpgcom. djpeg dekompresuje plik JPEG do
177zwykłego pliku obrazu, jpegtran potrafi wykonywać różne
178przekształcenia na plikach JPEG. rdjpgcom wyświetla komentarze
179tekstowe 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
191cp -f %{_datadir}/libtool/config.sub .
192
193%build
194%configure \
195 --enable-shared \
196 --enable-static
197
198%{__make} \
199 libdir=%{_libdir}
200
201LD_PRELOAD=$PWD/.libs/%{name}.so \
202%{__make} test
203
204%install
205rm -rf $RPM_BUILD_ROOT
206install -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
212install 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}
217grep -v 'HAVE_STD..._H' jconfig.h > jconfig.h.new
218mv -f jconfig.h.new jconfig.h
219)
220
221bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
222
223%clean
224rm -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*
This page took 0.031498 seconds and 4 git commands to generate.