Accepting request 55501 from home:jnweiger:branches:devel:languages:tcl

reviewed ok.

OBS-URL: https://build.opensuse.org/request/show/55501
OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/vtcl?expand=0&rev=5
This commit is contained in:
2010-12-14 16:49:39 +00:00
committed by Git OBS Bridge
parent a02bdfa403
commit 2673395544
6 changed files with 61 additions and 8 deletions

13
default_browser.diff Normal file
View File

@@ -0,0 +1,13 @@
Index: vtcl-1.6.1a1/lib/misc.tcl
===================================================================
--- vtcl-1.6.1a1.orig/lib/misc.tcl
+++ vtcl-1.6.1a1/lib/misc.tcl
@@ -1172,7 +1172,7 @@ proc ::vTcl::web_browser {} {
#if {![file executable [file join $path netscape]]} { continue }
#return [file join $path netscape]
- return mozilla
+ return /usr/bin/xdg-open
}
}

17
tkcon_allow_858.diff Normal file
View File

@@ -0,0 +1,17 @@
---
lib/tkcon.tcl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: vtcl-1.6.1a1/lib/tkcon.tcl
===================================================================
--- vtcl-1.6.1a1.orig/lib/tkcon.tcl
+++ vtcl-1.6.1a1/lib/tkcon.tcl
@@ -40,7 +40,7 @@
if {$tcl_version < 8.0} {
return -code error "tkcon requires at least Tcl/Tk8"
} else {
- package require -exact Tk $tcl_version
+ package require Tk $tcl_version
}
# We need to load some package to get what's available, and we

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:784a25e298e6b3cf5b0f7cb68a1c5b93bcc26fa2bad2bc01d172572baed3ce5e
size 431343

3
vtcl-1.6.1a1.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a291c2a98dc0dade962b070addb220ed2d7864955f12854cc97a8eca622c6c21
size 465524

View File

@@ -3,6 +3,15 @@ Wed Nov 17 11:40:20 CET 2010 - max@suse.de
- Fix strict version requirement for Tk (bnc#654115).
-------------------------------------------------------------------
Mon Nov 1 11:54:21 UTC 2010 - jw@novell.com
- New version: 1.6.1a1
- moved samle to examples to silence rpmlint errors,
update may fail, due to rpm bugs: use rpm -e before updating.
- vtcl stopped working with tcl 8.5.1
Hack alert: removed -exact from package require in tkcon.tcl
-------------------------------------------------------------------
Wed Jan 25 21:48:56 CET 2006 - mls@suse.de

View File

@@ -1,5 +1,5 @@
#
# spec file for package vtcl (Version 1.6.0)
# spec file for package vtcl (Version 1.6.1a1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -21,15 +21,18 @@
Name: vtcl
License: GPLv2+
Group: Development/Languages/Tcl
Requires: tcl tk
Requires: tcl tk tix xdg-utils
AutoReqProv: on
Version: 1.6.0
Version: 1.6.1a1
Release: 183
Summary: Visual Tcl
URL: http://vtcl.sourceforge.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %name-%version.tar.bz2
Source: http://sourceforge.net/projects/vtcl/files/%name-%version.tar.bz2
Source1: vtcl
Patch0: vtcl-tkversion.patch
#Patch1: tkcon_allow_858.diff
Patch2: default_browser.diff
BuildArch: noarch
%description
@@ -48,6 +51,11 @@ Authors:
%setup -q
%patch0
## 1:tkcon_allow_858.diff
#%patch1 -p1
# 2:default_browser.diff
%patch2 -p1
%build
#
# There is nothing to build here :)
@@ -60,11 +68,17 @@ Authors:
cp -a *.tcl images lib $LIBDIR
install -m 755 %SOURCE1 $BINDIR
# avoid rpmlint errors.
ls
mv sample examples
ln -s examples sample
ls
%files
%defattr(-,root,root)
/usr/share/vtcl
%attr(0755,root,root) /usr/bin/vtcl
%doc LICENSE ChangeLog README doc demo sample
%doc LICENSE ChangeLog README doc demo sample examples
%clean
test "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT