Advertisement
Guest User

otcl.spec

a guest
May 3rd, 2017
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Name:           otcl
  2. Version:        1.14
  3. Release:        1%{?dist}
  4. Summary:        The "Hello World" program from GNU
  5.  
  6. License:        GPLv3+
  7. URL:            https://sourceforge.net/projects/otcl-tclcl/
  8. Source0:        https://sourceforge.net/projects/otcl-tclcl/files/OTcl/%{version}/%{name}-src-%{version}.tar.gz
  9. Patch0:     otcl-1.14-tcl86-compat.patch
  10.  
  11. Requires:   libX11
  12. Requires:   libXt
  13. Requires:   tcl
  14. Requires:   tk
  15. BuildRequires:  libX11-devel
  16. BuildRequires:  libXt-devel
  17. BuildRequires:  tcl-devel
  18. BuildRequires:  tk-devel
  19.  
  20. %description
  21. 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.)
  22.  
  23. %prep
  24. %setup
  25. %patch0 -p1
  26.  
  27. %build
  28. %configure --prefix=%{buildroot}/usr
  29. %make_build -j1
  30.  
  31. %install
  32. %make_install
  33. if test "%{_arch}" == x86_64; then
  34.     install -Dm755 %{buildroot}/usr/lib/libotcl.a %{buildroot}/%{_libdir}/libotcl.a
  35.     install -Dm755 %{buildroot}/usr/lib/libotcl.so %{buildroot}/%{_libdir}/libotcl.so
  36.     rm %{buildroot}/usr/lib/libotcl.a %{buildroot}/usr/lib/libotcl.so
  37. fi
  38.  
  39. %files
  40. %{_bindir}/otclsh
  41. %{_bindir}/owish
  42. %{_includedir}/otcl.h
  43. %{_libdir}/libotcl.a
  44. %{_libdir}/libotcl.so
  45.  
  46. %changelog
  47. * Wed May 03 2017 - 1.14-1
  48. - Initial version of the package
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement