[perl-Getopt-Tabular] Initial import (#1165629).

Colin Macdonald cbm at fedoraproject.org
Mon Nov 24 16:56:51 UTC 2014


commit 25f33ffdfdc9a749508bbbd96e0688d3e23c5fbc
Author: Colin B. Macdonald <macdonald at maths.ox.ac.uk>
Date:   Mon Nov 24 16:56:43 2014 +0000

    Initial import (#1165629).

 .gitignore               |    1 +
 perl-Getopt-Tabular.spec |   50 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 52 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e9d46be 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Getopt-Tabular-0.3.tar.gz
diff --git a/perl-Getopt-Tabular.spec b/perl-Getopt-Tabular.spec
new file mode 100644
index 0000000..a3acad3
--- /dev/null
+++ b/perl-Getopt-Tabular.spec
@@ -0,0 +1,50 @@
+Name:           perl-Getopt-Tabular
+Version:        0.3
+Release:        2%{?dist}
+Summary:        Table-driven argument parsing for Perl
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Getopt-Tabular/
+Source0:        http://www.cpan.org/authors/id/G/GW/GWARD/Getopt-Tabular-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+Getopt::Tabular is a Perl module for table-driven argument parsing,
+vaguely inspired by John Ousterhout's Tk_ParseArgv.  All you really need
+to do to use the package is set up a table describing all your command-line
+options, and call &GetOptions.
+
+%prep
+%setup -q -n Getopt-Tabular-%{version}
+sed -i 's#/usr/local/bin/perl5#%{__perl}#' demo
+chmod a-x demo
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes demo README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Wed Nov 19 2014 Colin B. Macdonald <cbm at m.fsf.org> 0.3-2
+- clean-up following review, simplify description.
+
+* Wed Aug 22 2012 Mary Ellen Foster <mefoster at gmail.com> 0.3-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..7993c1f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5b24ed68318a749df3930d25b13dd436  Getopt-Tabular-0.3.tar.gz


More information about the scm-commits mailing list