From 8a90e84ac188dc03539d94b552dd0b4e02494d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corse...@fedoraproject.org> Date: Wed, 8 Feb 2017 19:47:10 +0100 Subject: Initial import
--- .gitignore | 1 + perl-Sub-Exporter-Lexical.spec | 61 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+) create mode 100644 perl-Sub-Exporter-Lexical.spec diff --git a/.gitignore b/.gitignore index e69de29..ed20de1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Sub-Exporter-Lexical-0.092292.tar.gz diff --git a/perl-Sub-Exporter-Lexical.spec b/perl-Sub-Exporter-Lexical.spec new file mode 100644 index 0000000..42d8291 --- /dev/null +++ b/perl-Sub-Exporter-Lexical.spec @@ -0,0 +1,61 @@ +Name: perl-Sub-Exporter-Lexical +Version: 0.092292 +Release: 2%{?dist} +Summary: Export lexically-available subs with Sub::Exporter +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Sub-Exporter-Lexical/ +Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Sub-Exporter-Lexical-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: %{__perl} +BuildRequires: %{__make} + +BuildRequires: perl >= 1:v5.12.0 +BuildRequires: perl-generators + +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(Lexical::Sub) +BuildRequires: perl(Sub::Exporter) >= 0.978 +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(warnings) +BuildRequires: perl(lib) +BuildRequires: perl(strict) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Sub::Exporter::Lexical provides an alternate installer for Sub::Exporter. +Installers are documented in Sub::Exporter's documentation; all you need to +know is that by using Sub::Exporter::Lexical's installer, you can import +routines into a lexical scope that will be cleaned up when that scope ends. + +%prep +%setup -q -n Sub-Exporter-Lexical-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +%{__make} %{?_smp_mflags} + +%install +%{__make} pure_install DESTDIR=$RPM_BUILD_ROOT + +# Bogusly installed script +rm $RPM_BUILD_ROOT%{perl_vendorlib}/Sub/Exporter/snippet.pl + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +%{__make} test + +%files +%doc Changes README +%license LICENSE +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Feb 08 2017 Ralf Corsépius <corse...@fedoraproject.org> - 0.092292-2 +- Reflect feedback from package review. + +* Fri Feb 03 2017 Ralf Corsépius <corse...@fedoraproject.org> - 0.092292-1 +- Initial Fedora package. diff --git a/sources b/sources index e69de29..aca4047 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (Sub-Exporter-Lexical-0.092292.tar.gz) = 293ab9db2e5baf186cb8333d4dd91c5cbf2dc1fee0bd00a75054f8a3713b86b2ae4076cfc20d3ef30db6e990c0cd8bfae365334d8a6d3c612ca2da836b3e41eb -- cgit v1.1 https://src.fedoraproject.org/cgit/perl-Sub-Exporter-Lexical.git/commit/?h=f24&id=8a90e84ac188dc03539d94b552dd0b4e02494d0f _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org