10139N/A# spec file for package SUNWgnome-pdf-viewer
10139N/A#
11179N/A# includes module(s): poppler, poppler-data, evince
10139N/A#
16307N/A# Copyright 2009 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#
17823N/A%define owner gheet
10139N/A#
10139N/A%include Solaris.inc
10139N/A
11238N/A%use popplerdata = poppler-data.spec
10139N/A%use poppler = poppler.spec
17167N/A%use libspectre = libspectre.spec
10139N/A%use evince = evince.spec
10139N/A
10139N/AName: SUNWgnome-pdf-viewer
18688N/AIPS_package_name: desktop/pdf-viewer/evince
19102N/ALicense: Adobe, GPLv2, LGPLv2.1, MIT, X/MIT
18688N/AMeta(info.classification): %{classification_prefix}:Applications/Office
10139N/ASummary: GNOME PDF document viewer
20074N/AVersion: %{evince.version}
11925N/ASource: %{name}-manpages-0.1.tar.gz
10139N/ASUNW_BaseDir: %{_basedir}
12700N/ASUNW_Copyright: %{name}.copyright
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/A
10139N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
16401N/ABuildRequires: SUNWlibglade-devel
10139N/ABuildRequires: SUNWlibpopt-devel
10139N/ABuildRequires: SUNWgnome-libs-devel
10139N/ABuildRequires: SUNWgnome-file-mgr-devel
10139N/ABuildRequires: SUNWgnome-component-devel
18993N/ABuildRequires: SUNWPython26
10139N/ABuildRequires: SUNWfontconfig
10139N/ABuildRequires: SUNWTiff-devel
10139N/ABuildRequires: SUNWdbus-devel
10139N/ABuildRequires: SUNWgnome-config-devel
10139N/ABuildRequires: SUNWgnome-vfs-devel
10139N/ABuildRequires: SUNWjpg-devel
10139N/ABuildRequires: SUNWlibpopt-devel
20253N/ABuildRequires: SUNWghostscript
18850N/ABuildRequires: SUNWgnome-doc-utils
18850N/ABuildRequires: SUNWgnome-icon-theme
18850N/ABuildRequires: SUNWlibgnome-keyring
16401N/ARequires: SUNWlibglade
10139N/ARequires: SUNWlibpopt
10139N/ARequires: SUNWgnome-libs
10139N/ARequires: SUNWgnome-file-mgr
10139N/ARequires: SUNWgnome-component
10139N/ARequires: SUNWgnome-pdf-viewer-root
10139N/ARequires: SUNWfontconfig
10139N/ARequires: SUNWTiff
10139N/ARequires: SUNWdbus
10139N/ARequires: SUNWfreetype2
10139N/ARequires: SUNWgnome-config
10139N/ARequires: SUNWgnome-vfs
10139N/ARequires: SUNWjpg
10139N/ARequires: SUNWlibC
10139N/ARequires: SUNWlibms
10139N/ARequires: SUNWlibpopt
10139N/ARequires: SUNWlxml
10139N/ARequires: SUNWzlib
16307N/ARequires: SUNWdesktop-cache
10139N/A
10139N/A%package devel
10139N/ASummary: %{summary} - development files
10139N/ASUNW_BaseDir: %{_basedir}
10139N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
20857N/ABuildRequires: runtime/perl-512
16401N/ARequires: SUNWlibglade-devel
10139N/A
10139N/A%package l10n
10139N/ASummary: %{summary} - l10n files
10139N/ARequires: %{name}
10139N/A
10139N/A%prep
10139N/Arm -rf %name-%version
10139N/Amkdir %name-%version
17167N/A%libspectre.prep -d %name-%version
11238N/A%popplerdata.prep -d %name-%version
10139N/A%poppler.prep -d %name-%version
10139N/A%evince.prep -d %name-%version
11925N/Acd %{_builddir}/%name-%version
11925N/Agzcat %SOURCE0 | tar xf -
10139N/A
10139N/A%build
17174N/A# There seems to be an issue with the version of libtool that GStreamer is
17174N/A# now using. The libtool script uses the echo and RM variables but does not
17174N/A# define them, so setting them here addresses this.
17174N/Aexport echo="/usr/bin/echo"
17174N/Aexport RM="/usr/bin/rm"
17174N/A
10139N/Aexport PKG_CONFIG_PATH=%{_pkg_config_path}
10139N/Aexport LDFLAGS="%_ldflags -L/usr/X11/lib -R /usr/X11/lib -L/usr/sfw/lib -R/usr/sfw/lib -lX11 -lm"
10139N/Aexport CFLAGS="%optflags -I/usr/sfw/include"
10139N/A%if %cc_is_gcc
10139N/A%else
10139N/Aexport CXX="${CXX} -norunpath"
10139N/A%endif
10139N/Aexport CXXFLAGS="%cxx_optflags"
10139N/Aexport RPM_OPT_FLAGS="$CFLAGS"
10139N/A
17167N/A%libspectre.build -d %name-%version
11238N/A%popplerdata.build -d %name-%version
10139N/A%poppler.build -d %name-%version
10139N/A
17167N/Aexport PKG_CONFIG_PATH=../poppler-%{poppler.version}:../libspectre-%{libspectre.version}:%{_pkg_config_path}
10139N/A%evince.build -d %name-%version
10139N/A
10139N/A%install
17174N/A# There seems to be an issue with the version of libtool that GStreamer is
17174N/A# now using. The libtool script uses the echo and RM variables but does not
17174N/A# define them, so setting them here addresses this.
17174N/Aexport echo="/usr/bin/echo"
17174N/Aexport RM="/usr/bin/rm"
17174N/A
10139N/Arm -rf $RPM_BUILD_ROOT
17167N/A%libspectre.install -d %name-%version
11238N/A%popplerdata.install -d %name-%version
10139N/A%poppler.install -d %name-%version
10139N/A%evince.install -d %name-%version
11925N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
11925N/Acd %{_builddir}/%name-%version/sun-manpages
11925N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A
12309N/A# Remove *.a and *.la
12309N/Arm $RPM_BUILD_ROOT%{_libdir}/*.a
12309N/Arm $RPM_BUILD_ROOT%{_libdir}/*.la
18570N/Arm $RPM_BUILD_ROOT%{_libdir}/evince/*/backends/*.a
18570N/Arm $RPM_BUILD_ROOT%{_libdir}/evince/*/backends/*.la
12309N/A
10139N/A# Remove unneeded scrollkeeper dirs
10139N/Arm -rf $RPM_BUILD_ROOT%{_localstatedir}
10139N/A
10139N/Acd $RPM_BUILD_ROOT%{_bindir}
10139N/Aln -s evince gpdf
10139N/A
10139N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%post
16307N/A%restart_fmri desktop-mime-cache gconf-cache
10139N/A
10139N/A%postun
16307N/A%restart_fmri desktop-mime-cache
10139N/A
10139N/A%files
10139N/A%defattr (-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_bindir}
10139N/A%{_bindir}/*
10139N/A%dir %attr (0755, root, bin) %{_libdir}
12309N/A%{_libdir}/evince
10139N/A%{_libdir}/nautilus
10139N/A%{_libdir}/lib*.so*
20841N/A%{_libdir}/girepository-1.0/*
10139N/A%dir %attr (0755, root, sys) %{_datadir}
10139N/A%dir %attr (0755, root, other) %{_datadir}/applications
10139N/A%{_datadir}/applications/*
10139N/A%{_datadir}/evince
20841N/A%{_datadir}/GConf
20841N/A%{_datadir}/gir-1.0
20841N/A%{_datadir}/glib-2.0
10139N/A%dir %attr (0755, root, other) %{_datadir}/gnome
10139N/A%{_datadir}/gnome/help/evince/C
10139N/A%attr (-, root, other) %{_datadir}/icons
11238N/A%dir %attr (0755, root, bin) %{_datadir}/poppler
11238N/A%{_datadir}/poppler/*
20841N/A%{_datadir}/thumbnailers
10139N/A%dir %attr(0755, root, bin) %{_mandir}
10139N/A%dir %attr(0755, root, bin) %{_mandir}/*
10139N/A%{_mandir}/*/*
17167N/A%doc libspectre-%{libspectre.version}/AUTHORS
17167N/A%doc libspectre-%{libspectre.version}/README
17167N/A%doc libspectre-%{libspectre.version}/NEWS
17167N/A%doc libspectre-%{libspectre.version}/COPYING
17169N/A%doc libspectre-%{libspectre.version}/ChangeLog
14327N/A%doc poppler-data-%{popplerdata.version}/README
14327N/A%doc poppler-data-%{popplerdata.version}/COPYING
17436N/A%doc poppler-data-%{popplerdata.version}/COPYING.adobe
17436N/A%doc poppler-data-%{popplerdata.version}/COPYING.gpl2
14327N/A%doc poppler-%{poppler.version}/AUTHORS
14327N/A%doc poppler-%{poppler.version}/README
14327N/A%doc poppler-%{poppler.version}/README-XPDF
14327N/A%doc(bzip2) poppler-%{poppler.version}/COPYING
14327N/A%doc(bzip2) poppler-%{poppler.version}/cmake/modules/COPYING-CMAKE-SCRIPTS
14327N/A%doc(bzip2) poppler-%{poppler.version}/ChangeLog
14327N/A%doc(bzip2) poppler-%{poppler.version}/NEWS
14327N/A%doc evince-%{evince.version}/AUTHORS
14327N/A%doc evince-%{evince.version}/README
14327N/A%doc(bzip2) evince-%{evince.version}/COPYING
14327N/A%doc(bzip2) evince-%{evince.version}/ChangeLog
14327N/A%doc(bzip2) evince-%{evince.version}/po/ChangeLog
14327N/A%doc(bzip2) evince-%{evince.version}/help/ChangeLog
14327N/A%doc(bzip2) evince-%{evince.version}/NEWS
14327N/A%dir %attr (0755, root, other) %{_datadir}/doc
18449N/A%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service
18449N/A%{_libdir}/evinced
10139N/A
10139N/A%files l10n
10139N/A%defattr (-, root, bin)
10139N/A%dir %attr (0755, root, sys) %{_datadir}
10139N/A%dir %attr (0755, root, other) %{_datadir}/gnome
10139N/A%attr (-, root, other) %{_datadir}/locale
10139N/A%{_datadir}/gnome/help/*/[a-z]*
10139N/A
10139N/A%files devel
10139N/A%defattr (-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_libdir}
10139N/A%dir %attr (0755, root, other) %{_libdir}/pkgconfig
10139N/A%{_libdir}/pkgconfig/*
10139N/A%dir %attr (0755, root, bin) %{_includedir}
10139N/A%{_includedir}/*
10139N/A%dir %attr (0755, root, sys) %{_datadir}
10139N/A%{_datadir}/gtk-doc/html
10139N/A
10139N/A%changelog
18850N/A* Tue Jun 08 2010 - Michal.Pryc@Oracle.Com
18850N/A- Updated BuildRequires to fit SourceJuicer.
17967N/A* Mon Dec 21 2009 - ghee.teo@sun.com
17967N/A- Remove SUNWgnome-print dependency.
17436N/A* Fri Oct 02 2009 - darren.kenny@sun.com
17436N/A- Update to include new licence files in poppler-data 0.3.0
17174N/A* Mon Aug 31 2009 - dave.lin@sun.com
17174N/A- Redirect echo/rm to /usr/bin/* to fix improper libtool version issue.
16307N/A* Fri Apr 3 2009 - laca@sun.com
16307N/A- use desktop-cache instead of postrun
14327N/A* Mon Sep 15 2008 - matt.keenan@sun.com
14327N/A- Update copyright
13883N/A* Fri Aug 15 2008 - darren.kenny@sun.com
13883N/A- Reverting back to evince 2.22 due to no libspectre or libgs.so on Solaris
13883N/A yet. When these appear I will bump evince again, so adding back in the PS
13883N/A backend file references.
13457N/A* Fri Jun 20 2008 - darren.kenny@sun.com
13457N/A- PS backend is disabled until libspectre is delivered - see defect 2288 for
13457N/A more information.
12309N/A* Wed Jan 30 2008 - damien.carbery@sun.com
12309N/A- Delete *.a and *.la. Add %{_libdir}/evince to %files.
12112N/A* Thu Jan 3 2008 - laca@sun.com
12112N/A- use gconf-install.script instead of an inline script
11925N/A* Tue Nov 13 2007 - brian.cameron@sun.com
11925N/A- Add evince manpage.
11311N/A* Fri Sep 28 2007 - laca@sun.com
11311N/A- delete SUNWxwrtl dep, not needed since this pkg depends on SUNWgnome-base-libs
11304N/A* Thu Sep 27 2007 - laca@sun.com
11304N/A- delete some unnecessary env variables
11238N/A* Mon Sep 17 2007 - darren.kenny@sun.com
11238N/A- Remove the now obsolete xpdf fonts since this is not supported in poppler
11238N/A any more since 0.6. Add the poppler-data datafiles which are replacing the
11238N/A xpdf fonts.
10902N/A* Wed Jul 04 2007 - darren.kenny@sun.com
10902N/A- Add evince-thumbnailer.schemas from %files and %preun root back, they were
10902N/A net being generated because evince was building without PDF support.
10851N/A* Fri Jun 22 2007 - damien.carbery@sun.com
10851N/A- Remove evince-thumbnailer.schemas from %files and %preun root as it is no
10851N/A longer in the module.
10522N/A* Tue Apr 24 2007 - laca@sun.com
10522N/A- s/0755/-/ in defattr so that files are not made all executable
10474N/A* Thu Apr 12 2007 - damien.carbery@sun.com
10474N/A- Add evince-thumbnailer-ps.schemas to %files and %preun root.
10474N/A* Wed Feb 14 2007 - damien.carbery@sun.com
10139N/A- Delete en_GB files in %install.
10139N/A* Tue Nov 28 2006 - damien.carbery@sun.com
10139N/A- Change attr of xpdfrc file in root package to fix 6497737.
10139N/A* Mon Nov 06 2006 - darren.kenny@sun.com
10139N/A- Add XPDF Language Support Packages that are used by poppler to correctly
10139N/A view localised PDF files. Fixes Bug#2143558. (forward port from Stable)
10139N/A- Also fix FIXME comments (same as stable)
10139N/A* Fri Nov 3 2006 - laca@sun.com
10139N/A- add -lm to LDFLAGS so that libpoppler links against it, fixes 6470804
10139N/A* Fri Sep 08 2006 - Matt.Keenan@sun.com
10139N/A- Remove "rm" of _mandir during %install, Deliver community pages, pdf*.1
10139N/A* Sat Aug 12 2006 - laca@sun.com
10139N/A- change datadir/icons permissions back to root:other since it's a stable
10139N/A interface and wasn't supposed to be changed
10139N/A* Fri Jul 14 2006 - laca@sun.com
10139N/A- update %post/%postun/etc scripts to support diskless client setup,
10139N/A part of 6448317
10139N/A* Thu Jun 29 2006 - laca@sun.com
10139N/A- update postrun scripts
10139N/A* Sun Jun 11 2006 - laca@sun.com
10139N/A- change group from other to bin/sys
10139N/A* Fri Jun 2 2006 - laca@sun.com
10139N/A- use post/preun scripts to install schemas into the merged gconf files
10139N/A* Wed May 10 2006 - laca@sun.com
10139N/A- merge -share pkg(s) into the base pkg(s)
10139N/A* Wed Mar 15 2006 - damien.carbery@sun.com
10139N/A- Add Build/Requires SUNWgnome-component/-devel for ORBit2.
10139N/A* Tue Mar 14 2006 - damien.carbery@sun.com
10139N/A- Remove unneeded scrollkeeper files before packaging.
10139N/A* Mon Feb 20 2006 - damien.carbery@sun.com
10139N/A- Complete update of Build/Requires after running check-deps.pl script.
10139N/A* Fri Feb 17 2006 - damien.carbery@sun.com
10139N/A- Update Build/Requires after running check-deps.pl script.
10139N/A* Tue Jan 24 2006 - damien.carbery@sun.com
10139N/A- Set perms for %{_datadir} in devel package.
10139N/A* Sun Jan 22 2006 - damien.carbery@sun.com
10139N/A- Add gtk-doc dir to devel package.
10139N/A* Wed Dec 7 2005 - brian.cameron@sun.com
10139N/A- add /usr/sfw/lib to LDFLAGS because without this running evince complains
10139N/A it cannot find libfreetype.so.6
10139N/A* Sat Dec 3 2005 - laca@sun.com
10139N/A- add %post script that runs update-desktop-database
10139N/A* Thu Dec 01 2005 - damien.carbery@sun.com
10139N/A- Add include dir to CFLAGS to find ft2build.h, a dir missing from freetype2.pc
10139N/A* Tue Nov 29 2005 - laca@sun.com
10139N/A- remove javahelp stuff
10139N/A* Sat Oct 02 2004 - laca@sun.com
10139N/A- added %pkgbuild_postprocess
10139N/A* Fri Oct 01 2004 - takao.fujiwara@sun.com
10139N/A- Added xpdfrc
10139N/A* Mon Aug 23 2004 - laca@sun.com
10139N/A- s/SUNWpl5u/SUNWperl584usr/
10139N/A* Fri Aug 20 2004 - damien.carbery@sun.com
10139N/A- Fix 5089628: mark two %gconf.xml files as volatile in root package.
10139N/A* Mon Jul 26 2004 - damien.carbery@sun.com
10139N/A- Return mime-info %files line to match Glynn's change to gpdf.spec.
10139N/A* Fri Jul 23 2004 - damien.carbery@sun.com
10139N/A- Remove mime-info %files line to match Glynn's change to gpdf.spec.
10139N/A* Wed Jul 14 2004 - takao.fujiwara@sun.com
10139N/A- add xpdf language support packs. #4921809
10139N/A* Sat Jun 26 2004 shirley.woo@sun.com
10139N/A- Changed install location to /usr/...
10139N/A* Tue Jun 22 2004 - niall.power@sun.com
10139N/A- add xpdf language support packs. #4921809
10139N/A* Wed Jun 2 2004 - takao.fujiwara@sun.com
10139N/A- Added %{_datadir}/locale to install l10n messages
10139N/A* Mon Apr 05 2004 - laca@sun.com
10139N/A- Added %_libdir to %files
10139N/A* Wed Mar 24 2004 - brian.cameron@sun.com
10139N/A- Added SGML man page integration
10139N/A* Wed Mar 03 2004 - <laca@sun.com>
10139N/A- fix %files share
10139N/A- fix gconf files in root subpkg
10139N/A* Mon Mar 01 2004 - <laca@sun.com>
10139N/A- fix dependencies
10139N/A* Mon Feb 23 2004 - <niall.power@sun.com>
10139N/A- install gconf schemas at end of install stage.
16401N/A
19265N/A
19582N/A