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

  ViewVC Help
Powered by ViewVC 1.1.28