Author: glen                         Date: Wed Oct 29 20:40:57 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add manual page

---- Files affected:
SPECS:
   pldcpan.spec (1.23 -> 1.24) 

---- Diffs:

================================================================
Index: SPECS/pldcpan.spec
diff -u SPECS/pldcpan.spec:1.23 SPECS/pldcpan.spec:1.24
--- SPECS/pldcpan.spec:1.23     Tue Oct 14 01:13:51 2008
+++ SPECS/pldcpan.spec  Wed Oct 29 21:40:51 2008
@@ -7,13 +7,14 @@
 Summary:       PLD Linux script to create RPMS from CPAN modules
 Summary(pl.UTF-8):     Skrypt PLD tworzący pakiety RPM z modułów z CPAN
 Name:          pldcpan
-Version:       1.53
+Version:       1.54
 Release:       1
 License:       GPL
 Group:         Development/Languages/Perl
 Source0:       %{name}.pl
 BuildRequires: perl-ExtUtils-MakeMaker
-BuildRequires: rpm-perlprov
+BuildRequires: perl-tools-pod
+BuildRequires: rpm-perlprov >= 4.1-13
 %if %{with autodeps}
 BuildRequires: perl-Archive-Any
 BuildRequires: perl-Digest-MD5
@@ -40,17 +41,23 @@
 modułu i tworzenie pliku spec.
 
 %prep
+%setup -qcT
 # make sure we have the version we claim to have, fail otherwise
 ver=$(%{__perl} -MExtUtils::MM_Unix -e 'print 
ExtUtils::MM_Unix->parse_version(shift)' %{SOURCE0})
 if [ "$ver" != "%{version}" ]; then
        : Update Version to $ver, and retry
        exit 1
 fi
+install %{SOURCE0} .
+
+%build
+pod2man -c "" pldcpan.pl > pldcpan.1
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-install -D %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/pldcpan
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+install pldcpan.pl $RPM_BUILD_ROOT%{_bindir}/pldcpan
+cp -a pldcpan.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -58,6 +65,7 @@
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/pldcpan
+%{_mandir}/man1/pldcpan.1*
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -65,6 +73,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.24  2008/10/29 20:40:51  glen
+- add manual page
+
 Revision 1.23  2008/10/13 23:13:51  glen
 - uses Encode.pm
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/pldcpan.spec?r1=1.23&r2=1.24&f=u

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

Reply via email to