1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Summary: A MMX/SSE2/SIMD accelerated library for manipulating JPEG image files |
---|
4 | Summary(ja): MMX/SSE2/SIMD でアクセラレーションされた libjpeg ライブラリ |
---|
5 | |
---|
6 | Name: libjpeg-turbo |
---|
7 | Version: 2.0.4 |
---|
8 | Release: 2%{?_dist_release} |
---|
9 | |
---|
10 | Group: System Environment/Libraries |
---|
11 | License: IJG |
---|
12 | URL: http://sourceforge.net/projects/libjpeg-turbo |
---|
13 | Vendor: Project Vine |
---|
14 | Distribution: Vine Linux |
---|
15 | |
---|
16 | Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
---|
17 | Patch0: libjpeg-turbo-cmake.patch |
---|
18 | Patch1: libjpeg-turbo-CET.patch |
---|
19 | Patch1000: CVE-2020-13790.patch |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
21 | |
---|
22 | BuildRequires: cmake |
---|
23 | %ifarch %{ix86} x86_64 |
---|
24 | BuildRequires: nasm |
---|
25 | %endif |
---|
26 | |
---|
27 | Obsoletes: libjpeg < 6b-50vl6 |
---|
28 | Provides: libjpeg = 6b-50vl6 |
---|
29 | |
---|
30 | %description |
---|
31 | The libjpeg-turbo package contains a library of functions for manipulating |
---|
32 | JPEG images |
---|
33 | |
---|
34 | %package devel |
---|
35 | Summary: Headers for the libjpeg-turbo library |
---|
36 | Summary(ja): libjpeg-turbo ライブラリのヘッダファイル |
---|
37 | Group: Development/Libraries |
---|
38 | Obsoletes: libjpeg-devel < 6b-50vl6 |
---|
39 | Obsoletes: libjpeg-static < 6b-50vl6 |
---|
40 | Provides: libjpeg-devel = 6b-50vl6 |
---|
41 | Requires: libjpeg-turbo = %{version}-%{release} |
---|
42 | |
---|
43 | %description devel |
---|
44 | This package contains header files necessary for developing programs which |
---|
45 | will manipulate JPEG files using the libjpeg-turbo library |
---|
46 | |
---|
47 | %package utils |
---|
48 | Summary: Utilities for manipulating JPEG images |
---|
49 | Summary(ja): JPEG イメージを操作するためのユーティリティ |
---|
50 | Group: Applications/Multimedia |
---|
51 | Requires: libjpeg-turbo = %{version}-%{release} |
---|
52 | |
---|
53 | %description utils |
---|
54 | The libjpeg-turbo-utils package contains simple client programs for |
---|
55 | accessing the libjpeg functions. It contains cjpeg, djpeg, jpegtran, |
---|
56 | rdjpgcom and wrjpgcom. Cjpeg compresses an image file into JPEG format. |
---|
57 | Djpeg decompresses a JPEG file into a regular image file. Jpegtran |
---|
58 | can perform various useful transformations on JPEG files. Rdjpgcom |
---|
59 | displays any text comments included in a JPEG file. Wrjpgcom inserts |
---|
60 | text comments into a JPEG file. |
---|
61 | |
---|
62 | ## to build compat32 for x86_64 architecture support |
---|
63 | %package -n compat32-%{name} |
---|
64 | Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files |
---|
65 | Summary(ja): MMX/SSE2 でアクセラレーションされた libjpeg ライブラリ |
---|
66 | Group: System Environment/Libraries |
---|
67 | Obsoletes: compat32-libjpeg < 6b-50vl6 |
---|
68 | Provides: compat32-libjpeg = 6b-50vl6 |
---|
69 | |
---|
70 | %description -n compat32-%{name} |
---|
71 | The libjpeg-turbo package contains a library of functions for manipulating |
---|
72 | JPEG images |
---|
73 | |
---|
74 | %package -n compat32-%{name}-devel |
---|
75 | Summary: Headers for the libjpeg-turbo library |
---|
76 | Summary(ja): libjpeg-turbo ライブラリのヘッダファイル |
---|
77 | Group: Development/Libraries |
---|
78 | Obsoletes: compat32-libjpeg-devel < 6b-50vl6 |
---|
79 | Provides: compat32-libjpeg-devel = 6b-50vl6 |
---|
80 | Requires: libjpeg-turbo = %{version}-%{release} |
---|
81 | |
---|
82 | %description -n compat32-%{name}-devel |
---|
83 | This package contains header files necessary for developing programs which |
---|
84 | will manipulate JPEG files using the libjpeg-turbo library |
---|
85 | |
---|
86 | |
---|
87 | %prep |
---|
88 | %setup -q |
---|
89 | %patch0 -p1 |
---|
90 | %patch1 -p1 |
---|
91 | %patch1000 -p1 |
---|
92 | |
---|
93 | |
---|
94 | %build |
---|
95 | %ifarch %{ix86} x86_64 |
---|
96 | export LDFLAGS="$RPM_LD_FLAGS -Wl,-z,ibt -Wl,-z,shstk" |
---|
97 | %endif |
---|
98 | |
---|
99 | mkdir jpeg6 |
---|
100 | pushd jpeg6 |
---|
101 | %{cmake} \ |
---|
102 | -DCMAKE_SKIP_RPATH:BOOL=YES \ |
---|
103 | -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \ |
---|
104 | -DENABLE_STATIC:BOOL=NO \ |
---|
105 | .. |
---|
106 | |
---|
107 | make %{?_smp_mflags} V=1 |
---|
108 | popd |
---|
109 | |
---|
110 | mkdir jpeg8 |
---|
111 | pushd jpeg8 |
---|
112 | %{cmake} \ |
---|
113 | -DWITH_JPEG8=YES \ |
---|
114 | -DCMAKE_SKIP_RPATH:BOOL=YES \ |
---|
115 | -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \ |
---|
116 | -DENABLE_STATIC:BOOL=NO \ |
---|
117 | .. |
---|
118 | |
---|
119 | make %{?_smp_mflags} V=1 |
---|
120 | popd |
---|
121 | |
---|
122 | |
---|
123 | # Fix perms |
---|
124 | chmod -x README.md |
---|
125 | |
---|
126 | |
---|
127 | |
---|
128 | %install |
---|
129 | rm -rf %{buildroot} |
---|
130 | pushd jpeg6 |
---|
131 | make install DESTDIR=%{buildroot} |
---|
132 | popd |
---|
133 | |
---|
134 | rm -rf %{buildroot}%{_mandir}/* |
---|
135 | rm -f %{buildroot}%{_includedir}/* |
---|
136 | rm -f %{buildroot}%{_bindir}/* |
---|
137 | rm -f %{buildroot}%{_libdir}/pkgconfig/* |
---|
138 | rm -f %{buildroot}%{_libdir}/lib*.so |
---|
139 | |
---|
140 | pushd jpeg8 |
---|
141 | make install DESTDIR=%{buildroot} |
---|
142 | popd |
---|
143 | |
---|
144 | # Remove unwanted files |
---|
145 | rm -f %{buildroot}/%{_libdir}/lib{,turbo}jpeg.la |
---|
146 | |
---|
147 | |
---|
148 | %check |
---|
149 | pushd jpeg6 |
---|
150 | LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test %{?_smp_mflags} |
---|
151 | popd |
---|
152 | |
---|
153 | pushd jpeg8 |
---|
154 | LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test %{?_smp_mflags} |
---|
155 | popd |
---|
156 | |
---|
157 | |
---|
158 | %clean |
---|
159 | rm -rf %{buildroot} |
---|
160 | |
---|
161 | |
---|
162 | %post -p /sbin/ldconfig |
---|
163 | %postun -p /sbin/ldconfig |
---|
164 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
165 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
166 | |
---|
167 | %files |
---|
168 | %defattr(-,root,root,-) |
---|
169 | %license LICENSE.md |
---|
170 | %doc README.md README.ijg ChangeLog.md |
---|
171 | %{_libdir}/libjpeg.so.* |
---|
172 | %{_libdir}/libturbojpeg.so.* |
---|
173 | |
---|
174 | %files devel |
---|
175 | %defattr(-,root,root,-) |
---|
176 | %doc coderules.txt jconfig.txt libjpeg.txt structure.txt example.c |
---|
177 | %{_includedir}/jconfig.h |
---|
178 | %{_includedir}/jerror.h |
---|
179 | %{_includedir}/jmorecfg.h |
---|
180 | %{_includedir}/jpegint.h |
---|
181 | %{_includedir}/jpeglib.h |
---|
182 | %{_includedir}/turbojpeg.h |
---|
183 | %{_libdir}/libjpeg.so |
---|
184 | %{_libdir}/libturbojpeg.so |
---|
185 | %{_libdir}/pkgconfig/libjpeg.pc |
---|
186 | %{_libdir}/pkgconfig/libturbojpeg.pc |
---|
187 | |
---|
188 | %files utils |
---|
189 | %defattr(-,root,root,-) |
---|
190 | %doc usage.txt wizard.txt |
---|
191 | %{_bindir}/cjpeg |
---|
192 | %{_bindir}/djpeg |
---|
193 | %{_bindir}/jpegtran |
---|
194 | %{_bindir}/rdjpgcom |
---|
195 | %{_bindir}/wrjpgcom |
---|
196 | %{_mandir}/man1/cjpeg.1* |
---|
197 | %{_mandir}/man1/djpeg.1* |
---|
198 | %{_mandir}/man1/jpegtran.1* |
---|
199 | %{_mandir}/man1/rdjpgcom.1* |
---|
200 | %{_mandir}/man1/wrjpgcom.1* |
---|
201 | |
---|
202 | ## to build compat32 for x86_64 architecture support |
---|
203 | %if %{build_compat32} |
---|
204 | %files -n compat32-%{name} |
---|
205 | %defattr(-,root,root) |
---|
206 | %{_libdir}/libjpeg.so.* |
---|
207 | %{_libdir}/libturbojpeg.so.* |
---|
208 | |
---|
209 | %files -n compat32-%{name}-devel |
---|
210 | %defattr(-,root,root) |
---|
211 | %{_libdir}/*.so |
---|
212 | %endif |
---|
213 | |
---|
214 | %changelog |
---|
215 | * Mon Jun 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.4-2 |
---|
216 | - added Patch1000 to fix CVE-2020-13790. |
---|
217 | |
---|
218 | * Mon Feb 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.4-1 |
---|
219 | - new upstream release. |
---|
220 | |
---|
221 | * Sat Oct 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.3-2 |
---|
222 | - built both of libjpeg.so.62 and libjpeg.so.8. |
---|
223 | |
---|
224 | * Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.3-1 |
---|
225 | - new upstream release. |
---|
226 | - dropped all patches. |
---|
227 | - imported Patch0 and 1 from rawhide. |
---|
228 | |
---|
229 | * Tue Dec 19 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.5.3-1 |
---|
230 | - update to 1.5.3 |
---|
231 | - update Patch0,doc |
---|
232 | |
---|
233 | * Mon Nov 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.2-1 |
---|
234 | - update to 1.4.2 |
---|
235 | - update Patch0 |
---|
236 | |
---|
237 | * Sun Sep 07 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.3.1-1 |
---|
238 | - update to 1.3.1 |
---|
239 | - ship turbojpeg library and headers |
---|
240 | |
---|
241 | * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-2 |
---|
242 | - rebuild with VineSeed environment |
---|
243 | |
---|
244 | * Mon Sep 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-1 |
---|
245 | - new upstream release |
---|
246 | |
---|
247 | * Tue Mar 29 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.0-1 |
---|
248 | - new upstream release |
---|
249 | |
---|
250 | * Tue Sep 14 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1 |
---|
251 | - initial build for Vine Linux |
---|
252 | |
---|
253 | * Wed Aug 04 2010 Adam Tkac <atkac redhat com> 1.0.0-3 |
---|
254 | - fix huffman decoder to handle broken JPEGs well (#617469) |
---|
255 | |
---|
256 | * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-2 |
---|
257 | - add libjpeg-devel%%{_isa} provides to -devel subpkg to satisfy imlib-devel |
---|
258 | deps |
---|
259 | |
---|
260 | * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-1 |
---|
261 | - update to 1.0.0 |
---|
262 | - patches merged |
---|
263 | - libjpeg-turbo-programs.patch |
---|
264 | - libjpeg-turbo-nosimd.patch |
---|
265 | - add libjpeg provides to the main package to workaround problems with broken |
---|
266 | java-1.6.0-openjdk package |
---|
267 | |
---|
268 | * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 0.0.93-13 |
---|
269 | - remove libjpeg provides from -utils subpkg |
---|
270 | |
---|
271 | * Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-12 |
---|
272 | - move Obsoletes: libjpeg to main pkg |
---|
273 | |
---|
274 | * Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-11 |
---|
275 | - -utils: Requires: %%name ... |
---|
276 | |
---|
277 | * Wed Jun 30 2010 Adam Tkac <atkac redhat com> 0.0.93-10 |
---|
278 | - add Provides = libjpeg to -utils subpackage |
---|
279 | |
---|
280 | * Mon Jun 28 2010 Adam Tkac <atkac redhat com> 0.0.93-9 |
---|
281 | - merge review related fixes (#600243) |
---|
282 | |
---|
283 | * Wed Jun 16 2010 Adam Tkac <atkac redhat com> 0.0.93-8 |
---|
284 | - merge review related fixes (#600243) |
---|
285 | |
---|
286 | * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-7 |
---|
287 | - obsolete -static libjpeg subpackage (#600243) |
---|
288 | |
---|
289 | * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-6 |
---|
290 | - improve package description a little (#600243) |
---|
291 | - include example.c as %%doc in the -devel subpackage |
---|
292 | |
---|
293 | * Fri Jun 11 2010 Adam Tkac <atkac redhat com> 0.0.93-5 |
---|
294 | - don't use "fc12" disttag in obsoletes/provides (#600243) |
---|
295 | |
---|
296 | * Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-4 |
---|
297 | - fix compilation on platforms without MMX/SSE (#600243) |
---|
298 | |
---|
299 | * Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-3 |
---|
300 | - package review related fixes (#600243) |
---|
301 | |
---|
302 | * Wed Jun 09 2010 Adam Tkac <atkac redhat com> 0.0.93-2 |
---|
303 | - package review related fixes (#600243) |
---|
304 | |
---|
305 | * Fri Jun 04 2010 Adam Tkac <atkac redhat com> 0.0.93-1 |
---|
306 | - initial package |
---|