Author: rdieter
Update of /cvs/free/rpms/gsview/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv2000
Modified Files:
.cvsignore gsview.spec sources
Added Files:
gsview-4.4-xdg_open.patch
Removed Files:
gsview-4.4-htmlview.patch
Log Message:
* Thu Oct 22 2009 Rex Dieter <rdieter(a)fedoraproject.org> 4.9-1
- gsview-4.9
- optimize scriptlets
- use xdg-open (instead of htmlview)
gsview-4.4-xdg_open.patch:
--- NEW FILE gsview-4.4-xdg_open.patch ---
--- gsview-4.4/srcunx/gvxreg.c.htmlview 2001-10-05 03:48:14.000000000 -0500
+++ gsview-4.4/srcunx/gvxreg.c 2003-04-28 11:28:15.000000000 -0500
@@ -76,7 +76,7 @@
{
if (debug & DEBUG_GENERAL)
gs_addmess("online_reg:\n");
- exec_program("netscape", "http://www.ghostgum.com.au/");
+ exec_program("xdg-open", "http://www.ghostgum.com.au/");
}
void modal_reg(GtkWidget *w, gpointer data)
--- gsview-4.4/srcunx/gvxhelp.txt.htmlview 2003-03-14 15:45:52.000000000 -0600
+++ gsview-4.4/srcunx/gvxhelp.txt 2003-04-28 11:29:54.000000000 -0500
@@ -18,11 +18,7 @@
TAG="#$2"
fi
-if mozilla -remote openFile\(file://$1$TAG\) ; then
- exit 0
-else
- mozilla file://$1$TAG
-fi
+xdg-open file://$1\$TAG
exit 0
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/gsview/devel/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore 3 Aug 2008 14:30:18 -0000 1.2
+++ .cvsignore 22 Oct 2009 18:25:45 -0000 1.3
@@ -1 +1 @@
-gsview-4.8.tar.gz
+gsview-4.9.tar.gz
Index: gsview.spec
===================================================================
RCS file: /cvs/free/rpms/gsview/devel/gsview.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- gsview.spec 29 Mar 2009 13:12:54 -0000 1.4
+++ gsview.spec 22 Oct 2009 18:25:45 -0000 1.5
@@ -1,8 +1,8 @@
Summary: PostScript and PDF previewer
Name: gsview
-Version: 4.8
-Release: 5%{?dist}
+Version: 4.9
+Release: 1%{?dist}
License: AFPL
Group: Applications/Publishing
@@ -22,9 +22,10 @@
# See
http://www.redhat.com/archives/fedora-devel-list/2004-August/msg00068.html
Requires: ghostscript >= 7.07-15.3
%endif
+Requires: xdg-utils
-## Use htmlview instead of hard-coded mozilla
-Patch1: gsview-4.4-htmlview.patch
+## Use xdg-open instead of hard-coded mozilla
+Patch1: gsview-4.4-xdg_open.patch
# default to libgs.so.@@SOMAJOR@@ instead of libgs.so
Patch2: gsview-4.8-libgs.patch
# attempt to allow/use ghostscript-8.15 reported value of 81500.
@@ -45,7 +46,7 @@
%prep
%setup -q
-%patch1 -p1 -b .htmlview
+%patch1 -p1 -b .xdg_open
# patch2 bits below
%patch3 -p1 -b .dllversion
%patch4 -p1 -b .letterpaper
@@ -99,13 +100,18 @@
%post
-touch --no-create %{_datadir}/icons/hicolor 2> /dev/null ||:
-gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
-update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 || :
+touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
%postun
-touch --no-create %{_datadir}/icons/hicolor 2> /dev/null ||:
-gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
+if [ $1 -eq 0 ] ; then
+touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
+gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
+update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 || :
+
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 || :
@@ -125,6 +131,11 @@
%changelog
+* Thu Oct 22 2009 Rex Dieter <rdieter(a)fedoraproject.org> 4.9-1
+- gsview-4.9
+- optimize scriptlets
+- use xdg-open (instead of htmlview)
+
* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 4.8-5
- rebuild for new F11 features
Index: sources
===================================================================
RCS file: /cvs/free/rpms/gsview/devel/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources 3 Aug 2008 14:30:18 -0000 1.2
+++ sources 22 Oct 2009 18:25:45 -0000 1.3
@@ -1 +1 @@
-21c81819af0eeb42ac5ee6499f4a7116 gsview-4.8.tar.gz
+96ca9460c8bd86ef20d881554331d72f gsview-4.9.tar.gz
--- gsview-4.4-htmlview.patch DELETED ---