Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Name: otcl
- Version: 1.14
- Release: 1%{?dist}
- Summary: The "Hello World" program from GNU
- License: GPLv3+
- URL: https://sourceforge.net/projects/otcl-tclcl/
- Source0: https://sourceforge.net/projects/otcl-tclcl/files/OTcl/%{version}/%{name}-src-%{version}.tar.gz
- Patch0: otcl-1.14-tcl86-compat.patch
- Requires: libX11
- Requires: libXt
- Requires: tcl
- Requires: tk
- BuildRequires: libX11-devel
- BuildRequires: libXt-devel
- BuildRequires: tcl-devel
- BuildRequires: tk-devel
- %description
- OTcl, short for MIT Object Tcl, is an extension to Tcl/Tk for object-oriented programming. It shouldn't be confused with the IXI Object Tcl extension by Dean Sheenan. (Sorry, but we both like the name and have been using it for a while.)
- %prep
- %setup
- %patch0 -p1
- %build
- %configure --prefix=%{buildroot}/usr
- %make_build -j1
- %install
- %make_install
- if test "%{_arch}" == x86_64; then
- install -Dm755 %{buildroot}/usr/lib/libotcl.a %{buildroot}/%{_libdir}/libotcl.a
- install -Dm755 %{buildroot}/usr/lib/libotcl.so %{buildroot}/%{_libdir}/libotcl.so
- rm %{buildroot}/usr/lib/libotcl.a %{buildroot}/usr/lib/libotcl.so
- fi
- %files
- %{_bindir}/otclsh
- %{_bindir}/owish
- %{_includedir}/otcl.h
- %{_libdir}/libotcl.a
- %{_libdir}/libotcl.so
- %changelog
- * Wed May 03 2017 - 1.14-1
- - Initial version of the package
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement