author | an230044 |
Mon, 27 Sep 2010 11:32:21 +0000 | |
branch | opensolaris-2009-06 |
changeset 20102 | 2d19c462bb98 |
parent 20095 | 1390a2f94262 |
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 |
# |
|
10 |
# Owner: laca |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%define _prefix /usr |
|
15 |
||
20095
1390a2f94262
6970794 CVE-2010-2065/CVE-2010-2443 as a security issue (Vulnerability) of LIBTIFF
an230044
parents:
14337
diff
changeset
|
16 |
%define tarball_version 3.9.4 |
9397 | 17 |
|
18 |
Name: SUNWTiff |
|
19 |
Summary: libtiff - library for reading and writing TIFF |
|
20 |
Version: 20.%{default_pkg_version} |
|
21 |
Source: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{tarball_version}.tar.gz |
|
22 |
Source1: %{name}-manpages-0.1.tar.gz |
|
23 |
SUNW_BaseDir: %{_prefix} |
|
11894 | 24 |
SUNW_Copyright: %{name}.copyright |
9397 | 25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
26 |
||
27 |
%include default-depend.inc |
|
28 |
Requires: SUNWlibms |
|
29 |
Requires: SUNWzlib |
|
30 |
||
31 |
%package devel |
|
32 |
Summary: %{summary} - development files |
|
33 |
SUNW_BaseDir: %{_prefix} |
|
34 |
%include default-depend.inc |
|
35 |
Requires: SUNWTiff |
|
9790 | 36 |
Requires: SUNWman |
9397 | 37 |
|
38 |
%prep |
|
39 |
%setup -c -n %name-%version |
|
40 |
cd tiff-%{tarball_version} |
|
41 |
gzcat %SOURCE1 | tar -xf - |
|
42 |
||
43 |
%ifarch amd64 sparcv9 |
|
44 |
cd .. |
|
14331
bb1c48cd7ee8
6858149 CVE-2009-2347 Integer overflow in libtiff utilities
an230044
parents:
13401
diff
changeset
|
45 |
cp -pr tiff-%{tarball_version} tiff-%{tarball_version}-64 |
9397 | 46 |
%endif |
47 |
||
48 |
%build |
|
49 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
50 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
51 |
CPUS=1 |
|
52 |
fi |
|
53 |
export CFLAGS="$RPM_OPT_FLAGS" |
|
54 |
export LDFLAGS="%_ldflags" |
|
55 |
||
56 |
cd tiff-%{tarball_version} |
|
57 |
||
58 |
%ifarch sparc |
|
59 |
%define target sparc-sun-solaris |
|
60 |
%else |
|
61 |
%define target i386-sun-solaris |
|
62 |
%endif |
|
63 |
||
64 |
./configure \ |
|
65 |
--prefix=%{_prefix} \ |
|
66 |
--libexecdir=%{_libexecdir} \ |
|
67 |
--disable-cxx |
|
68 |
make -j$CPUS |
|
69 |
||
70 |
%ifarch amd64 sparcv9 |
|
71 |
cd ../tiff-%{tarball_version}-64 |
|
72 |
export CFLAGS="%optflags64" |
|
73 |
./configure \ |
|
74 |
--prefix=%{_prefix} \ |
|
75 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
76 |
--libdir=%{_libdir}/%{_arch64} \ |
|
77 |
--disable-cxx |
|
78 |
make -j$CPUS |
|
79 |
%endif |
|
80 |
||
81 |
%install |
|
82 |
%ifarch amd64 sparcv9 |
|
83 |
cd tiff-%{tarball_version}-64 |
|
84 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
85 |
if test -d sun-manpages; then |
|
86 |
cd sun-manpages |
|
87 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
88 |
cd .. |
|
89 |
fi |
|
90 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a |
|
91 |
cd .. |
|
92 |
%endif |
|
93 |
||
94 |
cd tiff-%{tarball_version} |
|
95 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
96 |
if test -d sun-manpages; then |
|
97 |
cd sun-manpages |
|
98 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
99 |
cd .. |
|
100 |
fi |
|
101 |
||
102 |
mkdir -p $RPM_BUILD_ROOT%{_mandir}/entities |
|
103 |
touch $RPM_BUILD_ROOT%{_mandir}/entities/booktitles.ent |
|
104 |
touch $RPM_BUILD_ROOT%{_mandir}/entities/gnomecommon.ent |
|
105 |
touch $RPM_BUILD_ROOT%{_mandir}/entities/smancommon.ent |
|
106 |
cd $RPM_BUILD_ROOT%{_mandir}/man3tiff |
|
107 |
ln -s ../entities/booktitles.ent . |
|
108 |
ln -s ../entities/gnomecommon.ent . |
|
109 |
ln -s ../entities/smancommon.ent . |
|
110 |
rm $RPM_BUILD_ROOT%{_mandir}/entities/booktitles.ent |
|
111 |
rm $RPM_BUILD_ROOT%{_mandir}/entities/gnomecommon.ent |
|
112 |
rm $RPM_BUILD_ROOT%{_mandir}/entities/smancommon.ent |
|
113 |
rmdir $RPM_BUILD_ROOT%{_mandir}/entities |
|
114 |
cd - |
|
115 |
chmod 0755 $RPM_BUILD_ROOT%{_mandir}/man3tiff |
|
116 |
chmod 0755 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
117 |
chmod 0755 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
118 |
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libtiff.so.3 |
|
119 |
||
120 |
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a |
|
121 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc |
|
122 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/man |
|
123 |
||
124 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
125 |
||
126 |
%clean |
|
127 |
rm -rf $RPM_BUILD_ROOT |
|
128 |
||
129 |
%files |
|
130 |
%defattr (-, root, bin) |
|
131 |
%dir %attr (0755, root, bin) %{_libdir} |
|
132 |
%{_libdir}/lib*.so* |
|
133 |
%ifarch amd64 sparcv9 |
|
134 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
135 |
%attr (0755, root, bin) %{_libdir}/%{_arch64}/lib*.so* |
|
136 |
%endif |
|
137 |
%dir %attr (0755, root, bin) %{_bindir} |
|
138 |
%{_bindir}/* |
|
139 |
%dir %attr(0755, root, sys) %{_datadir} |
|
140 |
%dir %attr(0755, root, bin) %{_mandir} |
|
141 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
142 |
%{_mandir}/man1/* |
|
143 |
||
144 |
%files devel |
|
145 |
%defattr (-, root, bin) |
|
146 |
%dir %attr (0755, root, bin) %{_includedir} |
|
147 |
%{_includedir}/* |
|
148 |
%dir %attr(0755, root, sys) %{_datadir} |
|
149 |
%dir %attr(0755, root, bin) %{_mandir} |
|
150 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
|
151 |
%{_mandir}/man3/* |
|
152 |
%dir %attr(0755, root, bin) %{_mandir}/man3tiff |
|
153 |
%{_mandir}/man3tiff/* |
|
154 |
||
155 |
%changelog |
|
20095
1390a2f94262
6970794 CVE-2010-2065/CVE-2010-2443 as a security issue (Vulnerability) of LIBTIFF
an230044
parents:
14337
diff
changeset
|
156 |
* Wed Sep 15 2010 - [email protected] |
1390a2f94262
6970794 CVE-2010-2065/CVE-2010-2443 as a security issue (Vulnerability) of LIBTIFF
an230044
parents:
14337
diff
changeset
|
157 |
- Upgraded libtiff to 3.9.4 to fix security vulnerabilities (see CR#6970794). |
1390a2f94262
6970794 CVE-2010-2065/CVE-2010-2443 as a security issue (Vulnerability) of LIBTIFF
an230044
parents:
14337
diff
changeset
|
158 |
Removed upstreamed patches libtiff-01-ormandy.diff, libtiff-02-CVE-2006-2193.diff, libtiff-03-CVE-2008-2327.diff |
1390a2f94262
6970794 CVE-2010-2065/CVE-2010-2443 as a security issue (Vulnerability) of LIBTIFF
an230044
parents:
14337
diff
changeset
|
159 |
libtiff-04-CVE-2009-2347.diff and libtiff-05-CVE-2009-2285.diff |
14337
a4b9f38a90dc
6875065 CVE-2009-2285 libtiff: LZWDecodeCompat underflow
an230044
parents:
14331
diff
changeset
|
160 |
* Mon Aug 31 2009 - [email protected] |
a4b9f38a90dc
6875065 CVE-2009-2285 libtiff: LZWDecodeCompat underflow
an230044
parents:
14331
diff
changeset
|
161 |
- add patch libtiff-05-CVE-2009-2285.diff |
14331
bb1c48cd7ee8
6858149 CVE-2009-2347 Integer overflow in libtiff utilities
an230044
parents:
13401
diff
changeset
|
162 |
* Thu Aug 21 2009 - [email protected] |
bb1c48cd7ee8
6858149 CVE-2009-2347 Integer overflow in libtiff utilities
an230044
parents:
13401
diff
changeset
|
163 |
- add patch libtiff-04-CVE-2009-2347.diff |
13401 | 164 |
* Thu Sep 4 2008 - [email protected] |
165 |
- add patch CVE-2008-2327.diff |
|
11894 | 166 |
* Mon Mar 24 2008 - [email protected] |
167 |
- add copyright file |
|
9790 | 168 |
* Thu Apr 26 2007 - [email protected] |
169 |
- add SUNWman dependency, fixes 6511213 |
|
9565 | 170 |
* Wed Mar 15 2007 - [email protected] |
171 |
- Removed adding ccdir to PATH |
|
9397 | 172 |
* Wed Nov 22 2006 - [email protected] |
173 |
- add patches ormandy.diff and CVE-2006-2193.diff, fixes 6451119 |
|
174 |
* Fri Sep 01 2006 - [email protected] |
|
175 |
- Add new man page tarball |
|
176 |
* Fri Jul 28 2006 - [email protected] |
|
177 |
- bump to 3.8.2 |
|
178 |
* Tue May 09 2006 - [email protected] |
|
179 |
- merge -share pkg(s) into the base pkg(s) |
|
180 |
* Thu Apr 06 2006 - [email protected] |
|
181 |
- Now use tarball_version. |
|
182 |
* Fri Feb 17 2006 - [email protected] |
|
183 |
- Update Build/Requires after running check-deps.pl script. |
|
184 |
* Mon Dec 19 2005 - [email protected] |
|
185 |
- Bump to 3.7.4. |
|
186 |
* Thu Sep 22 2005 - [email protected] |
|
187 |
- make install the 64-bit bits first so the executables in %{_bindir} |
|
188 |
get overwritten by the 32-bit ones and not the other way around. |
|
189 |
* Fri Sep 02 2005 - [email protected] |
|
190 |
- remove unpackaged files |
|
191 |
* Tue Apr 26 2004 - [email protected] |
|
192 |
- updated to version 3.7.2, fixes CR6203747 |
|
193 |
* Fri Oct 29 2004 - [email protected] |
|
194 |
- use $CC64 as the 64-bit C compiler, if defined |
|
195 |
* Sat Oct 02 2004 - [email protected] |
|
196 |
- added %pkgbuild_postprocess |
|
197 |
* Sat Oct 2 2004 - [email protected] |
|
198 |
- Create 64bit libraries for Solaris |
|
199 |
* Sun Sep 12 2004 - [email protected] |
|
200 |
- Added %defattr for devel-share pkg |
|
201 |
* Fri Sep 10 2004 - [email protected] |
|
202 |
- Added Requires: SUNWTiff for devel and devel-share packages |
|
203 |
* Mon Aug 30 2004 - [email protected] |
|
204 |
- Bug 5091588 : include files and sman3 files should be in a separate devel |
|
205 |
package |
|
206 |
* Wed Aug 18 2004 - [email protected] |
|
207 |
- Update libtiff.so.3 perms for Solaris integration. |
|
208 |
* Tue Aug 17 2004 - [email protected] |
|
209 |
- Another Update mandir perms for Solaris integration. |
|
210 |
* Tue Aug 17 2004 - [email protected] |
|
211 |
- Update mandir perms for Solaris integration. |
|
212 |
* Tue Aug 17 2004 - [email protected] |
|
213 |
- update mandir permissions for Solaris integration |
|
214 |
* Fri Aug 13 2004 - [email protected] |
|
215 |
- Create symlinks to *.ent in ../entities. Fixes 5085622. |
|
216 |
* Thu Aug 12 2004 - [email protected] |
|
217 |
- Updated Version to be 2.6.0 since delivering w/ G2.6 |
|
218 |
* Thu Aug 12 2004 - [email protected] |
|
219 |
- Add symlinks to ../entities/*.ent in the sman3tiff dir. Fixes 5085622. |
|
220 |
* Sun Feb 23 2004 - [email protected] |
|
221 |
- initial version added to CVS |