diff --git a/.gitignore b/.gitignore index 6e71f68..d39cb6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /Perl-Tidy-Sweetened-1.05.tar.gz /Perl-Tidy-Sweetened-1.07.tar.gz +/Perl-Tidy-Sweetened-1.10.tar.gz diff --git a/Perl-Tidy-Sweetened-1.07-Fix-test-for-new-perltidy.patch b/Perl-Tidy-Sweetened-1.07-Fix-test-for-new-perltidy.patch deleted file mode 100644 index b311208..0000000 --- a/Perl-Tidy-Sweetened-1.07-Fix-test-for-new-perltidy.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -up Perl-Tidy-Sweetened-1.07/t/perl-signatures.t.orig Perl-Tidy-Sweetened-1.07/t/perl-signatures.t ---- Perl-Tidy-Sweetened-1.07/t/perl-signatures.t.orig 2016-03-11 10:36:19.809540565 +0100 -+++ Perl-Tidy-Sweetened-1.07/t/perl-signatures.t 2016-03-11 10:37:35.533205735 +0100 -@@ -73,13 +73,13 @@ sub foo($x, $y={}){ | sub foo - - ==== 5.20 annoymous sub =============================================== - $j->map( | $j->map( -- sub($x,$ = 0) { | sub($x,$ = 0) { -+ sub($x,$ = 0) { | sub ( $x, $ = 0 ) { - $x->method(); | $x->method(); - } | } - ); | ); - - ==== 5.20 annoymous sub 2 =============================================== --my $x = sub($x,$ = 0) { | my $x = sub($x,$ = 0) { -+my $x = sub($x,$ = 0) { | my $x = sub ( $x, $ = 0 ) { - $x->method(); | $x->method(); - }; | }; - diff --git a/perl-Perl-Tidy-Sweetened.spec b/perl-Perl-Tidy-Sweetened.spec index 0cfc1b8..ecbe01d 100644 --- a/perl-Perl-Tidy-Sweetened.spec +++ b/perl-Perl-Tidy-Sweetened.spec @@ -1,21 +1,23 @@ Name: perl-Perl-Tidy-Sweetened -Version: 1.07 -Release: 3%{?dist} +Version: 1.10 +Release: 1%{?dist} Summary: Tweaks to Perl::Tidy to support some syntactic sugar License: GPL+ or Artistic URL: http://search.cpan.org/dist/Perl-Tidy-Sweetened/ Source0: http://www.cpan.org/authors/id/M/MG/MGRIMES/Perl-Tidy-Sweetened-%{version}.tar.gz -Patch0: Perl-Tidy-Sweetened-1.07-Fix-test-for-new-perltidy.patch BuildArch: noarch BuildRequires: perl -BuildRequires: perl(Module::Build) +BuildRequires: perl(Module::Build::Tiny) >= 0.034 # Run-time +BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(Perl::Tidy) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Tests +BuildRequires: perl(Exporter) BuildRequires: perl(lib) +BuildRequires: perl(Test::More) BuildRequires: perl(Test::Most) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) @@ -28,14 +30,13 @@ come to rely on. This module attempts to work around those issues. %prep %setup -q -n Perl-Tidy-Sweetened-%{version} -%patch0 -p1 %build -perl Build.PL installdirs=vendor +perl Build.PL --installdirs=vendor ./Build %install -./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 %{_fixperms} $RPM_BUILD_ROOT/* %check @@ -43,13 +44,16 @@ perl Build.PL installdirs=vendor %files %license LICENSE -%doc Changes README TODO +%doc Changes TODO %{_bindir}/* %{perl_vendorlib}/* %{_mandir}/man1/* %{_mandir}/man3/* %changelog +* Mon Mar 14 2016 Jitka Plesnikova - 1.10-1 +- 1.10 bump + * Fri Mar 11 2016 Jitka Plesnikova - 1.07-3 - Fix test to work against perltidy-20160302 (bug #1314800) diff --git a/sources b/sources index fe9dd88..b41364f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d8b3fdae166697361cb7ba97d120c060 Perl-Tidy-Sweetened-1.07.tar.gz +ee0cc248af784243ac8ca049ed379e40 Perl-Tidy-Sweetened-1.10.tar.gz