--- /dev/null
+--- tcllib-1.15/installer.tcl.orig 2013-01-23 05:25:49.000000000 +0100
++++ tcllib-1.15/installer.tcl 2014-01-05 07:29:01.619314580 +0100
+@@ -218,7 +218,7 @@
+
+ if {[file exists $aexe.man]} {
+ if {$config(doc,nroff)} {
+- _manfile $aexe.man nroff n $config(doc,nroff,path)
++ _manfile $aexe.man nroff 1 $config(doc,nroff,path)
+ }
+ if {$config(doc,html)} {
+ _manfile $aexe.man html html $config(doc,html,path)
Name: tcllib
Version: 1.15
Release: 1
-License: see license.terms
+License: BSD-like (see license.terms)
Group: Development/Languages/Tcl
Source0: http://downloads.sourceforge.net/tcllib/%{name}-%{version}.tar.gz
# Source0-md5: 7a0525912e8863f8d4360ab10e5450f8
+Patch0: %{name}-man.patch
URL: http://tcllib.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: tcl
+BuildRequires: tcl >= 8.2
+Requires: tcl >= 8.2
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
użyteczne dla wielu programistów Tcl-a.
%prep
-%setup -q
+%setup -q
+%patch0 -p1
%build
%{__aclocal}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%{__mv} $RPM_BUILD_ROOT%{_mandir}/mann/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README license.terms examples
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/dtplite
+%attr(755,root,root) %{_bindir}/nns
+%attr(755,root,root) %{_bindir}/nnsd
+%attr(755,root,root) %{_bindir}/nnslog
+%attr(755,root,root) %{_bindir}/page
+%attr(755,root,root) %{_bindir}/tcldocstrip
%{_prefix}/lib/%{name}%{version}
-%{_mandir}/man?/*
+%{_mandir}/man1/dtplite.1*
+%{_mandir}/man1/nns.1*
+%{_mandir}/man1/nnsd.1*
+%{_mandir}/man1/nnslog.1*
+%{_mandir}/man1/page.1*
+%{_mandir}/man1/tcldocstrip.1*
+%{_mandir}/mann/*.n*