Solaris/SUNWacroread.spec
author dcarbery
Fri, 24 Nov 2006 16:37:59 +0000
branch217update
changeset 19096 d542fc2c823e
parent 8565 b102e7809c6e
permissions -rw-r--r--
Merged trunk changes r9797:9829 into 217update branch.

#
# spec file for package SUNWacroread
#
# includes module(s): acroread
#
# Copyright (c) 2004 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: dermot
#
# DO NOT REMOVE NEXT LINE
# PACKAGE NOT ARC REVIEWED BY SUN JDS TEAM
#
%include Solaris.inc
%define _prefix %{_basedir}
%define _bindir %{_prefix}/bin
%define _libdir %{_prefix}/lib


SUNW_Copyright:            acroread-copyright.txt

%use acroread = acroread.spec



Name:                    SUNWacroread
Summary:                 Acrobat Reader for PDF files
Version:                 %{acroread.version}
SUNW_BaseDir:            %{_basedir}
SUNW_Category:           MOZ17,application,%{jds_version}
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: SUNWmfrun
Requires: SUNWxwplt
Requires: SUNWcslr
Requires: SUNWlibmsr
Requires: SUNWlibms
Requires: SUNWgnome-base-libs
BuildRequires: SUNWgnome-base-libs-devel

%ifarch sparc
Requires: SUNWbcp
%endif


%ifarch sparc
# these packages are only avavilable on SPARC
# ===========================================

%package plugin
Summary:                 Acrobat Reader Plugin for Firefox
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc
BuildRequires: SUNWfirefox
Requires: SUNWfirefox
Requires: SUNWacroread


%prep
rm -rf %name-%version
mkdir %name-%version
%acroread.prep -d %name-%version


%install
%acroread.install -d %name-%version


%clean
rm -rf $RPM_BUILD_ROOT

%post
( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
  echo '/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor'
) | $BASEDIR/lib/postrun -b -u -t 15 -c JDS



%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%dir %attr (0755, root, bin) %{_libdir}/AdobeReader
%{_libdir}/AdobeReader/*
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%dir %attr (0755, root, bin) %{_prefix}/sfw
%dir %attr (0755, root, bin) %{_prefix}/sfw/bin
%{_prefix}/sfw/bin/*
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/applications
%dir %attr (0755, root, other) %{_datadir}/icons
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/*
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/*/apps
%attr (0644, root, bin) %{_datadir}/applications/acroread.desktop
%attr (-, root, other) %{_datadir}/icons/hicolor/*/apps/*

%files plugin
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%dir %attr (0755, root, bin) %{_libdir}/firefox
%dir %attr (0755, root, bin) %{_libdir}/firefox/plugins
%{_libdir}/firefox/plugins/nppdf.so


# endif for "ifarch sparc"
%endif


%changelog
* Sun Nov 24 2006 - [email protected]
- Add .desktop and icons in appropriate places.
* Sun Jun 11 2006 - [email protected]
- change group from other to bin/sys
* Mon May 22 2006 - [email protected]
- use product version number instead of "1.0"
* Wed May 10 2006 - [email protected]
- move plugin file to /usr/lib/firefox/plugins since firefox changed the
  install location
* Thu Apr  6 2006 - [email protected]
- Add SUNWgnome-base-libs/-devel to Build/Requires after check-deps.pl run.
* Wed Nov 02 2005 - [email protected]
- Copy in v7 changes from JDS3.1 branch. Change mozilla references to firefox.
* Mon Oct 10 2005 - [email protected]
- Add %{_prefix}/sfw/bin to for backward compatability symlink. Fixes 6300634.
* Thu Aug 25 2005 - [email protected]
- re-write for version 7 (new install dir, etc)
* Fri Nov 26 2004 - [email protected]
- Removed SUNWjds-integration dependency
* Fri Nov 19 2004 - [email protected]
- Partial fix for 6178971. Remove %pkgbuild_process because it was modifying
  the Adobe-tested binaries.
* Fri Nov 12 2004 - [email protected]
- Added SUNWjds-integration dependency
* Tue Oct 05 2004 - [email protected]
- CR 6174047 : Change SUNWacroread to install to /usr/sfw
* Sat Oct 02 2004 - [email protected]
- added %pkgbuild_postprocess
* Thu Sep 30 2004 - [email protected]
- Add '%ifarch sparc' around SUNWbcp dependency as this is only on sparc.
* Wed Sep 29 2004 - [email protected]
- added additional dependencies to acroread &
  added acroread dependency to plugin subpkg
* Mon Sep 20 2004 - [email protected]
- added default dependencies to plugin subpkg
* Fri Aug 20 2004 - [email protected]
- moved to mozilla category.
* Mon Aug 16 2004 - [email protected]
- added -plugin pkg
* Mon Aug 16 2004 - [email protected]
- use acroread-copyright.txt instead of default
* Fri Aug 06 2004 - [email protected]
- initial version