|
|
c87c74a |
Name: perl-Perl-Tidy-Sweetened
|
|
|
e1f7145 |
Version: 1.20
|
|
|
ab42cec |
Release: 2%{?dist}
|
|
|
c87c74a |
Summary: Tweaks to Perl::Tidy to support some syntactic sugar
|
|
|
655b244 |
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
310a270 |
URL: https://metacpan.org/release/Perl-Tidy-Sweetened
|
|
|
310a270 |
Source0: https://cpan.metacpan.org/authors/id/M/MG/MGRIMES/Perl-Tidy-Sweetened-%{version}.tar.gz
|
|
|
c87c74a |
BuildArch: noarch
|
|
|
9206a9b |
BuildRequires: coreutils
|
|
|
35c969d |
BuildRequires: perl-generators
|
|
|
f0a3e52 |
BuildRequires: perl-interpreter
|
|
|
7c6bca7 |
BuildRequires: perl(Config)
|
|
|
1013a3c |
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
|
|
c87c74a |
# Run-time
|
|
|
1013a3c |
BuildRequires: perl(base)
|
|
|
c87c74a |
BuildRequires: perl(Carp)
|
|
|
e1f7145 |
BuildRequires: perl(Perl::Tidy) >= 20230309
|
|
|
c87c74a |
BuildRequires: perl(strict)
|
|
|
c87c74a |
BuildRequires: perl(warnings)
|
|
|
c87c74a |
# Tests
|
|
|
1013a3c |
BuildRequires: perl(Exporter)
|
|
|
c87c74a |
BuildRequires: perl(lib)
|
|
|
1013a3c |
BuildRequires: perl(Test::More)
|
|
|
c87c74a |
BuildRequires: perl(Test::Most)
|
|
|
e1f7145 |
Requires: perl(Perl::Tidy) >= 20230309
|
|
|
7c6bca7 |
|
|
|
7c6bca7 |
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Perl::Tidy\\)
|
|
|
7c6bca7 |
# Filter modules bundled for tests
|
|
|
7c6bca7 |
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
|
|
7c6bca7 |
%global __requires_exclude %{__requires_exclude}|^perl\\(TidierTests\\)
|
|
|
c87c74a |
|
|
|
c87c74a |
%description
|
|
|
c87c74a |
There are a number of modules on CPAN that allow users to write their
|
|
|
c87c74a |
classes with a more "modern" syntax. These tools eliminate the need to
|
|
|
c87c74a |
shift off $self, can support type checking and offer other improvements.
|
|
|
c87c74a |
Unfortunately, they can break the support tools that the Perl community has
|
|
|
c87c74a |
come to rely on. This module attempts to work around those issues.
|
|
|
c87c74a |
|
|
|
7c6bca7 |
%package tests
|
|
|
7c6bca7 |
Summary: Tests for %{name}
|
|
|
7c6bca7 |
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
7c6bca7 |
Requires: perl-Test-Harness
|
|
|
7c6bca7 |
|
|
|
7c6bca7 |
%description tests
|
|
|
7c6bca7 |
Tests from %{name}. Execute them
|
|
|
7c6bca7 |
with "%{_libexecdir}/%{name}/test".
|
|
|
7c6bca7 |
|
|
|
c87c74a |
%prep
|
|
|
c87c74a |
%setup -q -n Perl-Tidy-Sweetened-%{version}
|
|
|
c87c74a |
|
|
|
7c6bca7 |
# Help generators to recognize Perl scripts
|
|
|
7c6bca7 |
for F in `find t -name *.t`; do
|
|
|
7c6bca7 |
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
7c6bca7 |
chmod +x "$F"
|
|
|
7c6bca7 |
done
|
|
|
7c6bca7 |
|
|
|
c87c74a |
%build
|
|
|
1013a3c |
perl Build.PL --installdirs=vendor
|
|
|
c87c74a |
./Build
|
|
|
c87c74a |
|
|
|
c87c74a |
%install
|
|
|
7c6bca7 |
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
|
7c6bca7 |
%{_fixperms} %{buildroot}/*
|
|
|
7c6bca7 |
|
|
|
7c6bca7 |
# Install tests
|
|
|
7c6bca7 |
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
7c6bca7 |
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
7c6bca7 |
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
7c6bca7 |
#!/bin/sh
|
|
|
7c6bca7 |
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
7c6bca7 |
EOF
|
|
|
7c6bca7 |
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
c87c74a |
|
|
|
c87c74a |
%check
|
|
|
c87c74a |
./Build test
|
|
|
c87c74a |
|
|
|
c87c74a |
%files
|
|
|
f201659 |
%license LICENSE
|
|
|
ae8ae61 |
%doc Changes README TODO
|
|
|
7c6bca7 |
%{_bindir}/perltid*
|
|
|
7c6bca7 |
%{perl_vendorlib}/Perl*
|
|
|
7c6bca7 |
%{_mandir}/man1/perltid*
|
|
|
7c6bca7 |
%{_mandir}/man3/Perl::Tidy::Sweet*
|
|
|
7c6bca7 |
|
|
|
7c6bca7 |
%files tests
|
|
|
7c6bca7 |
%{_libexecdir}/%{name}
|
|
|
c87c74a |
|
|
|
c87c74a |
%changelog
|
|
|
ab42cec |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-2
|
|
|
ab42cec |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
ab42cec |
|
|
|
e1f7145 |
* Wed Apr 19 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.20-1
|
|
|
e1f7145 |
- 1.20 bump
|
|
|
e1f7145 |
|
|
|
7c6bca7 |
* Tue Apr 18 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.19-1
|
|
|
7c6bca7 |
- 1.19 bump
|
|
|
7c6bca7 |
- Package tests
|
|
|
7c6bca7 |
|
|
|
302a9e3 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-7
|
|
|
302a9e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
302a9e3 |
|
|
|
721f5d3 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-6
|
|
|
721f5d3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
721f5d3 |
|
|
|
55ed236 |
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.18-5
|
|
|
55ed236 |
- Perl 5.36 rebuild
|
|
|
55ed236 |
|
|
|
259926d |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-4
|
|
|
259926d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
259926d |
|
|
|
eaa31e5 |
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-3
|
|
|
eaa31e5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
eaa31e5 |
|
|
|
5f459aa |
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.18-2
|
|
|
5f459aa |
- Perl 5.34 rebuild
|
|
|
5f459aa |
|
|
|
9206a9b |
* Sun Jan 31 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.18-1
|
|
|
9206a9b |
- 1.18 bump
|
|
|
9206a9b |
|
|
|
74c2d15 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.17-2
|
|
|
74c2d15 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
74c2d15 |
|
|
|
32c65ec |
* Mon Jan 25 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.17-1
|
|
|
32c65ec |
- 1.17 bump
|
|
|
32c65ec |
|
|
|
43eb509 |
* Thu Oct 22 2020 Petr Pisar <ppisar@redhat.com> - 1.16-4
|
|
|
43eb509 |
- Adjust tests to Perl-Tidy-20200907 (bug #1879947)
|
|
|
43eb509 |
|
|
|
9d793f4 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-3
|
|
|
9d793f4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
9d793f4 |
|
|
|
7795113 |
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.16-2
|
|
|
7795113 |
- Perl 5.32 rebuild
|
|
|
7795113 |
|
|
|
83050e3 |
* Tue Apr 14 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.16-1
|
|
|
83050e3 |
- 1.16 bump
|
|
|
83050e3 |
|
|
|
d810c9d |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-5
|
|
|
d810c9d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
d810c9d |
|
|
|
cb693e6 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-4
|
|
|
cb693e6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
cb693e6 |
|
|
|
430b657 |
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.15-3
|
|
|
430b657 |
- Perl 5.30 rebuild
|
|
|
430b657 |
|
|
|
5c17feb |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-2
|
|
|
5c17feb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
5c17feb |
|
|
|
872134a |
* Wed Aug 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.15-1
|
|
|
872134a |
- 1.15 bump
|
|
|
872134a |
|
|
|
1e286ed |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-3
|
|
|
1e286ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
1e286ed |
|
|
|
68db3b9 |
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.14-2
|
|
|
68db3b9 |
- Perl 5.28 rebuild
|
|
|
68db3b9 |
|
|
|
f0a3e52 |
* Thu Mar 29 2018 Petr Pisar <ppisar@redhat.com> - 1.14-1
|
|
|
f0a3e52 |
- 1.14 bump
|
|
|
f0a3e52 |
|
|
|
ce871f4 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-5
|
|
|
ce871f4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
ce871f4 |
|
|
|
81d3e82 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-4
|
|
|
81d3e82 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
81d3e82 |
|
|
|
7e25729 |
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.12-3
|
|
|
7e25729 |
- Perl 5.26 rebuild
|
|
|
7e25729 |
|
|
|
2512d2d |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-2
|
|
|
2512d2d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
2512d2d |
|
|
|
ae8ae61 |
* Thu Oct 06 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.12-1
|
|
|
ae8ae61 |
- 1.12 bump
|
|
|
ae8ae61 |
|
|
|
9ebb0bf |
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.11-2
|
|
|
9ebb0bf |
- Perl 5.24 rebuild
|
|
|
9ebb0bf |
|
|
|
35c969d |
* Mon Apr 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.11-1
|
|
|
35c969d |
- 1.11 bump
|
|
|
35c969d |
|
|
|
1013a3c |
* Mon Mar 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-1
|
|
|
1013a3c |
- 1.10 bump
|
|
|
1013a3c |
|
|
|
884514c |
* Fri Mar 11 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-3
|
|
|
884514c |
- Fix test to work against perltidy-20160302 (bug #1314800)
|
|
|
884514c |
|
|
|
706a9d1 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-2
|
|
|
706a9d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
706a9d1 |
|
|
|
f201659 |
* Thu Jan 28 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-1
|
|
|
f201659 |
- 1.07 bump
|
|
|
f201659 |
|
|
|
c87c74a |
* Fri Nov 27 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.05-1
|
|
|
c87c74a |
- Initial release
|