/[packages]/cauldron/perl-Getopt-Auto/current/SPECS/perl-Getopt-Auto.spec
ViewVC logotype

Contents of /cauldron/perl-Getopt-Auto/current/SPECS/perl-Getopt-Auto.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 724542 - (show annotations) (download)
Thu Sep 25 06:56:56 2014 UTC (8 years, 11 months ago) by tv
File size: 1417 byte(s)
imported package perl-Getopt-Auto
1 %define upstream_name Getopt-Auto
2 %define upstream_version 2.0
3
4 Name: perl-%{upstream_name}
5 Version: %perl_convert_version %{upstream_version}
6 Release: %mkrel 1
7
8 Summary: Option framework for command-line applications
9 License: GPL+ or Artistic
10 Group: Development/Perl
11 Url: http://search.cpan.org/dist/%{upstream_name}
12 Source0: http://www.cpan.org/modules/by-module/Getopt/%{upstream_name}-%{upstream_version}.tar.gz
13
14 BuildRequires: perl(ExtUtils::MakeMaker)
15 BuildRequires: perl(File::Basename)
16 BuildRequires: perl(File::Spec)
17 BuildRequires: perl(File::Spec::Functions)
18 BuildRequires: perl(Pod::Usage)
19 BuildRequires: perl(Readonly)
20 BuildRequires: perl(Test::More)
21 BuildRequires: perl(Test::Output)
22 BuildRequires: perl(Module::Build::Compat)
23 BuildArch: noarch
24
25 %description
26 'Getopt::Auto' provides an easy way to organize a script to handle whatever
27 option mechanism it requires.
28
29 For each option '--foo' you provide a subroutine 'sub foo{...}'. The sub is
30 called every time '--foo' appears on the command line. Values for the
31 option are taken from '@ARGV'.
32
33 If you don't provide a subroutine for '--foo', then '$options{'--foo'}' is
34 set.
35
36 %prep
37 %setup -q -n %{upstream_name}-%{upstream_version}
38
39 %build
40 %{__perl} Makefile.PL INSTALLDIRS=vendor
41
42 %make
43
44 %check
45 %make test
46
47 %install
48 %makeinstall_std
49
50 %files
51 %doc META.json Changes META.yml README
52 %{_mandir}/man3/*
53 %perl_vendorlib/*
54
55

  ViewVC Help
Powered by ViewVC 1.1.28