author | chrisk |
Thu, 11 Mar 2010 10:51:33 +0000 | |
changeset 17666 | c4731a56b48d |
parent 16434 | f21f22550fe9 |
child 17842 | 1cc615f41f16 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWTiff |
|
3 |
# |
|
4 |
# includes module(s): tiff |
|
5 |
# |
|
11894 | 6 |
# Copyright 2007 Sun Microsystems, Inc. |
9397 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
16434 | 10 |
%define owner laca |
9397 | 11 |
# |
12 |
%include Solaris.inc |
|
13 |
||
16425 | 14 |
%define OSR 12272:3.8.1 |
15 |
||
9397 | 16 |
%define _prefix /usr |
17 |
||
18 |
%define tarball_version 3.8.2 |
|
19 |
||
20 |
Name: SUNWTiff |
|
21 |
Summary: libtiff - library for reading and writing TIFF |
|
22 |
Version: 20.%{default_pkg_version} |
|
23 |
Source: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{tarball_version}.tar.gz |
|
24 |
Source1: %{name}-manpages-0.1.tar.gz |
|
25 |
# date:2006-11-22 owner:laca type:bug bugster:6451119 state:upstream |
|
26 |
# patch for vulnerabilities identified by Tavis Ormandy, Google Security Team |
|
27 |
# upstream, taken from Fedora |
|
28 |
Patch1: libtiff-01-ormandy.diff |
|
29 |
# date:2006-11-22 owner:laca type:bug bugster:6451119 state:upstream |
|
30 |
# upstream, taken from Fedora |
|
31 |
Patch2: libtiff-02-CVE-2006-2193.diff |
|
13401 | 32 |
# date:2008-09-03 owner:johnf type:bug bugster:6743799 state:upstream |
33 |
# upstream, taken from RHEL by Even Rouault |
|
34 |
Patch3: libtiff-03-CVE-2008-2327.diff |
|
16019
8d883fdc918d
6858149 CVE-2009-2347 Integer overflow in libtiff utilities
an230044
parents:
15833
diff
changeset
|
35 |
# date:2009-07-14 owner:abhijit nath type:bug bugster:6858149 state:upstream |
8d883fdc918d
6858149 CVE-2009-2347 Integer overflow in libtiff utilities
an230044
parents:
15833
diff
changeset
|
36 |
# upstream, taken from libtiff 4.0 |
8d883fdc918d
6858149 CVE-2009-2347 Integer overflow in libtiff utilities
an230044
parents:
15833
diff
changeset
|
37 |
Patch4: libtiff-04-CVE-2009-2347.diff |
16383
54e07c1c22a9
CR#6875065 CVE-2009-2285 libtiff: LZWDecodeCompat underflow
an230044
parents:
16298
diff
changeset
|
38 |
# date:2009-08-27 owner:abhijit nath type:bug bugster:6875065 state:upstream |
54e07c1c22a9
CR#6875065 CVE-2009-2285 libtiff: LZWDecodeCompat underflow
an230044
parents:
16298
diff
changeset
|
39 |
Patch5: libtiff-05-CVE-2009-2285.diff |
17666 | 40 |
# date:2010-0311 owner:chrisk type:bug |
41 |
Patch6: libtiff-06-non-static-fn.diff |
|
42 |
||
9397 | 43 |
SUNW_BaseDir: %{_prefix} |
11894 | 44 |
SUNW_Copyright: %{name}.copyright |
9397 | 45 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
46 |
||
47 |
%include default-depend.inc |
|
15650 | 48 |
Requires: SUNWzlibr |
49 |
Requires: SUNWlibmsr |
|
9397 | 50 |
Requires: SUNWlibms |
51 |
Requires: SUNWzlib |
|
15833
7f9243acbaba
fix dependency issue(CR6843511, 6843654, 6843579, 6843587, 6843581, 6845023, 6843582)
davelam
parents:
15650
diff
changeset
|
52 |
Requires: SUNWjpg |
9397 | 53 |
|
54 |
%package devel |
|
55 |
Summary: %{summary} - development files |
|
56 |
SUNW_BaseDir: %{_prefix} |
|
57 |
%include default-depend.inc |
|
58 |
Requires: SUNWTiff |
|
9790 | 59 |
Requires: SUNWman |
9397 | 60 |
|
61 |
%prep |
|
62 |
%setup -c -n %name-%version |
|
63 |
cd tiff-%{tarball_version} |
|
64 |
%patch1 -p1 |
|
65 |
%patch2 -p1 |
|
13401 | 66 |
%patch3 -p1 |
16019
8d883fdc918d
6858149 CVE-2009-2347 Integer overflow in libtiff utilities
an230044
parents:
15833
diff
changeset
|
67 |
%patch4 -p1 |
16383
54e07c1c22a9
CR#6875065 CVE-2009-2285 libtiff: LZWDecodeCompat underflow
an230044
parents:
16298
diff
changeset
|
68 |
%patch5 -p1 |
17666 | 69 |
%patch6 -p1 |
9397 | 70 |
gzcat %SOURCE1 | tar -xf - |
71 |
||
72 |
%ifarch amd64 sparcv9 |
|
73 |
cd .. |
|
16298
d86d9943a7f4
6872336 SUNWTiff.spec file is incorrectly patching
an230044
parents:
16019
diff
changeset
|
74 |
cp -pr tiff-%{tarball_version} tiff-%{tarball_version}-64 |
9397 | 75 |
%endif |
76 |
||
77 |
%build |
|
78 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
79 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
80 |
CPUS=1 |
|
81 |
fi |
|
82 |
export CFLAGS="$RPM_OPT_FLAGS" |
|
83 |
export LDFLAGS="%_ldflags" |
|
84 |
||
85 |
cd tiff-%{tarball_version} |
|
86 |
||
87 |
%ifarch sparc |
|
88 |
%define target sparc-sun-solaris |
|
89 |
%else |
|
90 |
%define target i386-sun-solaris |
|
91 |
%endif |
|
92 |
||
93 |
./configure \ |
|
94 |
--prefix=%{_prefix} \ |
|
95 |
--libexecdir=%{_libexecdir} \ |
|
96 |
--disable-cxx |
|
97 |
make -j$CPUS |
|
98 |
||
99 |
%ifarch amd64 sparcv9 |
|
100 |
cd ../tiff-%{tarball_version}-64 |
|
101 |
export CFLAGS="%optflags64" |
|
102 |
./configure \ |
|
103 |
--prefix=%{_prefix} \ |
|
104 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
105 |
--libdir=%{_libdir}/%{_arch64} \ |
|
106 |
--disable-cxx |
|
107 |
make -j$CPUS |
|
108 |
%endif |
|
109 |
||
110 |
%install |
|
111 |
%ifarch amd64 sparcv9 |
|
112 |
cd tiff-%{tarball_version}-64 |
|
113 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
114 |
if test -d sun-manpages; then |
|
115 |
cd sun-manpages |
|
116 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
117 |
cd .. |
|
118 |
fi |
|
119 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a |
|
120 |
cd .. |
|
121 |
%endif |
|
122 |
||
123 |
cd tiff-%{tarball_version} |
|
124 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
125 |
if test -d sun-manpages; then |
|
126 |
cd sun-manpages |
|
127 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
128 |
cd .. |
|
129 |
fi |
|
130 |
||
131 |
mkdir -p $RPM_BUILD_ROOT%{_mandir}/entities |
|
132 |
touch $RPM_BUILD_ROOT%{_mandir}/entities/booktitles.ent |
|
133 |
touch $RPM_BUILD_ROOT%{_mandir}/entities/gnomecommon.ent |
|
134 |
touch $RPM_BUILD_ROOT%{_mandir}/entities/smancommon.ent |
|
135 |
cd $RPM_BUILD_ROOT%{_mandir}/man3tiff |
|
136 |
ln -s ../entities/booktitles.ent . |
|
137 |
ln -s ../entities/gnomecommon.ent . |
|
138 |
ln -s ../entities/smancommon.ent . |
|
139 |
rm $RPM_BUILD_ROOT%{_mandir}/entities/booktitles.ent |
|
140 |
rm $RPM_BUILD_ROOT%{_mandir}/entities/gnomecommon.ent |
|
141 |
rm $RPM_BUILD_ROOT%{_mandir}/entities/smancommon.ent |
|
142 |
rmdir $RPM_BUILD_ROOT%{_mandir}/entities |
|
143 |
cd - |
|
144 |
chmod 0755 $RPM_BUILD_ROOT%{_mandir}/man3tiff |
|
145 |
chmod 0755 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
146 |
chmod 0755 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
147 |
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libtiff.so.3 |
|
148 |
||
149 |
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a |
|
150 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc |
|
151 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/man |
|
152 |
||
153 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
154 |
||
155 |
%clean |
|
156 |
rm -rf $RPM_BUILD_ROOT |
|
157 |
||
158 |
%files |
|
159 |
%defattr (-, root, bin) |
|
160 |
%dir %attr (0755, root, bin) %{_libdir} |
|
161 |
%{_libdir}/lib*.so* |
|
162 |
%ifarch amd64 sparcv9 |
|
163 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
164 |
%attr (0755, root, bin) %{_libdir}/%{_arch64}/lib*.so* |
|
165 |
%endif |
|
166 |
%dir %attr (0755, root, bin) %{_bindir} |
|
167 |
%{_bindir}/* |
|
168 |
%dir %attr(0755, root, sys) %{_datadir} |
|
169 |
%dir %attr(0755, root, bin) %{_mandir} |
|
170 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
171 |
%{_mandir}/man1/* |
|
172 |
||
173 |
%files devel |
|
174 |
%defattr (-, root, bin) |
|
175 |
%dir %attr (0755, root, bin) %{_includedir} |
|
176 |
%{_includedir}/* |
|
177 |
%dir %attr(0755, root, sys) %{_datadir} |
|
178 |
%dir %attr(0755, root, bin) %{_mandir} |
|
179 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
|
180 |
%{_mandir}/man3/* |
|
181 |
%dir %attr(0755, root, bin) %{_mandir}/man3tiff |
|
182 |
%{_mandir}/man3tiff/* |
|
183 |
||
184 |
%changelog |
|
16383
54e07c1c22a9
CR#6875065 CVE-2009-2285 libtiff: LZWDecodeCompat underflow
an230044
parents:
16298
diff
changeset
|
185 |
* Thu Aug 27 2009 - [email protected] |
54e07c1c22a9
CR#6875065 CVE-2009-2285 libtiff: LZWDecodeCompat underflow
an230044
parents:
16298
diff
changeset
|
186 |
- Fixes CR #6875065 |
16298
d86d9943a7f4
6872336 SUNWTiff.spec file is incorrectly patching
an230044
parents:
16019
diff
changeset
|
187 |
* Mon Aug 17 2009 - [email protected] |
d86d9943a7f4
6872336 SUNWTiff.spec file is incorrectly patching
an230044
parents:
16019
diff
changeset
|
188 |
- Fixes CR #6872336 |
16019
8d883fdc918d
6858149 CVE-2009-2347 Integer overflow in libtiff utilities
an230044
parents:
15833
diff
changeset
|
189 |
* Tue Jul 14 2009 - [email protected] |
8d883fdc918d
6858149 CVE-2009-2347 Integer overflow in libtiff utilities
an230044
parents:
15833
diff
changeset
|
190 |
- add patch libtiff-04-CVE-2009-2347.diff to fix bug CR6858149 |
15833
7f9243acbaba
fix dependency issue(CR6843511, 6843654, 6843579, 6843587, 6843581, 6845023, 6843582)
davelam
parents:
15650
diff
changeset
|
191 |
* Tue Jun 02 2009 - [email protected] |
7f9243acbaba
fix dependency issue(CR6843511, 6843654, 6843579, 6843587, 6843581, 6845023, 6843582)
davelam
parents:
15650
diff
changeset
|
192 |
- add 'Requires: SUNWjpg' to fix bug CR6842550 |
13401 | 193 |
* Thu Sep 4 2008 - [email protected] |
194 |
- add patch CVE-2008-2327.diff |
|
11894 | 195 |
* Mon Mar 24 2008 - [email protected] |
196 |
- add copyright file |
|
9790 | 197 |
* Thu Apr 26 2007 - [email protected] |
198 |
- add SUNWman dependency, fixes 6511213 |
|
9565 | 199 |
* Wed Mar 15 2007 - [email protected] |
200 |
- Removed adding ccdir to PATH |
|
9397 | 201 |
* Wed Nov 22 2006 - [email protected] |
202 |
- add patches ormandy.diff and CVE-2006-2193.diff, fixes 6451119 |
|
203 |
* Fri Sep 01 2006 - [email protected] |
|
204 |
- Add new man page tarball |
|
205 |
* Fri Jul 28 2006 - [email protected] |
|
206 |
- bump to 3.8.2 |
|
207 |
* Tue May 09 2006 - [email protected] |
|
208 |
- merge -share pkg(s) into the base pkg(s) |
|
209 |
* Thu Apr 06 2006 - [email protected] |
|
210 |
- Now use tarball_version. |
|
211 |
* Fri Feb 17 2006 - [email protected] |
|
212 |
- Update Build/Requires after running check-deps.pl script. |
|
213 |
* Mon Dec 19 2005 - [email protected] |
|
214 |
- Bump to 3.7.4. |
|
215 |
* Thu Sep 22 2005 - [email protected] |
|
216 |
- make install the 64-bit bits first so the executables in %{_bindir} |
|
217 |
get overwritten by the 32-bit ones and not the other way around. |
|
218 |
* Fri Sep 02 2005 - [email protected] |
|
219 |
- remove unpackaged files |
|
220 |
* Tue Apr 26 2004 - [email protected] |
|
221 |
- updated to version 3.7.2, fixes CR6203747 |
|
222 |
* Fri Oct 29 2004 - [email protected] |
|
223 |
- use $CC64 as the 64-bit C compiler, if defined |
|
224 |
* Sat Oct 02 2004 - [email protected] |
|
225 |
- added %pkgbuild_postprocess |
|
226 |
* Sat Oct 2 2004 - [email protected] |
|
227 |
- Create 64bit libraries for Solaris |
|
228 |
* Sun Sep 12 2004 - [email protected] |
|
229 |
- Added %defattr for devel-share pkg |
|
230 |
* Fri Sep 10 2004 - [email protected] |
|
231 |
- Added Requires: SUNWTiff for devel and devel-share packages |
|
232 |
* Mon Aug 30 2004 - [email protected] |
|
233 |
- Bug 5091588 : include files and sman3 files should be in a separate devel |
|
234 |
package |
|
235 |
* Wed Aug 18 2004 - [email protected] |
|
236 |
- Update libtiff.so.3 perms for Solaris integration. |
|
237 |
* Tue Aug 17 2004 - [email protected] |
|
238 |
- Another Update mandir perms for Solaris integration. |
|
239 |
* Tue Aug 17 2004 - [email protected] |
|
240 |
- Update mandir perms for Solaris integration. |
|
241 |
* Tue Aug 17 2004 - [email protected] |
|
242 |
- update mandir permissions for Solaris integration |
|
243 |
* Fri Aug 13 2004 - [email protected] |
|
244 |
- Create symlinks to *.ent in ../entities. Fixes 5085622. |
|
245 |
* Thu Aug 12 2004 - [email protected] |
|
246 |
- Updated Version to be 2.6.0 since delivering w/ G2.6 |
|
247 |
* Thu Aug 12 2004 - [email protected] |
|
248 |
- Add symlinks to ../entities/*.ent in the sman3tiff dir. Fixes 5085622. |
|
249 |
* Sun Feb 23 2004 - [email protected] |
|
250 |
- initial version added to CVS |
|
15650 | 251 |