2009-09-30 06:38:04 +00:00
|
|
|
# norootforbuild
|
|
|
|
|
2010-11-23 14:30:25 +00:00
|
|
|
Name: perl-Getopt-ArgvFile
|
|
|
|
Version: 1.11
|
2009-09-30 06:38:04 +00:00
|
|
|
Release: 0
|
2010-11-23 14:30:25 +00:00
|
|
|
Summary: Perl Module to interpolate Script Options from Files into @ARGV
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile-%{version}.tar.gz
|
|
|
|
URL: http://search.cpan.org/dist/Getopt-ArgvFile/
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
2010-12-01 09:45:43 +00:00
|
|
|
%{perl_requires}
|
2010-11-23 14:39:39 +00:00
|
|
|
BuildRequires: make perl dos2unix
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
|
2009-09-30 06:38:04 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module simply interpolates option file hints in @ARGV by the contents of
|
|
|
|
the pointed files. This enables option reading from files instead of or
|
|
|
|
additional to the usual reading from the command line.
|
|
|
|
|
|
|
|
Alternatively, you can process any array instead of @ARGV which is used by
|
|
|
|
default and mentioned mostly in this manual.
|
|
|
|
|
|
|
|
The interpolated @ARGV could be subsequently processed by the usual option
|
|
|
|
handling, e.g. by a Getopt::xxx module. Getopt::ArgvFile does not perform any
|
|
|
|
option handling itself, it only prepares the array @ARGV.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jochen Stenzel <perl@jochen-stenzel.de>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "Getopt-ArgvFile-%{version}"
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
2010-11-23 14:39:39 +00:00
|
|
|
dos2unix Changes
|
2009-09-30 06:38:04 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%__rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes README
|
|
|
|
%dir %{perl_vendorlib}/Getopt
|
|
|
|
%{perl_vendorlib}/Getopt/ArgvFile.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/Getopt
|
|
|
|
%{perl_vendorarch}/auto/Getopt/ArgvFile
|
|
|
|
%doc %{perl_man3dir}/Getopt::ArgvFile.%{perl_man3ext}*
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
# vim: set sw=3 ts=3 noet:
|
|
|
|
# Local Variables:
|
|
|
|
# mode: rpm-spec
|
|
|
|
# tab-width: 3
|
|
|
|
# End:
|