jimtcl/jimtcl.spec

79 lines
2.0 KiB
RPMSpec

#
# 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