commit 16330d41e6fc12558425763a3ef27f1ce2f6d291
Author: Jakub Bogusz <[email protected]>
Date:   Sun Jan 5 08:04:21 2014 +0100

    - added man patch, package program manuals in man1 dir

 tcllib-man.patch | 11 +++++++++++
 tcllib.spec      | 26 +++++++++++++++++++++-----
 2 files changed, 32 insertions(+), 5 deletions(-)
---
diff --git a/tcllib.spec b/tcllib.spec
index b849cec..9ab260d 100644
--- a/tcllib.spec
+++ b/tcllib.spec
@@ -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*
diff --git a/tcllib-man.patch b/tcllib-man.patch
new file mode 100644
index 0000000..1beb7b3
--- /dev/null
+++ b/tcllib-man.patch
@@ -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)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tcllib.git/commitdiff/16330d41e6fc12558425763a3ef27f1ce2f6d291

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to