]> git.pld-linux.org Git - packages/libjpeg.git/blob - libjpeg.spec
- remove HAVE_STD{DEF,LIB}_H defines from jconfig.h
[packages/libjpeg.git] / libjpeg.spec
1 Summary:        Library for handling different jpeg files
2 Summary(de):    Library zum Verarbeiten verschiedener jpeg-Dateien
3 Summary(fr):    Bibliothèque pour gérer différents fichiers jpeg
4 Summary(pl):    Biblioteka do manipulacji plikami w formacie jpeg
5 Summary(tr):    jpeg resimlerini iþleme kitaplýðý
6 Name:           libjpeg
7 Version:        6b
8 Release:        18
9 License:        distributable
10 Group:          Libraries
11 Group(de):      Libraries
12 Group(es):      Bibliotecas
13 Group(fr):      Librairies
14 Group(pl):      Biblioteki
15 Source0:        ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz
16 URL:            http://www.ijg.org/
17 Patch0:         %{name}-DESTDIR.patch
18 Patch1:         %{name}-arm.patch
19 Patch2:         %{name}-include.patch
20 Patch3:         %{name}-c++.patch
21 BuildRequires:  libtool
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 The libjpeg package contains a library of functions for manipulating
26 JPEG images.
27
28 %description -l de
29 Dieses Paket ist eine Library mit Funktionen zur Manipulation von
30 jpeg-Bildern, zusammen mit einfachen Clients zur Manipulation von
31 jpeg.
32
33 %description -l fr
34 Bibliothèque de fonctions qui manipulent des images jpeg, et clients
35 simples pour manipuler de telles images.
36
37 %description -l pl
38 Ten pakiet zawiera bibliotekê funkcji do manipulacji plikami jpeg.
39
40 %description -l tr
41 Bu paket, jpeg þekillerini iþlemek için kitaplýklar ve basit
42 istemciler içerir.
43
44 %package devel
45 Summary:        Headers for developing programs using libjpeg
46 Summary(de):    Header und statische Libraries zum Entwickeln von Programmen mit libjpeg
47 Summary(fr):    Bibliothèques statiques et en-têtes pour développer avec libjpeg
48 Summary(pl):    Pliki nag³ówkowe libjpeg
49 Summary(tr):    libjpeg için geliþtirme kitaplýklarý ve baþlýk dosyalarý
50 Group:          Development/Libraries
51 Group(de):      Entwicklung/Libraries
52 Group(fr):      Development/Librairies
53 Group(pl):      Programowanie/Biblioteki
54 Requires:       %{name} = %{version}
55
56 %description devel
57 The libjpeg-devel package includes the header files and static
58 libraries necessary for developing programs which will manipulate JPEG
59 files using the libjpeg library.
60
61 If you are going to develop programs which will manipulate JPEG
62 images, you should install libjpeg-devel. You'll also need to have the
63 libjpeg package installed.
64
65 %description -l de devel
66 Dieses Paket bietet alles, was Sie brauchen, um Programme zur
67 Manipulation von jpeg-Grafiken, einschließlich Dokumentation, zu
68 entwickeln.
69
70 %description -l fr devel
71 Ce package est tout ce dont vous avez besoin pour développer des
72 programmes manipulant des images jpg, et comprend la documentation.
73
74 %description -l pl devel
75 Ten pakiet pozwoli Ci na programowanie z wykorzystniem formatu jpeg.
76 Zawiera tak¿e dokumentacjê.
77
78 %description -l tr devel
79 Bu paket, jpeg resimlerini iþleyen programlar geliþtirmeniz için
80 gereken baþlýk dosyalarýný, kitaplýklarý ve ilgili yardým belgelerini
81 içerir.
82
83 %package progs
84 Summary:        Simple clients for manipulating jpeg images
85 Summary(de):    Einfachen Clients zur Manipulation von jpeg
86 Summary(fr):    Clients simples pour manipuler de telles images
87 Summary(pl):    Kilka prostych programów do manipulowania na plikach jpeg
88 Group:          Development/Libraries
89 Group(de):      Entwicklung/Libraries
90 Group(fr):      Development/Librairies
91 Group(pl):      Programowanie/Biblioteki
92 Requires:       %{name} = %{version}
93
94 %description progs
95 Simple clients for manipulating jpeg images. Libjpeg client programs
96 include cjpeg, djpeg, jpegtran, rdjpgcom and wrjpgcom. Djpeg
97 decompresses a JPEG file into a regular image file. Jpegtran can
98 perform various useful transformations on JPEG files. Rdjpgcom
99 displays any text comments included in a JPEG file. Wrjpgcom inserts
100 text comments into a JPEG file.
101
102 %description progs -l de
103 Einfachen Clients zur Manipulation von jpeg.
104
105 %description progs -l fr
106 Clients simples pour manipuler de telles images.
107
108 %description progs -l pl
109 Kilka prostych programów do manipulowania na plikach jpeg.
110
111 %package static
112 Summary:        Static libraries for developing programs using libjpeg
113 Summary(pl):    Biblioteki statyczne libjpeg
114 Group:          Development/Libraries
115 Group(de):      Entwicklung/Libraries
116 Group(fr):      Development/Librairies
117 Group(pl):      Programowanie/Biblioteki
118 Requires:       %{name}-devel = %{version}
119
120 %description static
121 Static libraries for developing programs using libjpeg.
122
123 %description -l pl static
124 Statyczna biblioteka libjpeg.
125
126 %prep
127 %setup  -q -n jpeg-%{version}
128 %patch0 -p1
129 %patch1 -p1
130 %patch2 -p1
131 %patch3 -p1
132
133 %build
134 cp -f %{_datadir}/libtool/config.sub .
135 %configure \
136         --enable-shared \
137         --enable-static
138
139 %{__make}
140 LD_PRELOAD=$PWD/.libs/%{name}.so make test
141
142 %install
143 rm -rf $RPM_BUILD_ROOT
144 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_bindir},%{_mandir}/man1}
145
146 %{__make} DESTDIR=$RPM_BUILD_ROOT \
147         install install-headers install-lib
148
149 install jversion.h $RPM_BUILD_ROOT%{_includedir}
150
151 # remove HAVE_STD{DEF,LIB}_H
152 # (not necessary but may generate warnings confusing autoconf)
153 (cd $RPM_BUILD_ROOT%{_includedir}
154 grep -v 'HAVE_STD..._H' jconfig.h > jconfig.h.new
155 mv -f jconfig.h.new jconfig.h
156 )
157
158 gzip -9nf {libjpeg,structure}.doc
159
160 %post   -p /sbin/ldconfig
161 %postun -p /sbin/ldconfig
162
163 %clean
164 rm -rf $RPM_BUILD_ROOT
165
166 %files
167 %defattr(644,root,root,755)
168 %attr(755,root,root) %{_libdir}/lib*.so.*.*
169
170 %files devel
171 %defattr(644,root,root,755)
172 %doc {libjpeg,structure}.doc.gz
173
174 %attr(755,root,root) %{_libdir}/lib*.so
175 %attr(755,root,root) %{_libdir}/lib*.la
176 %{_includedir}/*.h
177
178 %files progs
179 %defattr(644,root,root,755)
180 %attr(755,root,root) %{_bindir}/*
181 %{_mandir}/man1/*
182
183 %files static
184 %defattr(644,root,root,755)
185 %{_libdir}/lib*.a
This page took 0.06587 seconds and 3 git commands to generate.