Add package

This commit is contained in:
wanjk19 2020-01-10 17:45:57 +08:00
parent 78f2401993
commit def69d7d56
2 changed files with 63 additions and 0 deletions

BIN
tcllib-1.19.tar.xz Normal file

Binary file not shown.

63
tcllib.spec Normal file
View File

@ -0,0 +1,63 @@
%global tcl_version %(echo 'puts $tcl_version' | tclsh)
%global tcl_sitelib %{_datadir}/tcl%{tcl_version}
Summary: The standard Tcl library
Name: tcllib
Version: 1.19
Release: 2
License: BSD
URL: http://tcllib.sourceforge.net/
Source: https://downloads.sourceforge.net/tcllib/%{name}-%{version}.tar.xz
BuildArch: noarch
Requires: tcl(abi) = 8.6
BuildRequires: tcl >= 8.3.1
%description
Tcllib, the Tcl Standard Library is a collection of Tcl packages
that provide utility functions useful to a large collection of Tcl
programmers.
%package help
Requires: tcl(abi) = 8.6
Summary: help documentation for tcllib
%description help
This package contains the help documentation for tcllib.
%prep
%autosetup -p1
chmod -x modules/doctools/mpformats/fr.msg
iconv --from=ISO-8859-1 --to=UTF-8 modules/struct/pool.html > modules/struct/pool.html.new
mv -f modules/struct/pool.html.new modules/struct/pool.html
%build
%install
%{_bindir}/tclsh installer.tcl -no-gui -no-wait -no-html -no-examples \
-pkg-path %{buildroot}/%{tcl_sitelib}/%name-%version -app-path %{buildroot}%{_bindir} \
-nroff-path %{buildroot}%_mandir/mann
find %{buildroot}/%{_datadir} -name \*.tcl | xargs chmod 0644
%files
%doc support/releases/PACKAGES ChangeLog
%doc modules/exif/*.html modules/ftp/docs/*.html modules/mime/*.html modules/stooop/*.html
%doc modules/textutil/*.html modules/struct/*.html
%license license.terms
%{tcl_sitelib}/%{name}-%{version}
%{_bindir}/dtplite
%{_bindir}/pt
%{_bindir}/nns*
%{_bindir}/page
%{_bindir}/tcldocstrip
%files help
%doc README support/releases/history/README-1.9.txt
%{_mandir}/mann/*
%changelog
* Wed Jan 08 2019 wanjiankang <wanjiankang@huawei.com> - 1.19-2
- Package Init.