SUNWTiff.spec revision 19016
20135N/A#
10145N/A# spec file for package SUNWTiff
10145N/A#
10145N/A# includes module(s): tiff
10145N/A#
10145N/A# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
10145N/A# This file and all modifications and additions to the pristine
10145N/A# package are under the same license as the package itself.
10145N/A#
17834N/A%define owner laca
18632N/A#
18644N/A%include Solaris.inc
18632N/A
10145N/A%define OSR 12272:3.8.1
10145N/A
10145N/A%define _prefix /usr
10145N/A
10145N/A%define tarball_version 3.9.4
10145N/A
10145N/AName: SUNWTiff
10145N/AIPS_package_name: image/library/libtiff
10145N/AMeta(info.classification): %{classification_prefix}:System/Multimedia Libraries
10145N/ASummary: libtiff - library for reading and writing TIFF
10145N/AVersion: %{tarball_version}
10145N/ALicense: bsd-like/libtiff
10145N/AVendor: Silicon Graphics
10145N/ASource: http://download.osgeo.org/libtiff/tiff-%{tarball_version}.tar.gz
10145N/ASource1: %{name}-manpages-0.1.tar.gz
10145N/A
10145N/ASUNW_BaseDir: %{_prefix}
10145N/ASUNW_Copyright: %{name}.copyright
19788N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
20122N/A
16276N/A%include default-depend.inc
20297N/ARequires: SUNWlibms
10145N/ARequires: SUNWzlib
10145N/ARequires: SUNWjpg
18593N/A
18632N/A%package devel
10145N/ASummary: %{summary} - development files
10145N/ASUNW_BaseDir: %{_prefix}
16276N/A%include default-depend.inc
10145N/ARequires: SUNWTiff
19943N/ARequires: SUNWman
10884N/A
10145N/A%prep
12663N/A%setup -c -n %name-%version
16401N/Acd tiff-%{tarball_version}
10145N/Agzcat %SOURCE1 | tar -xf -
10145N/A
16276N/A%ifarch amd64 sparcv9
16276N/Acd ..
16276N/Acp -pr tiff-%{tarball_version} tiff-%{tarball_version}-64
20239N/A%endif
20239N/A
20239N/A%build
20239N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10145N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10145N/A CPUS=1
10145N/Afi
10145N/Aexport CFLAGS="$RPM_OPT_FLAGS"
10145N/Aexport LDFLAGS="%_ldflags"
10145N/A
16276N/Acd tiff-%{tarball_version}
10145N/A
19970N/A%ifarch sparc
10145N/A%define target sparc-sun-solaris
10145N/A%else
10145N/A%define target i386-sun-solaris
10145N/A%endif
10145N/A
10145N/A./configure \
10145N/A --prefix=%{_prefix} \
10145N/A --libexecdir=%{_libexecdir} \
10145N/A --disable-cxx
10145N/Amake -j$CPUS
10145N/A
10145N/A%ifarch amd64 sparcv9
10145N/Acd ../tiff-%{tarball_version}-64
10145N/Aexport CFLAGS="%optflags64"
10145N/A./configure \
10145N/A --prefix=%{_prefix} \
10145N/A --libexecdir=%{_libexecdir}/%{_arch64} \
10145N/A --libdir=%{_libdir}/%{_arch64} \
10145N/A --disable-cxx
10145N/Amake -j$CPUS
10145N/A%endif
10145N/A
10145N/A%install
10145N/A%ifarch amd64 sparcv9
10145N/Acd tiff-%{tarball_version}-64
10145N/Amake install DESTDIR=$RPM_BUILD_ROOT
10145N/Aif test -d sun-manpages; then
10145N/A cd sun-manpages
10145N/A make install DESTDIR=$RPM_BUILD_ROOT
10145N/A cd ..
20169N/Afi
20169N/Arm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a
20169N/Acd ..
10145N/A%endif
20297N/A
20297N/Acd tiff-%{tarball_version}
20218N/Amake install DESTDIR=$RPM_BUILD_ROOT
20218N/Aif test -d sun-manpages; then
20145N/A cd sun-manpages
20145N/A make install DESTDIR=$RPM_BUILD_ROOT
19103N/A cd ..
19103N/Afi
19071N/A
19071N/Amkdir -p $RPM_BUILD_ROOT%{_mandir}/entities
18316N/Atouch $RPM_BUILD_ROOT%{_mandir}/entities/booktitles.ent
18316N/Atouch $RPM_BUILD_ROOT%{_mandir}/entities/gnomecommon.ent
17898N/Atouch $RPM_BUILD_ROOT%{_mandir}/entities/smancommon.ent
17898N/Acd $RPM_BUILD_ROOT%{_mandir}/man3tiff
17530N/Aln -s ../entities/booktitles.ent .
17530N/Aln -s ../entities/gnomecommon.ent .
17530N/Aln -s ../entities/smancommon.ent .
16949N/Arm $RPM_BUILD_ROOT%{_mandir}/entities/booktitles.ent
16949N/Arm $RPM_BUILD_ROOT%{_mandir}/entities/gnomecommon.ent
16276N/Arm $RPM_BUILD_ROOT%{_mandir}/entities/smancommon.ent
16276N/Armdir $RPM_BUILD_ROOT%{_mandir}/entities
16004N/Acd -
16004N/Achmod 0755 $RPM_BUILD_ROOT%{_mandir}/man3tiff
15332N/Achmod 0755 $RPM_BUILD_ROOT%{_mandir}/man1
15332N/Achmod 0755 $RPM_BUILD_ROOT%{_mandir}/man3
13801N/Achmod 0755 $RPM_BUILD_ROOT%{_libdir}/libtiff.so.3
13801N/A
13801N/Arm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
13801N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/doc
13548N/Arm -rf $RPM_BUILD_ROOT%{_prefix}/man
13548N/A
12939N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
12939N/A
12326N/A%clean
12939N/Arm -rf $RPM_BUILD_ROOT
10884N/A
10884N/A%files
10145N/A%defattr (-, root, bin)
10145N/A%dir %attr (0755, root, bin) %{_libdir}
10145N/A%{_libdir}/lib*.so*
10145N/A%ifarch amd64 sparcv9
10145N/A%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
10145N/A%attr (0755, root, bin) %{_libdir}/%{_arch64}/lib*.so*
10145N/A%endif
10145N/A%dir %attr (0755, root, bin) %{_bindir}
10145N/A%{_bindir}/*
10145N/A%dir %attr(0755, root, sys) %{_datadir}
10145N/A%dir %attr(0755, root, bin) %{_mandir}
10145N/A%dir %attr(0755, root, bin) %{_mandir}/man1
10145N/A%{_mandir}/man1/*
10145N/A
10145N/A%files devel
10145N/A%defattr (-, root, bin)
10145N/A%dir %attr (0755, root, bin) %{_includedir}
10145N/A%{_includedir}/*
10145N/A%dir %attr(0755, root, sys) %{_datadir}
10145N/A%dir %attr(0755, root, bin) %{_mandir}
10145N/A%dir %attr(0755, root, bin) %{_mandir}/man3
10145N/A%{_mandir}/man3/*
10145N/A%dir %attr(0755, root, bin) %{_mandir}/man3tiff
10145N/A%{_mandir}/man3tiff/*
10145N/A
10145N/A%changelog
19197N/A* Thu Jul 29 2010 - laszlo.peter@oracle.com
19514N/A- update to 2.9.4, delete upstream patches
* 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