Package init
This commit is contained in:
commit
209665d863
54
Filter-Simple-0.94-Upgrade-to-0.95.patch
Normal file
54
Filter-Simple-0.94-Upgrade-to-0.95.patch
Normal file
@ -0,0 +1,54 @@
|
||||
From 593fb3d6c0fcff266729d1d497d931e7e3ad9a83 Mon Sep 17 00:00:00 2001
|
||||
From: Jitka Plesnikova <jplesnik@redhat.com>
|
||||
Date: Thu, 24 May 2018 10:20:55 +0200
|
||||
Subject: [PATCH] Upgrade to 0.95
|
||||
|
||||
---
|
||||
lib/Filter/Simple.pm | 6 ++----
|
||||
t/no.t | 13 +++++++++++++
|
||||
2 files changed, 15 insertions(+), 4 deletions(-)
|
||||
create mode 100644 t/no.t
|
||||
|
||||
diff --git a/lib/Filter/Simple.pm b/lib/Filter/Simple.pm
|
||||
index 082fe95..1dcf3c8 100644
|
||||
--- a/lib/Filter/Simple.pm
|
||||
+++ b/lib/Filter/Simple.pm
|
||||
@@ -2,14 +2,12 @@ package Filter::Simple;
|
||||
|
||||
use Text::Balanced ':ALL';
|
||||
|
||||
-use vars qw{ $VERSION @EXPORT };
|
||||
-
|
||||
-$VERSION = '0.94';
|
||||
+our $VERSION = '0.95';
|
||||
|
||||
use Filter::Util::Call;
|
||||
use Carp;
|
||||
|
||||
-@EXPORT = qw( FILTER FILTER_ONLY );
|
||||
+our @EXPORT = qw( FILTER FILTER_ONLY );
|
||||
|
||||
|
||||
sub import {
|
||||
diff --git a/t/no.t b/t/no.t
|
||||
new file mode 100644
|
||||
index 0000000..8980eae
|
||||
--- /dev/null
|
||||
+++ b/t/no.t
|
||||
@@ -0,0 +1,13 @@
|
||||
+BEGIN {
|
||||
+ unshift @INC, 't/lib/';
|
||||
+}
|
||||
+
|
||||
+print "1..2\n";
|
||||
+
|
||||
+use Filter::Simple::FilterTest qr/ok/ => "not ok", pass => "fail";
|
||||
+no Filter::Simple::FilterTest;
|
||||
+
|
||||
+sub pass { print "ok ", $_[0], "\n" }
|
||||
+
|
||||
+print "ok 1\n";
|
||||
+("pa"."ss")->(2);
|
||||
--
|
||||
2.14.3
|
||||
|
||||
BIN
Filter-Simple-0.94.tar.gz
Normal file
BIN
Filter-Simple-0.94.tar.gz
Normal file
Binary file not shown.
58
perl-Filter-Simple.spec
Normal file
58
perl-Filter-Simple.spec
Normal file
@ -0,0 +1,58 @@
|
||||
%global src_package Filter-Simple-0.94
|
||||
Name: perl-Filter-Simple
|
||||
Version: 0.95
|
||||
Release: 418
|
||||
Summary: Simplified Perl source filtering
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Filter-Simple
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SM/SMUELLER/%{src_package}.tar.gz
|
||||
BuildArch: noarch
|
||||
Patch0: Filter-Simple-0.94-Upgrade-to-0.95.patch
|
||||
|
||||
BuildRequires: make perl-generators perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(strict) perl(Carp)
|
||||
BuildRequires: perl(Filter::Util::Call)
|
||||
BuildRequires: perl(Text::Balanced) >= 1.97
|
||||
BuildRequires: perl(vars) perl(warnings) perl(Exporter) perl(parent)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Text::Balanced) >= 1.97
|
||||
Requires: perl(warnings)
|
||||
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Text::Balanced\\)$
|
||||
|
||||
%description
|
||||
The Filter::Simple Perl module provides a simplified interface to
|
||||
Filter::Util::Call; one that is sufficient for most common cases.
|
||||
|
||||
%package help
|
||||
BuildArch: noarch
|
||||
Summary: Document for the Filter::Simple
|
||||
|
||||
%description help
|
||||
Document for the Filter::Simple Perl module
|
||||
|
||||
%prep
|
||||
%autosetup -n %{src_package} -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
%make_build
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%{perl_vendorlib}/*
|
||||
|
||||
%files help
|
||||
%doc Changes README
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.95-418
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user