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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 655868 - (hide annotations) (download)
Wed Jul 23 06:17:30 2014 UTC (9 years, 8 months ago) by fwang
File size: 5716 byte(s)
1.3.1
1 blino 910 %define major 8
2     %define libname %mklibname jpeg %{major}
3 fwang 207971 %define lib6name %mklibname jpeg 62
4 fwang 430376 %define turbomajor 0
5     %define libturbo %mklibname turbojpeg %{turbomajor}
6 blino 910 %define develname %mklibname -d jpeg
7     %define staticname %mklibname -s -d jpeg
8    
9 fwang 138027 Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
10 blino 910 Name: libjpeg
11 fwang 138028 Epoch: 1
12 fwang 655868 Version: 1.3.1
13     Release: %mkrel 1
14 fwang 138027 License: wxWidgets
15 blino 910 Group: System/Libraries
16 fwang 138027 URL: http://sourceforge.net/projects/libjpeg-turbo
17     Source0: http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-%{version}.tar.gz
18 blino 910 # 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 fwang 138027 BuildRequires: nasm
25 blino 910
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 fwang 138027 Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
35 blino 910 Group: System/Libraries
36 fwang 138027 Provides: %{name} = %{epoch}:%{version}-%{release}
37 blino 910
38     %description -n %{libname}
39     This package contains the library needed to run programs dynamically
40 fwang 138027 linked with libjpeg-turbo.
41 blino 910
42 fwang 207971 %package -n %{lib6name}
43 mitya 233122 Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
44     Group: System/Libraries
45 fwang 207971
46     %description -n %{lib6name}
47     This package contains the library needed to run programs dynamically
48     linked with libjpeg-turbo.
49    
50 fwang 269180 %package -n %{libturbo}
51     Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
52     Group: System/Libraries
53 fwang 430376 Obsoletes: %{_lib}turbojpeg < 1:1.3.0
54 fwang 269180 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 blino 910 %package -n %{develname}
61     Summary: Development tools for programs which will use the libjpeg library
62     Group: Development/C
63 fwang 138027 Requires: %{libname} = %{epoch}:%{version}
64 fwang 430376 Requires: %{libturbo} = %{epoch}:%{version}
65 fwang 138027 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 blino 910 Conflicts: jpeg6-devel
70 fwang 430376 Conflicts: %{_lib}turbojpeg < 1:1.3.0
71 blino 910 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 fwang 138027 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 blino 910 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 boklm 344994 Group: Graphics/Utilities
105 fwang 138027 Requires: %{libname} = %{epoch}:%{version}-%{release}
106     Provides: jpeg-progs = %{epoch}:%{version}-%{release}
107     Provides: libjpeg-progs = %{epoch}:%{version}-%{release}
108 blino 910
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 fwang 138027 %setup -qn libjpeg-turbo-%{version}
120 blino 910
121     %build
122 fwang 207971 export CONFIGURE_TOP=`pwd`
123     mkdir 8
124     pushd 8
125 blino 910 %configure2_5x \
126 fwang 138027 --with-jpeg8 \
127 blino 910 --disable-silent-rules \
128     --enable-shared \
129     --enable-static
130 fwang 207971 %make
131     gcc %{optflags} -o jpegexiforient %{SOURCE2}
132     popd
133 blino 910
134 fwang 207971 mkdir 6
135     pushd 6
136     %configure2_5x \
137     --enable-shared
138 blino 910 %make
139 fwang 207971 popd
140 blino 910
141 fwang 207971 %check
142     pushd 8
143 blino 910 LD_PRELOAD=$PWD/.libs/%{name}.so make test
144 fwang 207971 popd
145 blino 910
146     %install
147 fwang 207971 %makeinstall_std -C 8
148 blino 910
149 fwang 207937 rm -fr %{buildroot}%{_libdir}/*.la %{buildroot}%{_datadir}/doc
150 fwang 159559
151 fwang 207971 install -m 755 8/jpegexiforient %{buildroot}%{_bindir}
152     install -m 755 %{SOURCE3} %{buildroot}%{_bindir}
153 zezinho 210374 cp -fP 6/.libs/libjpeg.so.* %{buildroot}%{_libdir}
154 blino 910
155     %files -n %{libname}
156 fwang 430375 %doc README ChangeLog.txt coderules.txt jconfig.txt libjpeg.txt structure.txt usage.txt wizard.txt
157 blino 910 %{_libdir}/libjpeg.so.%{major}*
158    
159 fwang 207971 %files -n %{lib6name}
160     %{_libdir}/libjpeg.so.62
161     %{_libdir}/libjpeg.so.62.*
162    
163 fwang 269180 %files -n %{libturbo}
164 fwang 430376 %{_libdir}/libturbojpeg.so.%{turbomajor}
165     %{_libdir}/libturbojpeg.so.%{turbomajor}.*
166 fwang 269180
167 blino 910 %files -n %{develname}
168     %doc example.c
169 fwang 269180 %{_libdir}/libjpeg.so
170 fwang 430376 %{_libdir}/libturbojpeg.so
171 blino 910 %{_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.30