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