1 |
blino |
910 |
%define major 8 |
2 |
|
|
%define libname %mklibname jpeg %{major} |
3 |
fwang |
207971 |
%define lib6name %mklibname jpeg 62 |
4 |
fwang |
269180 |
%define libturbo %mklibname turbojpeg |
5 |
blino |
910 |
%define develname %mklibname -d jpeg |
6 |
|
|
%define staticname %mklibname -s -d jpeg |
7 |
|
|
|
8 |
fwang |
138027 |
Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files |
9 |
blino |
910 |
Name: libjpeg |
10 |
fwang |
138028 |
Epoch: 1 |
11 |
fwang |
269175 |
Version: 1.2.1 |
12 |
fwang |
269180 |
Release: %mkrel 2 |
13 |
fwang |
138027 |
License: wxWidgets |
14 |
blino |
910 |
Group: System/Libraries |
15 |
fwang |
138027 |
URL: http://sourceforge.net/projects/libjpeg-turbo |
16 |
|
|
Source0: http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-%{version}.tar.gz |
17 |
blino |
910 |
# These two allow automatic lossless rotation of JPEG images from a digital |
18 |
|
|
# camera which have orientation markings in the EXIF data. After rotation |
19 |
|
|
# the orientation markings are reset to avoid duplicate rotation when |
20 |
|
|
# applying these programs again. |
21 |
|
|
Source2: http://jpegclub.org/jpegexiforient.c |
22 |
|
|
Source3: http://jpegclub.org/exifautotran.txt |
23 |
fwang |
138027 |
BuildRequires: nasm |
24 |
blino |
910 |
|
25 |
|
|
%description |
26 |
|
|
The libjpeg package contains a shared library of functions for loading, |
27 |
|
|
manipulating and saving JPEG format image files. |
28 |
|
|
|
29 |
|
|
Install the libjpeg package if you need to manipulate JPEG files. You |
30 |
|
|
should also install the jpeg-progs package. |
31 |
|
|
|
32 |
|
|
%package -n %{libname} |
33 |
fwang |
138027 |
Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files |
34 |
blino |
910 |
Group: System/Libraries |
35 |
fwang |
138027 |
Provides: %{name} = %{epoch}:%{version}-%{release} |
36 |
blino |
910 |
|
37 |
|
|
%description -n %{libname} |
38 |
|
|
This package contains the library needed to run programs dynamically |
39 |
fwang |
138027 |
linked with libjpeg-turbo. |
40 |
blino |
910 |
|
41 |
fwang |
207971 |
%package -n %{lib6name} |
42 |
mitya |
233122 |
Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files |
43 |
|
|
Group: System/Libraries |
44 |
fwang |
207971 |
|
45 |
|
|
%description -n %{lib6name} |
46 |
|
|
This package contains the library needed to run programs dynamically |
47 |
|
|
linked with libjpeg-turbo. |
48 |
|
|
|
49 |
fwang |
269180 |
%package -n %{libturbo} |
50 |
|
|
Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files |
51 |
|
|
Group: System/Libraries |
52 |
|
|
Conflicts: %{_lib}jpeg-devel < 1:1.2.1-2 |
53 |
|
|
|
54 |
|
|
%description -n %{libturbo} |
55 |
|
|
This package contains the library needed to run programs dynamically |
56 |
|
|
linked with libjpeg-turbo. |
57 |
|
|
|
58 |
blino |
910 |
%package -n %{develname} |
59 |
|
|
Summary: Development tools for programs which will use the libjpeg library |
60 |
|
|
Group: Development/C |
61 |
fwang |
138027 |
Requires: %{libname} = %{epoch}:%{version} |
62 |
|
|
Provides: jpeg-devel = %{epoch}:%{version}-%{release} |
63 |
|
|
Provides: jpeg%{major}-devel = %{epoch}:%{version}-%{release} |
64 |
|
|
Provides: %{name}-devel = %{epoch}:%{version}-%{release} |
65 |
|
|
Obsoletes: %{name}-devel < %{epoch}:%{version}-%{release} |
66 |
blino |
910 |
Conflicts: jpeg6-devel |
67 |
|
|
Obsoletes: %{mklibname jpeg 62 -d} < 6b-45 |
68 |
|
|
|
69 |
|
|
%description -n %{develname} |
70 |
|
|
The libjpeg-devel package includes the header files necessary for |
71 |
|
|
developing programs which will manipulate JPEG files using |
72 |
|
|
the libjpeg library. |
73 |
|
|
|
74 |
|
|
If you are going to develop programs which will manipulate JPEG images, |
75 |
|
|
you should install libjpeg-devel. You'll also need to have the libjpeg |
76 |
|
|
package installed. |
77 |
|
|
|
78 |
|
|
%package -n %{staticname} |
79 |
|
|
Summary: Static libraries for programs which will use the libjpeg library |
80 |
|
|
Group: Development/C |
81 |
fwang |
138027 |
Requires: %{develname} = %{epoch}:%{version}-%{release} |
82 |
|
|
Provides: %{name}-static-devel = %{epoch}:%{version}-%{release} |
83 |
|
|
Provides: jpeg-static-devel = %{epoch}:%{version}-%{release} |
84 |
|
|
Provides: jpeg%{major}-static-devel = %{epoch}:%{version}-%{release} |
85 |
blino |
910 |
Conflicts: jpeg6-static-devel |
86 |
|
|
Obsoletes: %{mklibname jpeg 62 -d -s} < 6b-45 |
87 |
|
|
Obsoletes: %{mklibname jpeg 7 -d -s} < 7-3 |
88 |
|
|
|
89 |
|
|
%description -n %{staticname} |
90 |
|
|
The libjpeg-devel package includes the static librariesnecessary for |
91 |
|
|
developing programs which will manipulate JPEG files using |
92 |
|
|
the libjpeg library. |
93 |
|
|
|
94 |
|
|
If you are going to develop programs which will manipulate JPEG images, |
95 |
|
|
you should install libjpeg-devel. You'll also need to have the libjpeg |
96 |
|
|
package installed. |
97 |
|
|
|
98 |
|
|
%package -n jpeg-progs |
99 |
|
|
Summary: Programs for manipulating JPEG format image files |
100 |
|
|
Group: Graphics |
101 |
fwang |
138027 |
Requires: %{libname} = %{epoch}:%{version}-%{release} |
102 |
|
|
Provides: jpeg-progs = %{epoch}:%{version}-%{release} |
103 |
|
|
Provides: libjpeg-progs = %{epoch}:%{version}-%{release} |
104 |
blino |
910 |
|
105 |
|
|
%description -n jpeg-progs |
106 |
|
|
The jpeg-progs package contains simple client programs for accessing |
107 |
|
|
the libjpeg functions. Libjpeg client programs include cjpeg, djpeg, |
108 |
|
|
jpegtran, rdjpgcom and wrjpgcom. Cjpeg compresses an image file into JPEG |
109 |
|
|
format. Djpeg decompresses a JPEG file into a regular image file. Jpegtran |
110 |
|
|
can perform various useful transformations on JPEG files. Rdjpgcom displays |
111 |
|
|
any text comments included in a JPEG file. Wrjpgcom inserts text |
112 |
|
|
comments into a JPEG file. |
113 |
|
|
|
114 |
|
|
%prep |
115 |
fwang |
138027 |
%setup -qn libjpeg-turbo-%{version} |
116 |
blino |
910 |
|
117 |
|
|
%build |
118 |
fwang |
207971 |
export CONFIGURE_TOP=`pwd` |
119 |
|
|
mkdir 8 |
120 |
|
|
pushd 8 |
121 |
blino |
910 |
%configure2_5x \ |
122 |
fwang |
138027 |
--with-jpeg8 \ |
123 |
blino |
910 |
--disable-silent-rules \ |
124 |
|
|
--enable-shared \ |
125 |
|
|
--enable-static |
126 |
fwang |
207971 |
%make |
127 |
|
|
gcc %{optflags} -o jpegexiforient %{SOURCE2} |
128 |
|
|
popd |
129 |
blino |
910 |
|
130 |
fwang |
207971 |
mkdir 6 |
131 |
|
|
pushd 6 |
132 |
|
|
%configure2_5x \ |
133 |
|
|
--enable-shared |
134 |
blino |
910 |
%make |
135 |
fwang |
207971 |
popd |
136 |
blino |
910 |
|
137 |
fwang |
207971 |
%check |
138 |
|
|
pushd 8 |
139 |
blino |
910 |
LD_PRELOAD=$PWD/.libs/%{name}.so make test |
140 |
fwang |
207971 |
popd |
141 |
blino |
910 |
|
142 |
|
|
%install |
143 |
fwang |
207971 |
%makeinstall_std -C 8 |
144 |
blino |
910 |
|
145 |
fwang |
207937 |
rm -fr %{buildroot}%{_libdir}/*.la %{buildroot}%{_datadir}/doc |
146 |
fwang |
159559 |
|
147 |
fwang |
207971 |
install -m 755 8/jpegexiforient %{buildroot}%{_bindir} |
148 |
|
|
install -m 755 %{SOURCE3} %{buildroot}%{_bindir} |
149 |
zezinho |
210374 |
cp -fP 6/.libs/libjpeg.so.* %{buildroot}%{_libdir} |
150 |
blino |
910 |
|
151 |
|
|
%files -n %{libname} |
152 |
|
|
%doc README change.log coderules.txt filelist.txt install.txt jconfig.txt libjpeg.txt structure.txt usage.txt wizard.txt |
153 |
|
|
%{_libdir}/libjpeg.so.%{major}* |
154 |
|
|
|
155 |
fwang |
207971 |
%files -n %{lib6name} |
156 |
|
|
%{_libdir}/libjpeg.so.62 |
157 |
|
|
%{_libdir}/libjpeg.so.62.* |
158 |
|
|
|
159 |
fwang |
269180 |
%files -n %{libturbo} |
160 |
|
|
%{_libdir}/libturbojpeg.so |
161 |
|
|
|
162 |
blino |
910 |
%files -n %{develname} |
163 |
|
|
%doc example.c |
164 |
fwang |
269180 |
%{_libdir}/libjpeg.so |
165 |
blino |
910 |
%{_includedir}/*.h |
166 |
|
|
|
167 |
|
|
%files -n %{staticname} |
168 |
|
|
%{_libdir}/*.a |
169 |
|
|
|
170 |
|
|
%files -n jpeg-progs |
171 |
|
|
%{_bindir}/* |
172 |
|
|
%{_mandir}/man1/* |