Summary:	A viewer for Portable Document Format (PDF) files for GNOME
Name:		gpdf
Version:	2.10.0
Release:	1asp
License:	GPL
Group:		Applications/Publishing
URL:		http://www.gnome.org
Source:		%{name}-%{version}.tar.bz2
BuildRoot:	%{_tmppath}/%{name}-%{version}
BuildRequires:	libgnomeui-devel >= 2.10.0
BuildRequires:	libgnomeprint22-devel >= 2.10.0
BuildRequires:	libgnomeprintui22-devel >= 2.10.0
BuildRequires:	scrollkeeper
BuildRequires:	perl-XML-Parser
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
Requires:	libgnomeprint22 >= 2.10.0
Requires:	libgnomeprintui22 >= 2.10.0
Requires(pre):	scrollkeeper

%description
This is GPdf, a viewer for Portable Document Format (PDF) files for
GNOME. GPdf is based on the Xpdf program and uses additional GNOME
libraries for better desktop integration.

GPdf includes the gpdf application, a Bonobo control for PDF display
which can be embedded in Nautilus, and a Nautilus property page for
PDF files.

%prep
%setup -q

%build
%configure --enable-a4-paper \
	   --enable-opi \
	   --enable-multithreaded \
	   --enable-largefile
make

%install
rm -rf %{buildroot}
%makeinstall
%find_lang %{name}

mkdir -p %{buildroot}%{_datadir}/applications
cp gpdf.desktop %{buildroot}%{_datadir}/applications/
DESKTOPS="gpdf.desktop"
for D in $DESKTOPS; do
	desktop-file-install --vendor %{desktop_vendor} \
	--dir %{buildroot}%{_datadir}/applications	\
	--add-category X-Red-Hat-Extra	\
	--add-category Application	\
	--add-category Graphics		\
	%{buildroot}%{_datadir}/applications/$D
	mv %{buildroot}%{_datadir}/applications/%{desktop_vendor}-$D %{buildroot}%{_datadir}/applications/$D
done

rm -rf %{buildroot}/var/scrollkeeper/

%post
/sbin/ldconfig
SCHEMAS="gpdf.schemas"
for S in $SCHEMAS; do
	export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
	gconftool-2 \
	--makefile-install-rule \
	%{_sysconfdir}/gconf/schemas/$S > /dev/null || :
done

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_sysconfdir}/gconf/schemas/gpdf.schemas
%{_bindir}/gpdf
%{_libdir}/bonobo/servers/GNOME_PDF.server
%{_libexecdir}/gnome-pdf-viewer
%{_datadir}/applications/gpdf.desktop
%{_datadir}/gpdf/glade/*.glade
%{_datadir}/gnome-2.0/ui/gpdf-control-ui.xml
%{_datadir}/gnome-2.0/ui/gpdf-window-ui.xml
%{_datadir}/mime-info/gpdf.keys
%{_datadir}/pixmaps/gpdf/*.png
%{_datadir}/application-registry/gpdf.applications
%{_datadir}/pixmaps/*.png
%{_datadir}/gnome/help/gpdf/*
%{_datadir}/omf/gpdf/*.omf

%changelog
* Wed Mar  9 2005 Arkady L. Shane <shejn@msiu.ru> 2.10.0-1asp
- 2.10.0

* Sun Feb 13 2005 Matthew Hall <matt@nrpms.net> 2.9.3-1
- 2.9.3 Release

* Sun Feb 06 2005 Matthew Hall <matt@nrpms.net> 2.8.3-1
- 2.8.3 Release

* Tue Dec 07 2004 Matthew Hall <matt@nrpms.net> 2.8.1-1
- 2.8.1 Release

* Tue Sep 14 2004 Matthew Hall <matt@ecsc.co.uk> 2.8.0-1
- 2.8.0 Release

* Mon Sep 13 2004 Matthew Hall <matt@ecsc.co.uk> 2.7.91-1
- 2.7.91 Release

* Tue Aug 03 2004 Matthew Hall <matt@ecsc.co.uk> 2.7.90-1
- 2.7.90 Release

* Wed Jun 16 2004 Matthew Hall <matt@ecsc.co.uk> 2.7.2-1
- 2.7.2 Release

* Tue Jun 01 2004 Matthew Hall <matt@ecsc.co.uk> 2.7.1-1
- 2.7.1 Release

* Tue May 25 2004 Matthew Hall <matt@ecsc.co.uk> 0.131-3
- Rebuild for Fedora Core 2

* Wed Mar 31 2004 Matthew Hall <matt@ecsc.co.uk> 0.131-1
- 0.131 Release

* Mon Mar 22 2004 Matthew Hall <matt@ecsc.co.uk> 0.130-1
- 0.130 Release

* Wed Mar 17 2004 Matthew Hall <matt@ecsc.co.uk> 0.125-1
- 0.125 Release

* Thu Mar 11 2004 Matthew Hall <matt@ecsc.co.uk> 0.124-1
- 0.124 Release

* Wed Feb 18 2004 Matthew Hall <matt@ecsc.co.uk> 0.123-1
- 0.123 Release

* Mon Feb 02 2004 Matthew Hall <matt@ecsc.co.uk> 0.122-1
- 0.122 Release

* Tue Jan 06 2004 Matthew Hall <matt@ecsc.co.uk> 0.121-1
- 0.121 Release

* Sat Nov 15 2003 Matthew Hall <matt@ecsc.co.uk> 0.111-2
- Rebuild for Fedora Core 1

* Tue Oct 14 2003 Matthew Hall <matt@ecsc.co.uk> 0.111-1
- 0.111 Release

* Mon Sep 15 2003 Matthew Hall <matt@ecsc.co.uk> 0.110-1
- 0.110 Release

* Wed Aug 27 2003 Matthew Hall <matt@ecsc.co.uk> 0.106-1
- 0.106 Release

* Fri Aug 01 2003 Matthew Hall <matt@ecsc.co.uk> 0.105-1
- 0.105 Release

* Wed Jul 02 2003 Matthew Hall <matt@ecsc.co.uk> 0.104-1
- 0.104 Release

* Mon Jun 09 2003 Matthew Hall <matt@ecsc.co.uk> 0.103-1
- 0.103 Release

* Sat May 24 2003 Matthew Hall <matt@ecsc.co.uk> 0.102-1
- 0.102 Release

* Wed May 07 2003 Matthew Hall <matt@ecsc.co.uk> 0.101-1
- 0.101 Release

* Thu May 01 2003 Matthew Hall <matt@ecsc.co.uk> 0.100-6
- Added Epoch

* Sat Apr 12 2003 Matthew Hall <matt@ecsc.co.uk> 0.100-5
- RedHat 9 Rebuild

* Thu Apr 10 2003 Matthew Hall <matt@ecsc.co.uk> 0.100-4
- 0.100 Release

* Fri Mar 21 2003 Matthew Hall <matt@ecsc.co.uk> 0.100-3
- Updated from CVS

* Thu Feb 06 2003 Matthew Hall <matt@ecsc.co.uk>
- New Spec File

