Summary: GNOME Ghostscript Viewer
Summary(pl): Przegl±darka Ghostscriptu dla GNOME
Name: ggv
-Version: 0.70
-Release: 2
-Copyright: GPL
-Group: X11/Applications
-Source: ftp://ftp.gnome.org/pub/GNOME/sources/ggv/%{name}-%{version}.tar.gz
-Patch: ggv-applnk.patch
+Version: 1.99.95
+Release: 1
+License: GPL
+Group: X11/Applications/Graphics
+Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/1.99/%{name}-%{version}.tar.bz2
URL: http://www.gnome.org/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: autoconf
+BuildRequires: docbook-style-dsssl
BuildRequires: gettext-devel
-BuildRequires: gtk+-devel >= 1.2.0
-BuildRequires: gnome-libs-devel
-BuildRequires: bonobo-devel
-BuildRoot: /tmp/%{name}-%{version}-root
+BuildRequires: gtk+2-devel >= 2.0.6
+BuildRequires: libtool
+BuildRequires: GConf2-devel >= 1.2.1
+BuildRequires: openjade
+BuildRequires: scrollkeeper
+PreReq: scrollkeeper
+Requires: ghostscript
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _prefix /usr/X11R6
-%define _sysconfdir /etc/X11/GNOME
-%define _applnkdir %{_datadir}/applnk
+%define _mandir %{_prefix}/man
+%define _sysconfdir /etc/X11/GNOME2
%description
-GNOME Ghostscript viewer - a GUI frontend to the Ghostscript postscript
-interpretter. Use this program to preview postscript documents on your
-screen.
+GNOME Ghostscript viewer - a GUI frontend to the Ghostscript
+postscript interpretter. Use this program to preview postscript
+documents on your screen.
%description -l pl
-Przegl±darka Ghostscriptu dla GNOME - graficzny frontend dla interpretera
-postscriptu o nazwie Ghostscript. U¿ywaj tego programu do przegl±dania
-postscriptowych dokumentów na Twoim ekranie.
+Przegl±darka Ghostscriptu dla GNOME - graficzny frontend dla
+interpretera postscriptu o nazwie Ghostscript. U¿ywaj tego programu do
+przegl±dania postscriptowych dokumentów na Twoim ekranie.
%prep
%setup -q
-%patch -p1
%build
-gettextize --copy --force
-automake
-LDFLAGS="-s"; export LDFLAGS
-%configure \
- --enable-bonobo
+%configure --enable-platform-gnome-2 \
+ --disable-install-schemas
-make
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-gzip -9nf AUTHORS ChangeLog NEWS README
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ Graphicsdir=%{_applnkdir}/Graphics \
+ omf_dest_dir=%{_omf_dest_dir}/%{name}
%find_lang %{name} --with-gnome
+%post
+/usr/bin/scrollkeeper-update
+GCONF_CONFIG_SOURCE="" \
+%{_bindir}/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/*.schemas > /dev/null
+
+%postun -p /usr/bin/scrollkeeper-update
+
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc *.gz
+%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/*
-%{_sysconfdir}/CORBA/servers/*
+%attr(755,root,root) %{_libdir}/ggv*
%{_applnkdir}/Graphics/ggv.desktop
-%{_datadir}/pixmaps/*
+%{_datadir}/gnome-2.0/ui/ggv*
+%{_datadir}/idl/*
+%{_libdir}/bonobo/servers/*server
+%{_omf_dest_dir}/%{name}
+%{_pixmapsdir}/*
+%{_sysconfdir}/gconf/schemas/*