ALT Linux repositórios
Group :: Desenvolvimento/Tcl
RPM: tcl
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_without test
%define major 8.5
Name: tcl
Version: 8.5.5
Release: alt2
Summary: A Tool Command Language (TCL)
License: BSD
Group: Development/Tcl
Url: http://www.tcl.tk/
Source: %name-%version-%release.tar
BuildRequires(pre): rpm-build-tcl >= 0.4-alt1
%{?_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
Requires: rpm-build-tcl >= 0.3-alt1
%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
%build
cd unix
%__autoconf
%configure --disable-rpath --enable-threads
make all %{?_with_test:test}
%install
%define docdir %_defaultdocdir/%name-%version
%define __tclsh %buildroot%_bindir/.tclsh
%make_install INSTALL_ROOT=%buildroot install -C unix
mkdir -p %buildroot%_tcllibdir %buildroot%_tcldatadir %buildroot%docdir
install -p -m0644 -D tcl.m4 %buildroot%_datadir/aclocal/tea.m4
ln -sf tclsh%major %buildroot%_bindir/tclsh
ln -sf lib%name%major.so %buildroot%_libdir/lib%name.so
ln -s ../unix/tclUnixPort.h %buildroot%_includedir/tcl/generic/tclUnixPort.h
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
bzip -9f ChangeLog changes
install -pm0644 README license.terms changes.bz2 ChangeLog.bz2 %buildroot%docdir
%files
%dir %docdir
%docdir/README
%docdir/license.terms
%docdir/changes.*
%_bindir/tclsh*
%_tcldatadir/tcl8
%_tcldatadir/%name%major
%exclude %_tcldatadir/%name%major/ldAix
%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
%docdir/ChangeLog.*
%_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
%define major 8.5
Name: tcl
Version: 8.5.5
Release: alt2
Summary: A Tool Command Language (TCL)
License: BSD
Group: Development/Tcl
Url: http://www.tcl.tk/
Source: %name-%version-%release.tar
BuildRequires(pre): rpm-build-tcl >= 0.4-alt1
%{?_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
Requires: rpm-build-tcl >= 0.3-alt1
%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
%build
cd unix
%__autoconf
%configure --disable-rpath --enable-threads
make all %{?_with_test:test}
%install
%define docdir %_defaultdocdir/%name-%version
%define __tclsh %buildroot%_bindir/.tclsh
%make_install INSTALL_ROOT=%buildroot install -C unix
mkdir -p %buildroot%_tcllibdir %buildroot%_tcldatadir %buildroot%docdir
install -p -m0644 -D tcl.m4 %buildroot%_datadir/aclocal/tea.m4
ln -sf tclsh%major %buildroot%_bindir/tclsh
ln -sf lib%name%major.so %buildroot%_libdir/lib%name.so
ln -s ../unix/tclUnixPort.h %buildroot%_includedir/tcl/generic/tclUnixPort.h
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
bzip -9f ChangeLog changes
install -pm0644 README license.terms changes.bz2 ChangeLog.bz2 %buildroot%docdir
%files
%dir %docdir
%docdir/README
%docdir/license.terms
%docdir/changes.*
%_bindir/tclsh*
%_tcldatadir/tcl8
%_tcldatadir/%name%major
%exclude %_tcldatadir/%name%major/ldAix
%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
%docdir/ChangeLog.*
%_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