1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files |
---|
4 | Summary(ja): MMX/SSE2 でアクセラレーションされた libjpeg ライブラリ |
---|
5 | |
---|
6 | Name: libjpeg-turbo |
---|
7 | Version: 1.0.0 |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | |
---|
10 | Group: System Environment/Libraries |
---|
11 | License: wxWidgets |
---|
12 | URL: http://sourceforge.net/projects/libjpeg-turbo |
---|
13 | Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
15 | |
---|
16 | BuildRequires: autoconf, automake, libtool |
---|
17 | %ifarch %{ix86} x86_64 |
---|
18 | BuildRequires: nasm |
---|
19 | %endif |
---|
20 | |
---|
21 | Obsoletes: libjpeg < 6b-50vl6 |
---|
22 | Provides: libjpeg = 6b-50vl6 |
---|
23 | |
---|
24 | Patch0: libjpeg-turbo10-rh617469.patch |
---|
25 | |
---|
26 | %description |
---|
27 | The libjpeg-turbo package contains a library of functions for manipulating |
---|
28 | JPEG images |
---|
29 | |
---|
30 | %package devel |
---|
31 | Summary: Headers for the libjpeg-turbo library |
---|
32 | Summary(ja): libjpeg-turbo ライブラリのヘッダファイル |
---|
33 | Group: Development/Libraries |
---|
34 | Obsoletes: libjpeg-devel < 6b-50vl6 |
---|
35 | Obsoletes: libjpeg-static < 6b-50vl6 |
---|
36 | Provides: libjpeg-devel = 6b-50vl6 |
---|
37 | Requires: libjpeg-turbo = %{version}-%{release} |
---|
38 | |
---|
39 | %description devel |
---|
40 | This package contains header files necessary for developing programs which |
---|
41 | will manipulate JPEG files using the libjpeg-turbo library |
---|
42 | |
---|
43 | %package utils |
---|
44 | Summary: Utilities for manipulating JPEG images |
---|
45 | Summary(ja): JPEG イメージを操作するためのユーティリティ |
---|
46 | Group: Applications/Multimedia |
---|
47 | Requires: libjpeg-turbo = %{version}-%{release} |
---|
48 | |
---|
49 | %description utils |
---|
50 | The libjpeg-turbo-utils package contains simple client programs for |
---|
51 | accessing the libjpeg functions. It contains cjpeg, djpeg, jpegtran, |
---|
52 | rdjpgcom and wrjpgcom. Cjpeg compresses an image file into JPEG format. |
---|
53 | Djpeg decompresses a JPEG file into a regular image file. Jpegtran |
---|
54 | can perform various useful transformations on JPEG files. Rdjpgcom |
---|
55 | displays any text comments included in a JPEG file. Wrjpgcom inserts |
---|
56 | text comments into a JPEG file. |
---|
57 | |
---|
58 | ## to build compat32 for x86_64 architecture support |
---|
59 | %package -n compat32-%{name} |
---|
60 | Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files |
---|
61 | Summary(ja): MMX/SSE2 でアクセラレーションされた libjpeg ライブラリ |
---|
62 | Group: System Environment/Libraries |
---|
63 | Obsoletes: compat32-libjpeg < 6b-50vl6 |
---|
64 | Provides: compat32-libjpeg = 6b-50vl6 |
---|
65 | |
---|
66 | %description -n compat32-%{name} |
---|
67 | The libjpeg-turbo package contains a library of functions for manipulating |
---|
68 | JPEG images |
---|
69 | |
---|
70 | %package -n compat32-%{name}-devel |
---|
71 | Summary: Headers for the libjpeg-turbo library |
---|
72 | Summary(ja): libjpeg-turbo ライブラリのヘッダファイル |
---|
73 | Group: Development/Libraries |
---|
74 | Obsoletes: compat32-libjpeg-devel < 6b-50vl6 |
---|
75 | Provides: compat32-libjpeg-devel = 6b-50vl6 |
---|
76 | Requires: libjpeg-turbo = %{version}-%{release} |
---|
77 | |
---|
78 | %description -n compat32-%{name}-devel |
---|
79 | This package contains header files necessary for developing programs which |
---|
80 | will manipulate JPEG files using the libjpeg-turbo library |
---|
81 | |
---|
82 | %prep |
---|
83 | %setup -q |
---|
84 | |
---|
85 | %patch0 -p0 -b .rh617469 |
---|
86 | |
---|
87 | %build |
---|
88 | autoreconf -fiv |
---|
89 | |
---|
90 | %configure --disable-static |
---|
91 | |
---|
92 | make %{?_smp_mflags} |
---|
93 | |
---|
94 | %install |
---|
95 | rm -rf $RPM_BUILD_ROOT |
---|
96 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
97 | |
---|
98 | # Fix perms |
---|
99 | chmod -x README-turbo.txt |
---|
100 | |
---|
101 | # Remove unwanted files |
---|
102 | rm -f $RPM_BUILD_ROOT/%{_libdir}/lib{,turbo}jpeg.la |
---|
103 | |
---|
104 | # Don't distribute libjpegturbo because it is unversioned |
---|
105 | rm -f $RPM_BUILD_ROOT/%{_includedir}/turbojpeg.h |
---|
106 | rm -f $RPM_BUILD_ROOT/%{_libdir}/libturbojpeg.so |
---|
107 | |
---|
108 | %clean |
---|
109 | rm -rf $RPM_BUILD_ROOT |
---|
110 | |
---|
111 | %post -p /sbin/ldconfig |
---|
112 | %postun -p /sbin/ldconfig |
---|
113 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
114 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
115 | |
---|
116 | %files |
---|
117 | %defattr(-,root,root,-) |
---|
118 | %doc README README-turbo.txt change.log ChangeLog.txt LGPL.txt LICENSE.txt |
---|
119 | %{_libdir}/libjpeg.so.62.0.0 |
---|
120 | %{_libdir}/libjpeg.so.62 |
---|
121 | |
---|
122 | %files devel |
---|
123 | %defattr(-,root,root,-) |
---|
124 | %doc coderules.doc jconfig.doc libjpeg.doc structure.doc example.c |
---|
125 | %{_includedir}/jconfig.h |
---|
126 | %{_includedir}/jerror.h |
---|
127 | %{_includedir}/jmorecfg.h |
---|
128 | %{_includedir}/jpeglib.h |
---|
129 | %{_libdir}/libjpeg.so |
---|
130 | |
---|
131 | %files utils |
---|
132 | %defattr(-,root,root,-) |
---|
133 | %doc usage.doc wizard.doc |
---|
134 | %{_bindir}/cjpeg |
---|
135 | %{_bindir}/djpeg |
---|
136 | %{_bindir}/jpegtran |
---|
137 | %{_bindir}/rdjpgcom |
---|
138 | %{_bindir}/wrjpgcom |
---|
139 | %{_mandir}/man1/cjpeg.1* |
---|
140 | %{_mandir}/man1/djpeg.1* |
---|
141 | %{_mandir}/man1/jpegtran.1* |
---|
142 | %{_mandir}/man1/rdjpgcom.1* |
---|
143 | %{_mandir}/man1/wrjpgcom.1* |
---|
144 | |
---|
145 | ## to build compat32 for x86_64 architecture support |
---|
146 | %if %{build_compat32} |
---|
147 | %files -n compat32-%{name} |
---|
148 | %defattr(-,root,root) |
---|
149 | %{_libdir}/libjpeg.so.* |
---|
150 | |
---|
151 | %files -n compat32-%{name}-devel |
---|
152 | %defattr(-,root,root) |
---|
153 | %{_libdir}/*.so |
---|
154 | %endif |
---|
155 | |
---|
156 | %changelog |
---|
157 | * Tue Sep 14 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1 |
---|
158 | - initial build for Vine Linux |
---|
159 | |
---|
160 | * Wed Aug 04 2010 Adam Tkac <atkac redhat com> 1.0.0-3 |
---|
161 | - fix huffman decoder to handle broken JPEGs well (#617469) |
---|
162 | |
---|
163 | * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-2 |
---|
164 | - add libjpeg-devel%%{_isa} provides to -devel subpkg to satisfy imlib-devel |
---|
165 | deps |
---|
166 | |
---|
167 | * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-1 |
---|
168 | - update to 1.0.0 |
---|
169 | - patches merged |
---|
170 | - libjpeg-turbo-programs.patch |
---|
171 | - libjpeg-turbo-nosimd.patch |
---|
172 | - add libjpeg provides to the main package to workaround problems with broken |
---|
173 | java-1.6.0-openjdk package |
---|
174 | |
---|
175 | * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 0.0.93-13 |
---|
176 | - remove libjpeg provides from -utils subpkg |
---|
177 | |
---|
178 | * Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-12 |
---|
179 | - move Obsoletes: libjpeg to main pkg |
---|
180 | |
---|
181 | * Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-11 |
---|
182 | - -utils: Requires: %%name ... |
---|
183 | |
---|
184 | * Wed Jun 30 2010 Adam Tkac <atkac redhat com> 0.0.93-10 |
---|
185 | - add Provides = libjpeg to -utils subpackage |
---|
186 | |
---|
187 | * Mon Jun 28 2010 Adam Tkac <atkac redhat com> 0.0.93-9 |
---|
188 | - merge review related fixes (#600243) |
---|
189 | |
---|
190 | * Wed Jun 16 2010 Adam Tkac <atkac redhat com> 0.0.93-8 |
---|
191 | - merge review related fixes (#600243) |
---|
192 | |
---|
193 | * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-7 |
---|
194 | - obsolete -static libjpeg subpackage (#600243) |
---|
195 | |
---|
196 | * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-6 |
---|
197 | - improve package description a little (#600243) |
---|
198 | - include example.c as %%doc in the -devel subpackage |
---|
199 | |
---|
200 | * Fri Jun 11 2010 Adam Tkac <atkac redhat com> 0.0.93-5 |
---|
201 | - don't use "fc12" disttag in obsoletes/provides (#600243) |
---|
202 | |
---|
203 | * Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-4 |
---|
204 | - fix compilation on platforms without MMX/SSE (#600243) |
---|
205 | |
---|
206 | * Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-3 |
---|
207 | - package review related fixes (#600243) |
---|
208 | |
---|
209 | * Wed Jun 09 2010 Adam Tkac <atkac redhat com> 0.0.93-2 |
---|
210 | - package review related fixes (#600243) |
---|
211 | |
---|
212 | * Fri Jun 04 2010 Adam Tkac <atkac redhat com> 0.0.93-1 |
---|
213 | - initial package |
---|