]> git.pld-linux.org Git - packages/libjpeg.git/blob - libjpeg.spec
- README file added to %doc (important: it provides copyright information)
[packages/libjpeg.git] / libjpeg.spec
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
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, zusammen mit einfachen Clients zur Manipulation von
45 jpeg.
46
47 %description -l es.UTF-8
48 Este paquete contiene una biblioteca de funciones y programas
49 sencillos que manipulan imágenes jpeg.
50
51 %description -l fr.UTF-8
52 Bibliothèque de fonctions qui manipulent des images jpeg, et clients
53 simples pour manipuler de telles images.
54
55 %description -l pl.UTF-8
56 Ten pakiet zawiera bibliotekę funkcji do manipulacji plikami jpeg.
57
58 %description -l pt_BR.UTF-8
59 Este pacote contém uma biblioteca de funções e programas simples que
60 manipulam imagens jpeg.
61
62 %description -l ru.UTF-8
63 Библиотека функций для обработки jpeg-изображений и простые клиенты
64 для такой обработки.
65
66 %description -l tr.UTF-8
67 Bu paket, jpeg şekillerini işlemek için kitaplıklar ve basit
68 istemciler içerir.
69
70 %description -l uk.UTF-8
71 Бібліотека функцій для обробки jpeg-зображень та прості клієнти для
72 такої обробки.
73
74 %package devel
75 Summary:        Headers for developing programs using libjpeg
76 Summary(de.UTF-8):      Header und statische Libraries zum Entwickeln von Programmen mit libjpeg
77 Summary(es.UTF-8):      Archivos de inclusión y bibliotecas para desarrollar programas usando libjpeg
78 Summary(fr.UTF-8):      Bibliothèques statiques et en-têtes pour développer avec libjpeg
79 Summary(pl.UTF-8):      Pliki nagłówkowe libjpeg
80 Summary(pt_BR.UTF-8):   Arquivos de inclusão e bibliotecas 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 and static
89 libraries necessary for developing programs which will manipulate JPEG
90 files using the libjpeg library.
91
92 If you are going to develop programs which will manipulate JPEG
93 images, you should install libjpeg-devel. You'll also need to have the
94 libjpeg package installed.
95
96 %description devel -l de.UTF-8
97 Dieses Paket bietet alles, was Sie brauchen, um Programme zur
98 Manipulation von jpeg-Grafiken, einschließlich Dokumentation, zu
99 entwickeln.
100
101 %description devel -l es.UTF-8
102 Este paquete es todo lo que necesitas para desarrollar programas que
103 manipulen imágenes jpeg, incluso documentación.
104
105 %description devel -l fr.UTF-8
106 Ce package est tout ce dont vous avez besoin pour développer des
107 programmes manipulant des images jpg, et comprend la documentation.
108
109 %description devel -l pl.UTF-8
110 Ten pakiet pozwoli Ci na programowanie z wykorzystaniem formatu jpeg.
111 Zawiera także dokumentację.
112
113 %description devel -l pt_BR.UTF-8
114 Este pacote é tudo que você precisa para desenvolver programas que
115 manipulam imagens jpeg, incluindo documentação.
116
117 %description devel -l ru.UTF-8
118 В этом пакете содержится все необходимое для разработки программ,
119 которые работают с jpeg-изображениями включая документацию.
120
121 %description devel -l tr.UTF-8
122 Bu paket, jpeg resimlerini işleyen programlar geliştirmeniz için
123 gereken başlık dosyalarını, kitaplıkları ve ilgili yardım belgelerini
124 içerir.
125
126 %description devel -l uk.UTF-8
127 Цей пакет містить все необхідне для розробки програм, котрі працюють з
128 jpeg-зображеннями, включаючи документацію.
129
130 %package progs
131 Summary:        Simple clients for manipulating jpeg images
132 Summary(de.UTF-8):      Einfachen Clients zur Manipulation von jpeg
133 Summary(fr.UTF-8):      Clients simples pour manipuler de telles images
134 Summary(pl.UTF-8):      Kilka prostych programów do manipulowania na plikach jpeg
135 Group:          Development/Libraries
136 Requires:       %{name} = %{version}-%{release}
137
138 %description progs
139 Simple clients for manipulating jpeg images. Libjpeg client programs
140 include cjpeg, djpeg, jpegtran, rdjpgcom and wrjpgcom. Djpeg
141 decompresses a JPEG file into a regular image file. Jpegtran can
142 perform various useful transformations on JPEG files. Rdjpgcom
143 displays any text comments included in a JPEG file. Wrjpgcom inserts
144 text comments into a JPEG file.
145
146 %description progs -l de.UTF-8
147 Einfachen Clients zur Manipulation von jpeg.
148
149 %description progs -l fr.UTF-8
150 Clients simples pour manipuler de telles images.
151
152 %description progs -l pl.UTF-8
153 Kilka prostych programów do manipulowania na plikach jpeg.
154
155 %package static
156 Summary:        Static libraries for developing programs using libjpeg
157 Summary(pl.UTF-8):      Biblioteki statyczne libjpeg
158 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com libjpeg
159 Summary(ru.UTF-8):      Статическая библиотека для программирования с libjpeg
160 Summary(uk.UTF-8):      Статична бібліотека для програмування з libjpeg
161 Group:          Development/Libraries
162 Requires:       %{name}-devel = %{version}-%{release}
163
164 %description static
165 Static libraries for developing programs using libjpeg.
166
167 %description static -l pl.UTF-8
168 Statyczna biblioteka libjpeg.
169
170 %description static -l pt_BR.UTF-8
171 Bibliotecas estáticas para desenvolvimento com libjpeg.
172
173 %description static -l ru.UTF-8
174 Этот пакет содержит статические библиотеки, необходимые для написания
175 программ, использующих libjpeg.
176
177 %description static -l uk.UTF-8
178 Цей пакет містить статичні бібліотеки, необхідні для написання
179 програм, що використовують libjpeg.
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
189 %if %{with crop}
190 gzip -dc %{SOURCE2} | tar xf -
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 make test
204
205 %install
206 rm -rf $RPM_BUILD_ROOT
207 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_bindir},%{_mandir}/man1}
208
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 %post   -p /sbin/ldconfig
226 %postun -p /sbin/ldconfig
227
228 %clean
229 rm -rf $RPM_BUILD_ROOT
230
231 %files
232 %defattr(644,root,root,755)
233 %doc README
234 %attr(755,root,root) %{_libdir}/lib*.so.*.*
235
236 %files devel
237 %defattr(644,root,root,755)
238 %doc {libjpeg,structure}.doc
239
240 %attr(755,root,root) %{_libdir}/lib*.so
241 %{_libdir}/lib*.la
242 %{_includedir}/*.h
243
244 %files progs
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_bindir}/*
247 %{_mandir}/man1/*
248 %lang(fi) %{_mandir}/fi/man1/*
249 %lang(pl) %{_mandir}/pl/man1/*
250
251 %files static
252 %defattr(644,root,root,755)
253 %{_libdir}/lib*.a
This page took 0.085231 seconds and 4 git commands to generate.