| 1 |
# This file is the basis for a binary Tcl RPM for Linux. |
| 2 |
|
| 3 |
%{!?directory:%define directory /usr/local} |
| 4 |
|
| 5 |
Name: tcl |
| 6 |
Summary: Tcl scripting language development environment |
| 7 |
Version: 8.6.18 |
| 8 |
Release: 2 |
| 9 |
License: BSD |
| 10 |
Group: Development/Languages |
| 11 |
Source: http://prdownloads.sourceforge.net/tcl/tcl%{version}-src.tar.gz |
| 12 |
URL: https://www.tcl-lang.org/ |
| 13 |
Buildroot: /var/tmp/%{name}%{version} |
| 14 |
|
| 15 |
%description |
| 16 |
The Tcl (Tool Command Language) provides a powerful platform for |
| 17 |
creating integration applications that tie together diverse |
| 18 |
applications, protocols, devices, and frameworks. When paired with |
| 19 |
the Tk toolkit, Tcl provides the fastest and most powerful way to |
| 20 |
create GUI applications that run on PCs, Unix, and Mac OS X. Tcl |
| 21 |
can also be used for a variety of web-related tasks and for creating |
| 22 |
powerful command languages for applications. |
| 23 |
|
| 24 |
%prep |
| 25 |
%setup -q -n %{name}%{version} |
| 26 |
|
| 27 |
%build |
| 28 |
cd unix |
| 29 |
CFLAGS="%optflags" ./configure \ |
| 30 |
--prefix=%{directory} \ |
| 31 |
--exec-prefix=%{directory} \ |
| 32 |
--libdir=%{directory}/%{_lib} |
| 33 |
make |
| 34 |
|
| 35 |
%install |
| 36 |
cd unix |
| 37 |
make INSTALL_ROOT=%{buildroot} install |
| 38 |
|
| 39 |
%clean |
| 40 |
rm -rf %buildroot |
| 41 |
|
| 42 |
%files |
| 43 |
%defattr(-,root,root) |
| 44 |
%if %{_lib} != lib |
| 45 |
%{directory}/%{_lib} |
| 46 |
%endif |
| 47 |
%{directory}/lib |
| 48 |
%{directory}/bin |
| 49 |
%{directory}/include |
| 50 |
%{directory}/man/man1 |
| 51 |
%{directory}/man/man3 |
| 52 |
%{directory}/man/mann |