commit 55d83ee4b56753cec5a4468b3aa24163c5dfc51d Author: MSVSphere Packaging Team Date: Wed Jan 10 02:39:57 2024 +0300 import perl-Mason-Tidy-2.57-24.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f9f2fda --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Mason-Tidy-2.57.tar.gz diff --git a/.perl-Mason-Tidy.metadata b/.perl-Mason-Tidy.metadata new file mode 100644 index 0000000..b08ecbf --- /dev/null +++ b/.perl-Mason-Tidy.metadata @@ -0,0 +1 @@ +2c366d6d3fc11901183eb1e5ee8c337eccabbcaa SOURCES/Mason-Tidy-2.57.tar.gz diff --git a/SOURCES/Mason-Tidy-2.57-Adapt-to-changes-in-Perl-Tidy-20180219.patch b/SOURCES/Mason-Tidy-2.57-Adapt-to-changes-in-Perl-Tidy-20180219.patch new file mode 100644 index 0000000..4d16912 --- /dev/null +++ b/SOURCES/Mason-Tidy-2.57-Adapt-to-changes-in-Perl-Tidy-20180219.patch @@ -0,0 +1,48 @@ +From ec0b4db5046f56f1f5c8e68523e464ce28d6e377 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Tue, 27 Feb 2018 17:34:10 +0100 +Subject: [PATCH] Adapt to changes in Perl-Tidy-20180219 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Perl-Tidy-20180219 corrected inserting semicolons after a last +statement of a block. That break Mason-Tidy CLI.t tests like this: + + # Failed test 'no options' + # at /builddir/build/BUILD/Mason-Tidy-2.57/blib/lib/Mason/Tidy/t/CLI.pm line 44. + # (in Mason::Tidy::t::CLI->test_cli) + # got: '% if (foo) { + # % bar; + # % } + # ' + # expected: '% if (foo) { + # % bar + # % } + # ' + +This patch makes sure the simicolon is not inserted. + +CPAN RT#124604 + +Signed-off-by: Petr Písař +--- + lib/Mason/Tidy.pm | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/Mason/Tidy.pm b/lib/Mason/Tidy.pm +index 0cdc7d2..4b60076 100644 +--- a/lib/Mason/Tidy.pm ++++ b/lib/Mason/Tidy.pm +@@ -158,7 +158,7 @@ method tidy_method ($source) { + $self->perltidy( + source => \$untidied_perl, + destination => \my $tidied_perl, +- argv => $self->perltidy_line_argv . " -fnl -fbl", ++ argv => $self->perltidy_line_argv . " -fnl -fbl -nasc ", + ); + $tidied_perl =~ s/^{\n//; + $tidied_perl =~ s/}\n$//; +-- +2.13.6 + diff --git a/SOURCES/perl-Mason-Tidy.rpmlintrc b/SOURCES/perl-Mason-Tidy.rpmlintrc new file mode 100644 index 0000000..795601d --- /dev/null +++ b/SOURCES/perl-Mason-Tidy.rpmlintrc @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* (masontidy|perltidy)"); diff --git a/SPECS/perl-Mason-Tidy.spec b/SPECS/perl-Mason-Tidy.spec new file mode 100644 index 0000000..bbd1582 --- /dev/null +++ b/SPECS/perl-Mason-Tidy.spec @@ -0,0 +1,145 @@ +Name: perl-Mason-Tidy +Version: 2.57 +Release: 24%{?dist} +Summary: Tidy HTML::Mason/Mason components +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/Mason-Tidy +Source0: https://cpan.metacpan.org/authors/id/J/JS/JSWARTZ/Mason-Tidy-%{version}.tar.gz +# Adapt to changes in Perl-Tidy-20180219, bug #1549515, CPAN RT#124604 +Patch0: Mason-Tidy-2.57-Adapt-to-changes-in-Perl-Tidy-20180219.patch +BuildArch: noarch +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time +BuildRequires: perl(Capture::Tiny) +BuildRequires: perl(Config) +BuildRequires: perl(File::Slurp) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Getopt::Long) +# IPC::Run3 not required for tests +BuildRequires: perl(IPC::System::Simple) +BuildRequires: perl(Method::Signatures::Simple) >= 1.02 +BuildRequires: perl(Moo) >= 0.0091010 +BuildRequires: perl(Perl::Tidy) +BuildRequires: perl(Test::Class) +BuildRequires: perl(Test::Class::Most) +# Tests +BuildRequires: perl(Test::More) +Requires: perl(Method::Signatures::Simple) >= 1.02 +Requires: perl(Moo) >= 0.0091010 + +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Moo\\)\\s*$ +%global __requires_exclude %__requires_exclude|^perl\\(Method::Signatures::Simple\\)\\s*$ + +%description +Mason::Tidy is the engine used by masontidy. You can call this API from +your own program instead of executing masontidy. + +masontidy tidies Mason 1 and Mason 2 components, using perltidy to format +the Perl code that can be embedded in various places in the component. +masontidy does not (yet) attempt to tidy the HTML or other non-Perl content +in a component. + +%prep +%setup -q -n Mason-Tidy-%{version} +%patch0 -p1 + +%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 +%license LICENSE +%doc Changes README +%{_bindir}/masontidy +%{perl_vendorlib}/* +%{_mandir}/man1/* +%{_mandir}/man3/* +%exclude %{perl_vendorlib}/Mason/Tidy/t + +%changelog +* Wed Jan 10 2024 MSVSphere Packaging Team - 2.57-24 +- Rebuilt for MSVSphere 9.3 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.57-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 2.57-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jun 01 2022 Jitka Plesnikova - 2.57-22 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 2.57-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 2.57-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 2.57-19 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 2.57-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 2.57-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 23 2020 Jitka Plesnikova - 2.57-16 +- Perl 5.32 rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 2.57-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 2.57-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri May 31 2019 Jitka Plesnikova - 2.57-13 +- Perl 5.30 rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 2.57-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 2.57-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 28 2018 Jitka Plesnikova - 2.57-10 +- Perl 5.28 rebuild + +* Tue Feb 27 2018 Petr Pisar - 2.57-9 +- Adapt to changes in Perl-Tidy-20180219 (bug #1549515) + +* Thu Feb 08 2018 Fedora Release Engineering - 2.57-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 2.57-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jun 05 2017 Jitka Plesnikova - 2.57-6 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 2.57-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon May 16 2016 Jitka Plesnikova - 2.57-4 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 2.57-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Dec 09 2015 Jitka Plesnikova - 2.57-2 +- Exclude test modules + +* Thu Nov 26 2015 Jitka Plesnikova - 2.57-1 +- Specfile autogenerated by cpanspec 1.78.