sl@0: # $Id: tcl.spec,v 1.16.2.15 2006/10/23 17:53:28 dgp Exp $ sl@0: # This file is the basis for a binary Tcl RPM for Linux. sl@0: sl@0: %define version 8.4.15 sl@0: %define directory /usr/local sl@0: sl@0: Summary: Tcl scripting language development environment sl@0: Name: tcl sl@0: Version: %{version} sl@0: Release: 1 sl@0: Copyright: BSD sl@0: Group: Development/Languages sl@0: Source: http://prdownloads.sourceforge.net/tcl/tcl%{version}-src.tar.gz sl@0: URL: http://www.tcl.tk/ sl@0: Packager: Carina sl@0: Buildroot: /var/tmp/%{name}%{version} sl@0: sl@0: %description sl@0: The Tcl (Tool Command Language) provides a powerful platform for sl@0: creating integration applications that tie together diverse sl@0: applications, protocols, devices, and frameworks. When paired with sl@0: the Tk toolkit, Tcl provides the fastest and most powerful way to sl@0: create GUI applications that run on PCs, Unix, and the Macintosh. Tcl sl@0: can also be used for a variety of web-related tasks and for creating sl@0: powerful command languages for applications. sl@0: sl@0: %prep sl@0: sl@0: %build sl@0: ./configure --prefix %{directory} --exec-prefix %{directory} sl@0: make CFLAGS=$RPM_OPT_FLAGS sl@0: sl@0: %install sl@0: rm -rf $RPM_BUILD_ROOT sl@0: make INSTALL_ROOT=$RPM_BUILD_ROOT install sl@0: sl@0: %clean sl@0: rm -rf $RPM_BUILD_ROOT sl@0: sl@0: # to create the tcl files list, comment out tk in the install section above, sl@0: # then run "rpm -bi" then do a find from the build root directory, sl@0: # and remove the files in specific directories which suffice by themselves, sl@0: # then to create the files list for tk, uncomment tk, comment out tcl, sl@0: # then rm -rf $RPM_BUILD_ROOT then rpm --short-circuit -bi then redo a find, sl@0: # and remove the files in specific directories which suffice by themselves. sl@0: %files sl@0: %defattr(-,root,root) sl@0: %{directory}/lib sl@0: %{directory}/bin sl@0: %{directory}/include sl@0: %{directory}/man/man1 sl@0: %{directory}/man/man3 sl@0: %{directory}/man/mann