Skip to content
Tcl Source Code Artifact [e965f8fef7]
Login

Artifact [e965f8fef7]

Artifact e965f8fef79a88e3f26f6ec2c9fdb78810def4170edd4689ffa9fa43cf2bd2fa:


# This file is the basis for a binary Tcl RPM for Linux.

%{!?directory:%define directory /usr/local}

Name:          tclunchained
Summary:       TclUnchained scripting language development environment
Version:       9.0.0
Release:       2
License:       GNU Affero General Public License
Group:         Development/Languages
Source:        http://prdownloads.sourceforge.net/tcl/tclunchained%{version}-src.tar.gz
URL:           https://www.tcl-lang.org/
Buildroot:     /var/tmp/%{name}%{version}

%description
Tcl (Tool Command Language) Unchained provides a powerful platform for
creating integration applications that tie together diverse
applications, protocols, devices, and frameworks.  When paired with
the Tk toolkit, Tcl provides the fastest and most powerful way to
create GUI applications that run on PCs, Unix, and Mac OS X.  Tcl
can also be used for a variety of web-related tasks and for creating
powerful command languages for applications.

%prep
%setup -q -n %{name}%{version}

%build
cd unix
CFLAGS="%optflags" ./configure \
	--prefix=%{directory} \
	--exec-prefix=%{directory} \
	--libdir=%{directory}/%{_lib}
make

%install
cd unix
make INSTALL_ROOT=%{buildroot} install

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%if %{_lib} != lib
%{directory}/%{_lib}
%endif
%{directory}/lib
%{directory}/bin
%{directory}/include
%{directory}/man/man1
%{directory}/man/man3
%{directory}/man/mann