/[packages]/cauldron/libjpeg/current/SPECS/libjpeg.spec
ViewVC logotype

Contents of /cauldron/libjpeg/current/SPECS/libjpeg.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 430363 - (show annotations) (download)
Wed May 29 02:15:58 2013 UTC (10 years, 10 months ago) by fwang
File size: 5499 byte(s)
new version 1.3.0
1 %define major 8
2 %define libname %mklibname jpeg %{major}
3 %define lib6name %mklibname jpeg 62
4 %define libturbo %mklibname turbojpeg
5 %define develname %mklibname -d jpeg
6 %define staticname %mklibname -s -d jpeg
7
8 Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
9 Name: libjpeg
10 Epoch: 1
11 Version: 1.3.0
12 Release: %mkrel 1
13 License: wxWidgets
14 Group: System/Libraries
15 URL: http://sourceforge.net/projects/libjpeg-turbo
16 Source0: http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-%{version}.tar.gz
17 # 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 BuildRequires: nasm
24
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 Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
34 Group: System/Libraries
35 Provides: %{name} = %{epoch}:%{version}-%{release}
36
37 %description -n %{libname}
38 This package contains the library needed to run programs dynamically
39 linked with libjpeg-turbo.
40
41 %package -n %{lib6name}
42 Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
43 Group: System/Libraries
44
45 %description -n %{lib6name}
46 This package contains the library needed to run programs dynamically
47 linked with libjpeg-turbo.
48
49 %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 %package -n %{develname}
59 Summary: Development tools for programs which will use the libjpeg library
60 Group: Development/C
61 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 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 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 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/Utilities
101 Requires: %{libname} = %{epoch}:%{version}-%{release}
102 Provides: jpeg-progs = %{epoch}:%{version}-%{release}
103 Provides: libjpeg-progs = %{epoch}:%{version}-%{release}
104
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 %setup -qn libjpeg-turbo-%{version}
116
117 %build
118 export CONFIGURE_TOP=`pwd`
119 mkdir 8
120 pushd 8
121 %configure2_5x \
122 --with-jpeg8 \
123 --disable-silent-rules \
124 --enable-shared \
125 --enable-static
126 %make
127 gcc %{optflags} -o jpegexiforient %{SOURCE2}
128 popd
129
130 mkdir 6
131 pushd 6
132 %configure2_5x \
133 --enable-shared
134 %make
135 popd
136
137 %check
138 pushd 8
139 LD_PRELOAD=$PWD/.libs/%{name}.so make test
140 popd
141
142 %install
143 %makeinstall_std -C 8
144
145 rm -fr %{buildroot}%{_libdir}/*.la %{buildroot}%{_datadir}/doc
146
147 install -m 755 8/jpegexiforient %{buildroot}%{_bindir}
148 install -m 755 %{SOURCE3} %{buildroot}%{_bindir}
149 cp -fP 6/.libs/libjpeg.so.* %{buildroot}%{_libdir}
150
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 %files -n %{lib6name}
156 %{_libdir}/libjpeg.so.62
157 %{_libdir}/libjpeg.so.62.*
158
159 %files -n %{libturbo}
160 %{_libdir}/libturbojpeg.so
161
162 %files -n %{develname}
163 %doc example.c
164 %{_libdir}/libjpeg.so
165 %{_includedir}/*.h
166
167 %files -n %{staticname}
168 %{_libdir}/*.a
169
170 %files -n jpeg-progs
171 %{_bindir}/*
172 %{_mandir}/man1/*

  ViewVC Help
Powered by ViewVC 1.1.30