X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ggv.spec;h=3018e65163ef27ec71745ab4fbbe1e3372312f0b;hb=7e8a162e4402ce57c56b45ef6283ed4c7ce73111;hp=558f2df42ae890cc647db40c52de40f9baa54bdf;hpb=91a41eeefd26546f2811112b3a26279c4252bcb2;p=packages%2Fggv.git diff --git a/ggv.spec b/ggv.spec index 558f2df..3018e65 100644 --- a/ggv.spec +++ b/ggv.spec @@ -1,48 +1,101 @@ -Summary: GNOME Ghostscript Viewer -Summary(pl): Przegl±darka Ghostscriptu dla GNOME -Name: ggv -Version: 0.26 -Release: 5 -Copyright: GPL -Group: X11/Libraries -Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}-%{version}.tar.gz -URL: http://www.gnome.org -BuildRoot: /tmp/%{name}-%{version}-root +Summary: GNOME Ghostscript Viewer +Summary(pl): Przegl±darka ghostscript dla GNOME +Name: ggv +Version: 2.8.2 +Release: 1 +License: GPL +Group: X11/Applications/Graphics +Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/2.8/%{name}-%{version}.tar.bz2 +# Source0-md5: df70c424c4682ff679c84af9849b2043 +Patch0: %{name}-mime-pdf.patch +Patch1: %{name}-desktop.patch +URL: http://www.gnome.org/ +BuildRequires: GConf2-devel >= 2.7.91 +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: docbook-style-dsssl +BuildRequires: gettext-devel +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.7.91 +BuildRequires: libtool +BuildRequires: openjade +BuildRequires: pkgconfig +BuildRequires: popt-devel +BuildRequires: rpm-build >= 4.1-8.2 +BuildRequires: scrollkeeper +Requires(post): GConf2 +Requires(post,postun): scrollkeeper +Requires: ghostscript +Requires: libbonobo >= 2.6.2 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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. Program ten slu¿y do +przegl±dania postscriptowych dokumentów na ekranie. %prep %setup -q +%patch0 -p1 +%patch1 -p1 %build -CFLAGS="$RPM_OPT_FLAGS" \ -./configure %{_target_platform} \ - --prefix=/usr/X11R6 +rm -f missing acinclude.m4 +%{__libtoolize} +glib-gettextize --copy --force +intltoolize --copy --force +%{__aclocal} +%{__autoconf} +%{__automake} +%configure \ + --enable-platform-gnome-2 \ + --disable-schemas-install -make +%{__make} %install rm -rf $RPM_BUILD_ROOT -make prefix=$RPM_BUILD_ROOT/usr/X11R6 install +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT \ + GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 -strip $RPM_BUILD_ROOT/usr/X11R6/bin/* +rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no -%find_lang %{name} +%find_lang %{name} --with-gnome %clean rm -rf $RPM_BUILD_ROOT +%post +umask 022 +/usr/bin/scrollkeeper-update +%gconf_schema_install +[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||: + +%postun +umask 022 +/usr/bin/scrollkeeper-update +[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 + %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README -%attr(755,root,root) /usr/X11R6/bin/ggv -/usr/X11R6/share/apps/Graphics/ggv.desktop +%attr(755,root,root) %{_bindir}/* +%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/*