[perl-App-a2p] Initial import
Jitka Plesnikova
jplesnik at fedoraproject.org
Tue Jun 24 06:18:38 UTC 2014
commit 62aabfe34796e34a34a72d073d84e40d89f53904
Author: Jitka Plesnikova <jplesnik at redhat.com>
Date: Tue Jun 24 08:18:16 2014 +0200
Initial import
.gitignore | 1 +
App-a2p-1.007-Remove-alarm-call-from-test.patch | 12 +++++
perl-App-a2p.spec | 53 +++++++++++++++++++++++
sources | 1 +
4 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5526551 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/App-a2p-1.007.tar.gz
diff --git a/App-a2p-1.007-Remove-alarm-call-from-test.patch b/App-a2p-1.007-Remove-alarm-call-from-test.patch
new file mode 100644
index 0000000..9591a24
--- /dev/null
+++ b/App-a2p-1.007-Remove-alarm-call-from-test.patch
@@ -0,0 +1,12 @@
+diff -up App-a2p-1.007/t/10-basics.t.orig App-a2p-1.007/t/10-basics.t
+--- App-a2p-1.007/t/10-basics.t.orig 2014-06-23 16:41:12.031654029 +0200
++++ App-a2p-1.007/t/10-basics.t 2014-06-23 16:41:18.611717590 +0200
+@@ -11,8 +11,6 @@ use IPC::Open2;
+ use File::Spec::Functions 'catfile';
+ use File::Temp 'tempdir';
+
+-alarm 5;
+-
+ sub spew {
+ my ($filename, $content) = @_;
+ open my $fh, '>', $filename or die "Couldn't open $filename: $!";
diff --git a/perl-App-a2p.spec b/perl-App-a2p.spec
new file mode 100644
index 0000000..17f6105
--- /dev/null
+++ b/perl-App-a2p.spec
@@ -0,0 +1,53 @@
+Name: perl-App-a2p
+Version: 1.007
+Release: 1%{?dist}
+Summary: Awk to Perl translator
+License: GPL+ or Artistic
+Group: Development/Tools
+URL: http://search.cpan.org/dist/App-a2p/
+Source0: http://www.cpan.org/authors/id/L/LE/LEONT/App-a2p-%{version}.tar.gz
+Patch0: App-a2p-1.007-Remove-alarm-call-from-test.patch
+BuildRequires: perl
+BuildRequires: perl(Config)
+BuildRequires: perl(Devel::FindPerl)
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
+BuildRequires: perl(File::Spec::Functions)
+BuildRequires: perl(File::Temp)
+BuildRequires: perl(IPC::Open2)
+BuildRequires: perl(strict)
+BuildRequires: perl(Test::More) >= 0.89
+BuildRequires: perl(warnings)
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+Conflicts: perl < 4:5.18.2-300
+
+%description
+This package delivers a2p tool which takes an awk script specified on the
+command line and produces a comparable Perl script.
+
+%prep
+%setup -q -n App-a2p-%{version}
+%patch0 -p1
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes LICENSE README
+%{_bindir}/*
+%{perl_vendorlib}/*
+%{_mandir}/man1/*
+
+%changelog
+* Thu Jun 19 2014 Jitka Plesnikova <jplesnik at redhat.com> - 1.007-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..1b706d5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7626c175024931f2153e16f2a5edf858 App-a2p-1.007.tar.gz
More information about the scm-commits
mailing list