]> git.pld-linux.org Git - packages/tcllib.git/commitdiff
- added man patch, package program manuals in man1 dir
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 5 Jan 2014 07:04:21 +0000 (08:04 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 5 Jan 2014 07:04:21 +0000 (08:04 +0100)
tcllib-man.patch [new file with mode: 0644]
tcllib.spec

diff --git a/tcllib-man.patch b/tcllib-man.patch
new file mode 100644 (file)
index 0000000..1beb7b3
--- /dev/null
@@ -0,0 +1,11 @@
+--- 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)
index b849cec7bb171dbd79f385c0b4c58f7365c85012..9ab260d2fb804a386f503d5f6f6368d909517360 100644 (file)
@@ -3,14 +3,16 @@ Summary(pl.UTF-8):    Biblioteki dla Tcl-a
 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)
 
@@ -24,7 +26,8 @@ Pakiet jest zestawem pakietów Tcl udostępniającym różne funkcje
 użyteczne dla wielu programistów Tcl-a.
 
 %prep
-%setup  -q
+%setup -q
+%patch0 -p1
 
 %build
 %{__aclocal}
@@ -40,12 +43,25 @@ install -d $RPM_BUILD_ROOT%{_mandir}/man1
 %{__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*
This page took 0.088518 seconds and 4 git commands to generate.