Author: sls Date: Wed Nov 28 11:48:32 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - thanks to pldcpan
---- Files affected: SPECS: perl-Getopt-Euclid.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/perl-Getopt-Euclid.spec diff -u /dev/null SPECS/perl-Getopt-Euclid.spec:1.1 --- /dev/null Wed Nov 28 12:48:32 2007 +++ SPECS/perl-Getopt-Euclid.spec Wed Nov 28 12:48:27 2007 @@ -0,0 +1,81 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without autodeps # don't BR packages needed only for resolving deps +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Getopt +%define pnam Euclid +Summary: Getopt::Euclid - Executable Uniform Command-Line Interface Descriptions +#Summary(pl.UTF-8): +Name: perl-Getopt-Euclid +Version: 0.1.0 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/Getopt/%{pdir}-%{pnam}-v%{version}.tar.gz +# Source0-md5: b649254d8ffefb9efb57b794d0071a5f +URL: http://search.cpan.org/dist/Getopt-Euclid/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with autodeps} || %{with tests} +BuildRequires: perl(version) +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Getopt::Euclid uses your program's own documentation to create a command-line +argument parser. This ensures that your program's documented interface and +its actual interface always agree. + +To use the module, you simply write: + + use Getopt::Euclid; + +at the top of your program. + +When the module is loaded within a regular Perl program, it will: + + + +# %description -l pl.UTF-8 +# TODO + +%prep +%setup -q -n %{pdir}-%{pnam}-v%{version} + +%build +%{__perl} Build.PL \ + destdir=$RPM_BUILD_ROOT \ + installdirs=vendor +./Build + +%{?with_tests:./Build test} + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/Getopt/*.pm +%{perl_vendorlib}/Getopt/Euclid +%{_mandir}/man3/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2007-11-28 11:48:27 sls +- thanks to pldcpan + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
