]> git.pld-linux.org Git - packages/ggv.git/blobdiff - ggv.spec
- tabs in preamble
[packages/ggv.git] / ggv.spec
index 6fa689d0be507aed4553db6a46bde05d68115083..c29c96644fe8bf3895418c7600c094c412c63612 100644 (file)
--- a/ggv.spec
+++ b/ggv.spec
@@ -1,58 +1,64 @@
 Summary:       GNOME Ghostscript Viewer
-Summary(pl):   Przegl±darka Ghostscriptu dla GNOME
+Summary(pl.UTF-8):     Przeglądarka ghostscript dla GNOME
 Name:          ggv
-Version:       1.1.94
-Release:       2
+Version:       2.8.5
+Release:       1
 License:       GPL
 Group:         X11/Applications/Graphics
-Source0:       ftp://ftp.gnome.org/pub/GNOME/unstable/sources/ggv/%{name}-%{version}.tar.gz
+Source0:       http://ftp.gnome.org/pub/gnome/sources/ggv/2.8/%{name}-%{version}.tar.bz2
+# Source0-md5: e8b338c1427e170ffbb33c62d0aaf191
+Patch0:                %{name}-desktop.patch
 URL:           http://www.gnome.org/
-BuildRequires: automake
+BuildRequires: GConf2-devel >= 2.8.1
 BuildRequires: autoconf
-BuildRequires: bonobo-devel >= 0.33
+BuildRequires: automake
 BuildRequires: docbook-style-dsssl
 BuildRequires: gettext-devel
-BuildRequires: gtk+-devel >= 1.2.0
-BuildRequires: gnome-libs-devel
-BuildRequires: oaf-devel >= 0.6.2
-BuildRequires: GConf-devel >= 0.12
-BuildRequires: openjade
+BuildRequires: ghostscript
+BuildRequires: gnome-common >= 2.8.0
+BuildRequires: gtk+2-devel >= 2:2.4.4
+BuildRequires: intltool >= 0.30
+BuildRequires: libbonobo-devel >= 2.6.2
+BuildRequires: libgnomeui-devel >= 2.10.0-2
 BuildRequires: libtool
+BuildRequires: openjade
+BuildRequires: pkgconfig
+BuildRequires: popt-devel
+BuildRequires: rpm-build >= 4.1-8.2
+BuildRequires: rpmbuild(macros) >= 1.197
 BuildRequires: scrollkeeper
-Prereq:                scrollkeeper
+Requires(post,preun):  GConf2
+Requires(post,postun): desktop-file-utils
+Requires(post,postun): scrollkeeper
 Requires:      ghostscript
+Requires:      libbonobo >= 2.6.2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix         /usr/X11R6
-%define                _mandir         %{_prefix}/man
-%define                _sysconfdir     /etc/X11/GNOME
-%define                _omf_dest_dir   %(scrollkeeper-config --omfdir)
-
 %description
 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.
+%description -l pl.UTF-8
+Przeglądarka ghostscriptu dla GNOME - graficzny frontend dla
+interpretera postscriptu o nazwie ghostscript. Program ten sluży do
+przeglądania postscriptowych dokumentów na ekranie.
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
+%patch0 -p1
 
 %build
-#rm missing acinclude.m4
-#libtoolize --copy --force
-#gettextize --copy --force
-#aclocal -I macros
-#autoconf
-#automake -a -c
-CPPFLAGS="`gnome-config --cflags bonobo`"; export CPPFLAGS
-LDFLAGS="-L%{_libdir} -lbonobox"; export LDFLAGS
+rm -f missing acinclude.m4
+%{__libtoolize}
+%{__glib_gettextize}
+%{__intltoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
 %configure \
-       --enable-bonobo
-
+       --enable-platform-gnome-2 \
+       --disable-schemas-install
 %{__make}
 
 %install
@@ -60,31 +66,36 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
-       Graphicsdir=%{_applnkdir}/Graphics \
-       omf_dest_dir=%{_omf_dest_dir}/%{name}
+       GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
 
-gzip -9nf AUTHORS ChangeLog NEWS README
+rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
 
 %find_lang %{name} --with-gnome
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
-/usr/bin/scrollkeeper-update
+%gconf_schema_install ggv.schemas
+%scrollkeeper_update_post
+%update_desktop_database_post
 
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
-/usr/bin/scrollkeeper-update
+%preun
+%gconf_schema_uninstall ggv.schemas
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%postun
+%scrollkeeper_update_postun
+%update_desktop_database_postun
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc *.gz
+%doc AUTHORS ChangeLog NEWS README
 %attr(755,root,root) %{_bindir}/*
-%{_applnkdir}/Graphics/ggv.desktop
-%{_datadir}/gnome/ui/ggv*
-%{_pixmapsdir}/*
-%{_datadir}/oaf/*
+%attr(755,root,root) %{_libdir}/ggv*
+%{_datadir}/gnome-2.0/ui/ggv*
 %{_datadir}/idl/*
+%{_libdir}/bonobo/servers/*
 %{_omf_dest_dir}/%{name}
+%{_desktopdir}/ggv.desktop
+%{_pixmapsdir}/*
+%{_sysconfdir}/gconf/schemas/*
This page took 0.089244 seconds and 4 git commands to generate.