Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37836106
en ru br
ALT Linux repositórios
S:8.6.13-alt1
5.0: 8.5.5-alt2
4.1: 8.5.2-alt1
4.0: 8.4.17-alt0.M40.1
3.0: 8.4.11-alt1

Group :: Desenvolvimento/Tcl
RPM: tcl

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

# -*- rpm-spec -*-
# $Id: tcl,v 1.72 2005/07/13 18:48:53 me Exp $

%def_with test

%undefine snapshot
%define major 8.4

Name: tcl
Version: %major.11
Release: alt1

Summary: A Tool Command Language (TCL)
License: BSD
Group: Development/Tcl
Url: http://www.tcl.tk/

%ifdef snapshot
# cvs -d :pserver:anonymous at cvs.sourceforge.net/cvsroot/tcl co -r core-8-4-branch tcl
Source0: %name%major-%snapshot.tar.bz2
%else
Source0: http://download.sourceforge.net/%name/%name%version-src.tar.bz2
%endif

Source1: tcl.m4

Patch0: %name-8.4.10-alt-ieee.patch
Patch1: %name-8.4.10-alt-extra-headers.patch
Patch2: %name-8.4.10-alt-soname.patch
Patch3: %name-8.4.10-alt-norpath.patch
Patch4: %name-8.4.10-alt-nostdinc.patch
Patch5: %name-8.4.10-alt-ac25.patch
Patch6: %name-8.4.10-alt-libpath.patch

BuildRequires: autoconf_2.5 automake_1.6 rpm-build-tcl
%{?_with_test:BuildConflicts: tcl-vfs}

Requires: lib%name = %version-%release

%package -n lib%name
Summary: A Tool Command Language (TCL) - shared library
Group: System/Libraries
Provides: %_tcllibdir
Provides: %_tcldatadir

%package devel
Summary: Header files and C programming manual for TCL
Group: Development/C
Requires: %name = %version-%release

%description
The Tcl (Tool Command Language) 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 the Macintosh.  Tcl
can also be used for a variety of web-related tasks and for creating
powerful command languages for applications.

%description -n lib%name
The Tcl (Tool Command Language) 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 the Macintosh.  Tcl
can also be used for a variety of web-related tasks and for creating
powerful command languages for applications.

This package includes shared Tcl library only.

%description devel
The Tcl (Tool Command Language) 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 the Macintosh.  Tcl
can also be used for a variety of web-related tasks and for creating
powerful command languages for applications.

This package includes header files and C programming manuals for Tcl.

%prep
%setup -q %{?snapshot:-c}%{!?snapshot:-n %name%version}
%patch0 -p1 -b .ieee
%patch1 -p1 -b .xhdrs
%patch2 -p1 -b .soname
%patch3 -p1 -b .norpath
%patch4 -p1 -b .nostdinc
%patch5 -p1 -b .ac25
%patch6 -p1 -b .libpath

%build
%set_autoconf_version 2.5
%set_automake_version 1.6
cd unix
%__autoconf
%configure --enable-shared --enable-gcc
%__subst 's|-DPACKAGE_[^ ]\+ ||g' tclConfig.sh
%__make all %{?_with_test:test}

%install
%define __tclsh %buildroot%_bindir/.tclsh
%make_install INSTALL_ROOT=%buildroot install -C unix
%__mkdir_p %buildroot%_tcllibdir
%__install -p -m0644 -D %SOURCE1 %buildroot%_datadir/aclocal/tea.m4
%__install -m0755 -d %buildroot%_tcldatadir
%__ln_s -f tclsh%major %buildroot%_bindir/tclsh
%__ln_s -f lib%name%major.so %buildroot%_libdir/lib%name.so
%__chmod 0644 %buildroot%_libdir/lib%{name}stub%major.a
%__cat <<EOF > %__tclsh
#!/bin/sh
LD_LIBRARY_PATH=%buildroot%_libdir; export LD_LIBRARY_PATH
TCL_LIBRARY=%buildroot%_tcldatadir/%name%major; export TCL_LIBRARY
exec %buildroot%_bindir/tclsh "\$ at "
EOF
%__chmod +x %__tclsh

%post -n lib%{name} -p %post_ldconfig
%postun -n lib%{name} -p %postun_ldconfig

%files
%doc README license* ChangeLog changes
%_bindir/tclsh*
%dir %_tcldatadir/%name%major
%_tcldatadir/%name%major/*
%exclude %_tcldatadir/%name%major/%{name}AppInit.c
%_man1dir/*
%_mandir/mann/*

%files -n lib%name
%dir %_tcllibdir
%dir %_tcldatadir
%_libdir/lib%name%major.so

%files devel
%_includedir/*
%_libdir/lib%name.so
%_libdir/lib%{name}stub%{major}.a
%_libdir/%{name}Config.sh
%_tcldatadir/%name%major/%{name}AppInit.c
%_datadir/aclocal/*.m4
%_man3dir/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009