os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/unix/tcl.spec
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
# $Id: tcl.spec,v 1.16.2.15 2006/10/23 17:53:28 dgp Exp $
sl@0
     2
# This file is the basis for a binary Tcl RPM for Linux.
sl@0
     3
sl@0
     4
%define version 8.4.15
sl@0
     5
%define directory /usr/local
sl@0
     6
sl@0
     7
Summary: Tcl scripting language development environment
sl@0
     8
Name: tcl
sl@0
     9
Version: %{version}
sl@0
    10
Release: 1
sl@0
    11
Copyright: BSD
sl@0
    12
Group: Development/Languages
sl@0
    13
Source: http://prdownloads.sourceforge.net/tcl/tcl%{version}-src.tar.gz
sl@0
    14
URL: http://www.tcl.tk/
sl@0
    15
Packager: Carina
sl@0
    16
Buildroot: /var/tmp/%{name}%{version}
sl@0
    17
sl@0
    18
%description
sl@0
    19
The Tcl (Tool Command Language) provides a powerful platform for
sl@0
    20
creating integration applications that tie together diverse
sl@0
    21
applications, protocols, devices, and frameworks.  When paired with
sl@0
    22
the Tk toolkit, Tcl provides the fastest and most powerful way to
sl@0
    23
create GUI applications that run on PCs, Unix, and the Macintosh.  Tcl
sl@0
    24
can also be used for a variety of web-related tasks and for creating
sl@0
    25
powerful command languages for applications.
sl@0
    26
sl@0
    27
%prep
sl@0
    28
sl@0
    29
%build
sl@0
    30
./configure --prefix %{directory} --exec-prefix %{directory}
sl@0
    31
make CFLAGS=$RPM_OPT_FLAGS
sl@0
    32
sl@0
    33
%install
sl@0
    34
rm -rf $RPM_BUILD_ROOT
sl@0
    35
make INSTALL_ROOT=$RPM_BUILD_ROOT install
sl@0
    36
sl@0
    37
%clean
sl@0
    38
rm -rf $RPM_BUILD_ROOT
sl@0
    39
sl@0
    40
# to create the tcl files list, comment out tk in the install section above,
sl@0
    41
# then run "rpm -bi" then do a find from the build root directory,
sl@0
    42
# and remove the files in specific directories which suffice by themselves,
sl@0
    43
# then to create the files list for tk, uncomment tk, comment out tcl,
sl@0
    44
# then rm -rf $RPM_BUILD_ROOT then rpm --short-circuit -bi then redo a find,
sl@0
    45
# and remove the files in specific directories which suffice by themselves.
sl@0
    46
%files
sl@0
    47
%defattr(-,root,root)
sl@0
    48
%{directory}/lib
sl@0
    49
%{directory}/bin
sl@0
    50
%{directory}/include
sl@0
    51
%{directory}/man/man1
sl@0
    52
%{directory}/man/man3
sl@0
    53
%{directory}/man/mann