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