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

  ViewVC Help
Powered by ViewVC 1.1.30