SUNWTiff.spec revision 18850
10139N/A#
10139N/A# spec file for package SUNWTiff
10139N/A#
10139N/A# includes module(s): tiff
10139N/A#
10139N/A# Copyright 2007 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/A%define owner laca
10139N/A#
10139N/A%include Solaris.inc
10139N/A
10139N/A%define OSR 12272:3.8.1
10139N/A
10139N/A%define _prefix /usr
10139N/A
10139N/A%define tarball_version 3.8.2
10139N/A
10139N/AName: SUNWTiff
10139N/AIPS_package_name: image/library/libtiff
10139N/AMeta(info.classification): %{classification_prefix}:System/Multimedia Libraries
10139N/ASummary: libtiff - library for reading and writing TIFF
10139N/AVersion: 20.%{default_pkg_version}
10139N/ALicense: Other
10139N/AVendor: Silicon Graphics
10139N/ASource: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{tarball_version}.tar.gz
10139N/ASource1: %{name}-manpages-0.1.tar.gz
10139N/A# date:2006-11-22 owner:laca type:bug bugster:6451119 state:upstream
10139N/A# patch for vulnerabilities identified by Tavis Ormandy, Google Security Team
10139N/A# upstream, taken from Fedora
10139N/APatch1: libtiff-01-ormandy.diff
10139N/A# date:2006-11-22 owner:laca type:bug bugster:6451119 state:upstream
10139N/A# upstream, taken from Fedora
10139N/APatch2: libtiff-02-CVE-2006-2193.diff
10139N/A# date:2008-09-03 owner:johnf type:bug bugster:6743799 state:upstream
10139N/A# upstream, taken from RHEL by Even Rouault
10139N/APatch3: libtiff-03-CVE-2008-2327.diff
10139N/A# date:2009-07-14 owner:abhijit nath type:bug bugster:6858149 state:upstream
10139N/A# upstream, taken from libtiff 4.0
10139N/APatch4: libtiff-04-CVE-2009-2347.diff
10139N/A# date:2009-08-27 owner:abhijit nath type:bug bugster:6875065 state:upstream
10139N/APatch5: libtiff-05-CVE-2009-2285.diff
10139N/A# date:2010-0311 owner:chrisk type:bug
10139N/APatch6: libtiff-06-non-static-fn.diff
10139N/A
10139N/ASUNW_BaseDir: %{_prefix}
10139N/ASUNW_Copyright: %{name}.copyright
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/A
10139N/A%include default-depend.inc
10139N/ARequires: SUNWlibms
10139N/ARequires: SUNWzlib
10139N/ARequires: SUNWjpg
10139N/A
10139N/A%package devel
10139N/ASummary: %{summary} - development files
10139N/ASUNW_BaseDir: %{_prefix}
10139N/A%include default-depend.inc
10139N/ARequires: SUNWTiff
10139N/ARequires: SUNWman
10139N/A
10139N/A%prep
10139N/A%setup -c -n %name-%version
10139N/Acd tiff-%{tarball_version}
10139N/A%patch1 -p1
10139N/A%patch2 -p1
10392N/A%patch3 -p1
10392N/A%patch4 -p1
10139N/A%patch5 -p1
10139N/A%patch6 -p1
10139N/Agzcat %SOURCE1 | tar -xf -
10139N/A
10139N/A%ifarch amd64 sparcv9
10139N/Acd ..
10139N/Acp -pr tiff-%{tarball_version} tiff-%{tarball_version}-64
10139N/A%endif
10139N/A
10139N/A%build
10139N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/Aexport CFLAGS="$RPM_OPT_FLAGS"
10139N/Aexport LDFLAGS="%_ldflags"
10139N/A
10139N/Acd tiff-%{tarball_version}
10139N/A
10139N/A%ifarch sparc
10139N/A%define target sparc-sun-solaris
10139N/A%else
10139N/A%define target i386-sun-solaris
10139N/A%endif
10139N/A
10392N/A./configure \
10392N/A --prefix=%{_prefix} \
10139N/A --libexecdir=%{_libexecdir} \
10139N/A --disable-cxx
10139N/Amake -j$CPUS
10139N/A
10139N/A%ifarch amd64 sparcv9
10139N/Acd ../tiff-%{tarball_version}-64
10139N/Aexport CFLAGS="%optflags64"
10139N/A./configure \
10139N/A --prefix=%{_prefix} \
10139N/A --libexecdir=%{_libexecdir}/%{_arch64} \
10139N/A --libdir=%{_libdir}/%{_arch64} \
10139N/A --disable-cxx
10139N/Amake -j$CPUS
10139N/A%endif
10139N/A
10139N/A%install
10139N/A%ifarch amd64 sparcv9
10139N/Acd tiff-%{tarball_version}-64
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/Aif test -d sun-manpages; then
10139N/A cd sun-manpages
10139N/A make install DESTDIR=$RPM_BUILD_ROOT
10139N/A cd ..
10139N/Afi
10139N/Arm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a
10139N/Acd ..
10139N/A%endif
10139N/A
10139N/Acd tiff-%{tarball_version}
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/Aif test -d sun-manpages; then
10139N/A cd sun-manpages
10139N/A make install DESTDIR=$RPM_BUILD_ROOT
10139N/A cd ..
10139N/Afi
10139N/A
10139N/Amkdir -p $RPM_BUILD_ROOT%{_mandir}/entities
10139N/Atouch $RPM_BUILD_ROOT%{_mandir}/entities/booktitles.ent
10139N/Atouch $RPM_BUILD_ROOT%{_mandir}/entities/gnomecommon.ent
10139N/Atouch $RPM_BUILD_ROOT%{_mandir}/entities/smancommon.ent
10139N/Acd $RPM_BUILD_ROOT%{_mandir}/man3tiff
10139N/Aln -s ../entities/booktitles.ent .
10139N/Aln -s ../entities/gnomecommon.ent .
10139N/Aln -s ../entities/smancommon.ent .
10139N/Arm $RPM_BUILD_ROOT%{_mandir}/entities/booktitles.ent
10139N/Arm $RPM_BUILD_ROOT%{_mandir}/entities/gnomecommon.ent
10139N/Arm $RPM_BUILD_ROOT%{_mandir}/entities/smancommon.ent
10139N/Armdir $RPM_BUILD_ROOT%{_mandir}/entities
10139N/Acd -
10139N/Achmod 0755 $RPM_BUILD_ROOT%{_mandir}/man3tiff
10139N/Achmod 0755 $RPM_BUILD_ROOT%{_mandir}/man1
10139N/Achmod 0755 $RPM_BUILD_ROOT%{_mandir}/man3
10139N/Achmod 0755 $RPM_BUILD_ROOT%{_libdir}/libtiff.so.3
10139N/A
10139N/Arm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
10139N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/doc
rm -rf $RPM_BUILD_ROOT%{_prefix}/man
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/lib*.so*
%ifarch amd64 sparcv9
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
%attr (0755, root, bin) %{_libdir}/%{_arch64}/lib*.so*
%endif
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%dir %attr(0755, root, sys) %{_datadir}
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/man1
%{_mandir}/man1/*
%files devel
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_includedir}
%{_includedir}/*
%dir %attr(0755, root, sys) %{_datadir}
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/man3
%{_mandir}/man3/*
%dir %attr(0755, root, bin) %{_mandir}/man3tiff
%{_mandir}/man3tiff/*
%changelog
* Tue Jun 08 2010 - Michal.Pryc@Oracle.Com
- Updated BuildRequires to fit SourceJuicer.
* Thu Aug 27 2009 - abhijit.nath@sun.com
- Fixes CR #6875065
* Mon Aug 17 2009 - abhijit.nath@sun.com
- Fixes CR #6872336
* Tue Jul 14 2009 - abhijit.nath@sun.com
- add patch libtiff-04-CVE-2009-2347.diff to fix bug CR6858149
* Tue Jun 02 2009 - dave.lin@sun.com
- add 'Requires: SUNWjpg' to fix bug CR6842550
* Thu Sep 4 2008 - john.fischer@sun.com
- add patch CVE-2008-2327.diff
* Mon Mar 24 2008 - laca@sun.com
- add copyright file
* Thu Apr 26 2007 - laca@sun.com
- add SUNWman dependency, fixes 6511213
* Wed Mar 15 2007 - dougs@truemail.co.th
- Removed adding ccdir to PATH
* Wed Nov 22 2006 - laca@sun.com
- add patches ormandy.diff and CVE-2006-2193.diff, fixes 6451119
* Fri Sep 01 2006 - matt.keenan@sun.com
- Add new man page tarball
* Fri Jul 28 2006 - laca@sun.com
- bump to 3.8.2
* Tue May 09 2006 - laca@sun.com
- merge -share pkg(s) into the base pkg(s)
* Thu Apr 06 2006 - brian.cameron@sun.com
- Now use tarball_version.
* Fri Feb 17 2006 - damien.carbery@sun.com
- Update Build/Requires after running check-deps.pl script.
* Mon Dec 19 2005 - damien.carbery@sun.com
- Bump to 3.7.4.
* Thu Sep 22 2005 - laca@sun.com
- make install the 64-bit bits first so the executables in %{_bindir}
get overwritten by the 32-bit ones and not the other way around.
* Fri Sep 02 2005 - laca@sun.com
- remove unpackaged files
* Tue Apr 26 2004 - laca@sun.com
- updated to version 3.7.2, fixes CR6203747
* Fri Oct 29 2004 - laca@sun.com
- use $CC64 as the 64-bit C compiler, if defined
* Sat Oct 02 2004 - laca@sun.com
- added %pkgbuild_postprocess
* Sat Oct 2 2004 - Joseph.Townsend@Sun.COM
- Create 64bit libraries for Solaris
* Sun Sep 12 2004 - laca@sun.com
- Added %defattr for devel-share pkg
* Fri Sep 10 2004 - shirley.woo@sun.com
- Added Requires: SUNWTiff for devel and devel-share packages
* Mon Aug 30 2004 - shirley.woo@sun.com
- Bug 5091588 : include files and sman3 files should be in a separate devel
package
* Wed Aug 18 2004 - damien.carbery@sun.com
- Update libtiff.so.3 perms for Solaris integration.
* Tue Aug 17 2004 - shirley.woo@sun.com
- Another Update mandir perms for Solaris integration.
* Tue Aug 17 2004 - damien.carbery@sun.com
- Update mandir perms for Solaris integration.
* Tue Aug 17 2004 - laca@sun.com
- update mandir permissions for Solaris integration
* Fri Aug 13 2004 - damien.carbery@sun.com
- Create symlinks to *.ent in ../entities. Fixes 5085622.
* Thu Aug 12 2004 - shirley.woo@sun.com
- Updated Version to be 2.6.0 since delivering w/ G2.6
* Thu Aug 12 2004 - damien.carbery@sun.com
- Add symlinks to ../entities/*.ent in the sman3tiff dir. Fixes 5085622.
* Sun Feb 23 2004 - Laszlo.Peter@sun.com
- initial version added to CVS