Accepting request 182993 from home:prusnak

please review - jimtcl - embeddable tcl interpreter

OBS-URL: https://build.opensuse.org/request/show/182993
OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/jimtcl?expand=0&rev=1
This commit is contained in:
Reinhard Max 2013-07-15 07:11:36 +00:00 committed by Git OBS Bridge
commit ca7c225e80
6 changed files with 168 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

22
jimtcl-add_soname.patch Normal file
View File

@ -0,0 +1,22 @@
Index: Makefile.in
===================================================================
--- Makefile.in.orig
+++ Makefile.in
@@ -33,7 +33,7 @@ VPATH := @srcdir@
@if JIM_STATICLIB
LIBJIM := libjim.a
@else
-LIBJIM := libjim.@LIBSOEXT@
+LIBJIM := libjim.@LIBSOEXT@.0.73
SH_LIBJIM := $(LIBJIM)
CC += $(SH_CFLAGS)
CXX += $(SH_CFLAGS)
@@ -126,7 +126,7 @@ $(LIBJIM): $(OBJS)
$(RANLIB) $@
@else
$(LIBJIM): $(OBJS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(SH_LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-soname,libjim.so.0.73 $(SH_LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
@endif
# Note that $> $^ is for compatibility with both GNU make and BSD make

View File

@ -0,0 +1,37 @@
Index: Makefile.in
===================================================================
--- Makefile.in.orig
+++ Makefile.in
@@ -63,8 +63,9 @@ docs: Tcl.html
@if JIM_DOCS
install-docs: docs
- mkdir -p $(DESTDIR)$(prefix)/doc/jim
- cp Tcl.html $(DESTDIR)$(prefix)/doc/jim
+ mkdir -p $(DESTDIR)@datadir@/doc/jimtcl
+ cp @srcdir@/README.extensions @C_EXT_SHOBJS@ @TCL_EXTS@ $(DESTDIR)@datadir@/doc/jimtcl
+ cp Tcl.html $(DESTDIR)@datadir@/doc/jimtcl
@else
install-docs:
@endif
@@ -76,7 +77,6 @@ $(JIMSH): $(LIBJIM) jimsh.o initjimsh.o
install: all @TCL_EXTS@ install-exec install-docs
mkdir -p $(DESTDIR)@libdir@/jim
cp $(LIBJIM) $(DESTDIR)@libdir@
- cp @srcdir@/README.extensions @C_EXT_SHOBJS@ $(DESTDIR)@libdir@/jim
for i in @TCL_EXTS@; do cp @srcdir@/$$i $(DESTDIR)@libdir@/jim; done
mkdir -p $(DESTDIR)@includedir@
cp @srcdir@/jim.h @srcdir@/jim-eventloop.h @srcdir@/jim-signal.h \
@@ -93,9 +93,10 @@ uninstall:
rm -f $(DESTDIR)@bindir@/$(JIMSH)
rm -f $(DESTDIR)@bindir@/build-jim-ext
rm -f $(DESTDIR)@libdir@/$(LIBJIM)
- for i in README.extensions @C_EXT_SHOBJS@ @TCL_EXTS@; do rm -f $(DESTDIR)@libdir@/jim/$$i; done
+ for i in @C_EXT_SHOBJS@ @TCL_EXTS@; do rm -f $(DESTDIR)@libdir@/jim/$$i; done
rm -f $(DESTDIR)@includedir@/jim*.h
- rm -f $(DESTDIR)@datadir@/doc/jim/Tcl.html
+ rm -f $(DESTDIR)@datadir@/doc/jimtcl/README.extensions
+ rm -f $(DESTDIR)@datadir@/doc/jimtcl/Tcl.html
@else
install install-exec: all
uninstall:

5
jimtcl.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Fri Jul 12 16:33:05 UTC 2013 - prusnak@opensuse.org
- created package based on Fedora package (version 0.73)

78
jimtcl.spec Normal file
View File

@ -0,0 +1,78 @@
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: jimtcl
Version: 0.73
Release: 0
License: BSD
Summary: A small embeddable Tcl interpreter
Url: http://jim.tcl.tk
Group: Development/Languages/Tcl
# wget https://github.com/msteveb/jimtcl/archive/master.tar.gz -O jimtcl.tar.gz
Source: jimtcl.tar.gz
Patch0: jimtcl-fix_doc_paths.patch
Patch1: jimtcl-add_soname.patch
BuildRequires: asciidoc
%description
Jim is an opensource small-footprint implementation of the Tcl programming
language. It implements a large subset of Tcl and adds new features like
references with garbage collection, closures, built-in Object Oriented
Programming system, Functional Programming commands, first-class arrays and
UTF-8 support.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/Tcl
Requires: %{name} = %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n %{name}-master
%patch0
%patch1
iconv --from=ISO-8859-1 --to=UTF-8 AUTHORS > AUTHORS.new ; mv AUTHORS.new AUTHORS
iconv --from=ISO-8859-1 --to=UTF-8 LICENSE > LICENSE.new ; mv LICENSE.new LICENSE
%build
#configure is not able to locate the needed binaries, so specify it manualy
export CC=gcc
export LD=ld
export AR=ar
export RANLIB=ranlib
export STRIP=true
%configure --full --shared --disable-option-checking
make %{?_smp_mflags}
%check
make test
%install
%make_install
rm -rf %{buildroot}%{_datadir}/doc/%{name}
pushd %{buildroot}%{_libdir}/
ln -s libjim.so.* libjim.so
popd
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc LICENSE AUTHORS README Tcl.html
%{_bindir}/jimsh
%{_libdir}/libjim.so.*
%files devel
%defattr(-,root,root,-)
%doc DEVELOPING README.extensions README.metakit README.namespaces README.oo README.utf-8 STYLE
%{_includedir}/*
%{_bindir}/build-jim-ext
%{_libdir}/libjim.so
%changelog

3
jimtcl.tar.gz Normal file
View File

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