OBS User unknown 2007-11-23 13:14:32 +00:00 committed by Git OBS Bridge
parent 613fb2a0d4
commit 6ae272bfb3
3 changed files with 29 additions and 10 deletions

27
browser
View File

@ -3,21 +3,23 @@
# browser script
#
# Copyright (c) 2004 SuSE Linux AG, Nuernberg, Germany.
# Copyright (c) 2004 Werner Fink
# Copyright (c) 2007 SuSE LINUX Products GmbH, Nuernberg, Germany
# Copyright (c) 2004, 2007 Werner Fink
#
# Author: Werner Fink
prog=""
for p in \
firefox \
Mozilla \
mozilla \
konqueror \
opera \
amaya \
Netscape \
netscape \
Mosaic \
mosaic \
opera \
konqueror \
amaya
mosaic
do
prog=$(type -p $p) && break
done
@ -60,8 +62,8 @@ for opt in $@ ; do
esac
done
case "$prog" in
*/[nN]etscape|*/[Mm]ozilla)
case "${prog##*/}" in
[nN]etscape|[Mm]ozilla)
ret=0
if test -n "$url" ; then
$prog -noraise -remote "xfeDoCommand(openBrowser)" &> /dev/null && \
@ -72,6 +74,17 @@ case "$prog" in
ret=$?
fi
test $ret -eq 0 && exit 0
;;
firefox)
ret=0
if test -n "$url" ; then
$prog -remote "$open($url,new-window)"
ret=$?
elif test -n "$cmd" ; then
echo "${prog##*/} does not support $cmd"
exit 1
fi
test $ret -eq 0 && exit 0
esac
# You are at your own

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 23 12:30:59 CET 2007 - werner@suse.de
- Make browser script know about firefox
-------------------------------------------------------------------
Mon May 7 16:44:45 CEST 2007 - werner@suse.de

View File

@ -16,9 +16,9 @@ License: Any permissive
Group: Productivity/Graphics/Vector Editors
Provides: xfig.3.2.3d
Requires: transfig netpbm ghostscript-fonts-std
Autoreqprov: on
AutoReqProv: on
Version: 3.2.5
Release: 1
Release: 42
Summary: Facility for Interactive Generation of Figures under the X Window System
Url: http://www.xfig.org/
Source: xfig.%{version}.tar.bz2
@ -37,7 +37,6 @@ Patch7: xfig.%{version}-fixes.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
%if "%_exec_prefix" == "/usr/X11R6"
%global _mandir %{_exec_prefix}/man
%define _x11data %{_exec_prefix}/lib/X11
%define _data $(LIBDIR)
@ -135,6 +134,8 @@ find %{buildroot}/%{_docdir}/%{name} -name '*.orig' | xargs -r rm -f
%doc %{_mandir}/man1/xfig.1x.gz
%changelog
* Fri Nov 23 2007 - werner@suse.de
- Make browser script know about firefox
* Fri Jun 01 2007 - dmueller@suse.de
- fix buildrequires
* Mon May 07 2007 - werner@suse.de