You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.6 KiB
61 lines
1.6 KiB
17 years ago
|
Name: perl-Getopt-Long-Descriptive
|
||
|
Version: 0.074
|
||
|
Release: 1%{?dist}
|
||
|
Summary: Getopt::Long with usage text
|
||
|
License: GPL+ or Artistic
|
||
|
Group: Development/Libraries
|
||
|
URL: http://search.cpan.org/dist/Getopt-Long-Descriptive/
|
||
|
Source0: http://www.cpan.org/authors/id/H/HD/HDP/Getopt-Long-Descriptive-%{version}.tar.gz
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
BuildArch: noarch
|
||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||
|
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
BuildRequires: perl(IO::Scalar)
|
||
|
BuildRequires: perl(Params::Validate) >= 0.74
|
||
|
# test
|
||
|
BuildRequires: perl(Test::More)
|
||
|
BuildRequires: perl(Test::Pod)
|
||
|
BuildRequires: perl(Test::Pod::Coverage)
|
||
|
|
||
|
# not automagically picked up...
|
||
|
Requires: perl(IO::Scalar)
|
||
|
|
||
|
%description
|
||
|
Convenient wrapper for Getopt::Long and program usage output.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n Getopt-Long-Descriptive-%{version}
|
||
|
|
||
|
perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*.t
|
||
|
|
||
|
%build
|
||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||
|
|
||
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
||
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
||
|
|
||
|
%{_fixperms} %{buildroot}/*
|
||
|
|
||
|
%check
|
||
|
make test
|
||
|
|
||
|
%clean
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc Changes README t/
|
||
|
%{perl_vendorlib}/*
|
||
|
%{_mandir}/man3/*
|
||
|
|
||
|
%changelog
|
||
|
* Tue Jul 08 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.074-1
|
||
|
- Specfile autogenerated by cpanspec 1.74.
|