File tcllib.spec of Package tcllib
%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
%{!?tcl_sitelib: %define tcl_sitelib %{_datadir}/tcl%{tcl_version}}
Summary: The standard Tcl library
Name: tcllib
Version: 1.14
Release: 1%{?dist}
License: TCL
Group: Development/Libraries
Source: http://downloads.sourceforge.net/tcllib/tcllib-%{version}.tar.gz
URL: http://tcllib.sourceforge.net/
BuildArch: noarch
# Upstream patch for RHBZ #1197669
Patch50: tcllib-1.16-textarea.patch
Requires: tcl(abi) = 8.5
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.
%prep
%setup -q
%patch50 -p0
chmod -x modules/doctools/mpformats/fr.msg
# Convert a couple of files to UTF-8
for file in modules/struct/pool.html ; do
iconv --from=ISO-8859-1 --to=UTF-8 ${file} > ${file}.new
mv -f ${file}.new ${file}
done
%build
# Nothing to build!
%install
echo 'not available' > modules/imap4/imap4.n
%{_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
# install HTML documentation into specific modules sub-directories:
pushd modules
cp ftp/docs/*.html ftp/
for module in comm exif ftp mime stooop struct textutil; do
mkdir -p ../$module && cp $module/*.html ../$module/;
done
popd
# Clean up rpmlint warnings
find %{buildroot}%{_datadir} -name \*.tcl -exec chmod 0644 {} \;
iconv --from=ISO-8859-1 --to=UTF-8 %{buildroot}%{_mandir}/mann/docstrip.n > %{buildroot}%{_mandir}/mann/docstrip.n.utf8
iconv --from=ISO-8859-1 --to=UTF-8 %{buildroot}%{_mandir}/mann/docstrip_util.n > %{buildroot}%{_mandir}/mann/docstrip_util.n.utf8
mv %{buildroot}%{_mandir}/mann/docstrip.n.utf8 %{buildroot}%{_mandir}/mann/docstrip.n
mv %{buildroot}%{_mandir}/mann/docstrip_util.n.utf8 %{buildroot}%{_mandir}/mann/docstrip_util.n
%files
%doc support/releases/PACKAGES README support/releases/history/README-1.14.txt
%doc ChangeLog license.terms
%doc exif/ ftp/ mime/ stooop/ struct/ textutil/
%{tcl_sitelib}/%{name}-%{version}
%{_mandir}/mann/*
%{_bindir}/nns
%{_bindir}/nnsd
%{_bindir}/nnslog
%{_bindir}/dtplite
%{_bindir}/page
%{_bindir}/tcldocstrip
%changelog
* Thu Jul 09 2015 Dmitrij S. Kryzhevich <kryzhev@ispms.ru> - 1.14-1
- Unorphan.
- Update to 1.14 (newer version require 8.6 abi).
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sat Dec 20 2008 Wart <wart at kobold.org> - 1.11.1-1
- Update to 1.11.1
* Thu Jan 3 2008 Wart <wart at kobold.org> - 1.10-2
- Rebuild for Tcl 8.5
* Sat Nov 24 2007 Wart <wart at kobold.org> - 1.10-1
- Update to 1.10
- Fix download URL
* Tue Aug 21 2007 Wart <wart at kobold.org> - 1.9-5
- License tag clarification
* Fri May 11 2007 Wart <wart at kobold.org> - 1.9-4
- Include command line applications
* Fri Feb 16 2007 Wart <wart at kobold.org> - 1.9-3
- Rebuild for reversion back to tcl8.4
* Thu Feb 1 2007 Wart <wart at kobold.org> 1.9-2
- Rebuild for tcl8.5 (changes tcllib's install directory)
* Thu Oct 19 2006 Wart <wart at kobold.org> 1.9-1
- Update to 1.9
* Mon Aug 21 2006 Wart <wart at kobold.org> 1.8-5
- Rebuild for Fedora Extras
* Thu Feb 16 2006 Wart <wart at kobold.org> 1.8-4
- Remove executable bits on the library files to clean up rpmlint
warnings.
* Mon Oct 17 2005 Wart <wart at kobold.org> 1.8-3
- Bumped release number again so to match the release in the FC3/FC4
branches.
* Sun Oct 16 2005 Wart <wart at kobold.org> 1.8-2
- Bumped release number to fix cvs tagging problem.
* Sun Oct 16 2005 Wart <wart at kobold.org> 1.8-1
- update to 1.8
* Sun Oct 2 2005 Wart <wart at kobold.org> 1.7-3
- Remove generated filelist; other minor spec file improvements.
* Mon Jul 4 2005 Wart <wart at kobold.org> 1.7-2
- Minor spec file changes in an attempt to conform to Fedora Extras
packaging guidelines.
* Thu Oct 14 2004 Jean-Luc Fontaine <jfontain@free.fr> 1.7-1
- 1.7 version
- new modules: asn, bee, grammar_fa, http, ident, jpeg, ldap,
png, rc4, ripemd, tar, tie, treeql, uuid
- modules removed: struct1
* Thu Feb 19 2004 Jean-Luc Fontaine <jfontain@free.fr> 1.6-1
- 1.6 version
- leaner and cleaner spec file based on Fedora standards
- install under tcl_library, not hard-coded /usr/lib