|
|
@ -1,11 +1,10 @@
|
|
|
|
Name: perltidy
|
|
|
|
Name: perltidy
|
|
|
|
Version: 20180220
|
|
|
|
Version: 20230309
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Tool for indenting and re-formatting Perl scripts
|
|
|
|
Summary: Tool for indenting and re-formatting Perl scripts
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
URL: http://perltidy.sourceforge.net/
|
|
|
|
URL: http://perltidy.sourceforge.net/
|
|
|
|
Source0: http://www.cpan.org/modules/by-module/Perl/Perl-Tidy-%{version}.tar.gz
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Perl/Perl-Tidy-%{version}.tar.gz
|
|
|
|
Patch0: Perl-Tidy-utf8.patch
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
# Module Build
|
|
|
|
# Module Build
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: coreutils
|
|
|
@ -20,26 +19,39 @@ BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
|
|
|
|
BuildRequires: perl(Digest::MD5)
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
|
|
|
|
BuildRequires: perl(English)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
BuildRequires: perl(File::Copy)
|
|
|
|
BuildRequires: perl(File::Copy)
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
|
|
|
|
BuildRequires: perl(HTML::Entities)
|
|
|
|
BuildRequires: perl(IO::File)
|
|
|
|
BuildRequires: perl(IO::File)
|
|
|
|
|
|
|
|
BuildRequires: perl(List::Util)
|
|
|
|
|
|
|
|
BuildRequires: perl(Pod::Html)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Test Suite
|
|
|
|
# Test Suite
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
BuildRequires: perl(Test)
|
|
|
|
BuildRequires: perl(Test)
|
|
|
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
# Runtime
|
|
|
|
# Runtime
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
Requires: perl(File::Spec)
|
|
|
|
Requires: perl(File::Spec)
|
|
|
|
|
|
|
|
Requires: perl(HTML::Entities)
|
|
|
|
|
|
|
|
Requires: perl(Pod::Html)
|
|
|
|
Provides: perl-Perl-Tidy = %{version}-%{release}
|
|
|
|
Provides: perl-Perl-Tidy = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# EL-7's dependency generator picks up things from documentation that it shouldn't do,
|
|
|
|
|
|
|
|
# though strangely the one in F-19 does not, despite both being rpm 4.11.3
|
|
|
|
|
|
|
|
%if 0%{?el7}
|
|
|
|
|
|
|
|
%global __requires_exclude ^perl[(]([*]?[{}]|[)])?[)]
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Perltidy is a Perl script that indents and re-formats Perl scripts to
|
|
|
|
Perltidy is a Perl script that indents and re-formats Perl scripts to
|
|
|
|
make them easier to read. If you write Perl scripts, or spend much
|
|
|
|
make them easier to read. If you write Perl scripts, or spend much
|
|
|
@ -54,17 +66,11 @@ because it is very good at localizing errors.
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n Perl-Tidy-%{version}
|
|
|
|
%setup -q -n Perl-Tidy-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
# Re-format documentation as UTF-8
|
|
|
|
|
|
|
|
%patch0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Don't need Windows batch file
|
|
|
|
# Don't need Windows batch file
|
|
|
|
rm examples/pt.bat
|
|
|
|
rm examples/pt.bat
|
|
|
|
|
|
|
|
|
|
|
|
# We'll ship the perltidy manpage in %%{_mandir} so we don't need another copy
|
|
|
|
|
|
|
|
rm docs/perltidy.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Quieten complaints about missing files
|
|
|
|
# Quieten complaints about missing files
|
|
|
|
sed -i -e '/^examples\/pt\.bat/d; /^docs\/perltidy\.1/d' MANIFEST
|
|
|
|
sed -i -e '/^examples\/pt\.bat/d' MANIFEST
|
|
|
|
|
|
|
|
|
|
|
|
# Remove unwanted exec permissions
|
|
|
|
# Remove unwanted exec permissions
|
|
|
|
find examples/ lib/ -type f -perm /a+x -exec chmod -c -x {} \;
|
|
|
|
find examples/ lib/ -type f -perm /a+x -exec chmod -c -x {} \;
|
|
|
@ -82,18 +88,134 @@ find %{buildroot} -type f -name .packlist -delete
|
|
|
|
make test
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%if 0%{?_licensedir:1}
|
|
|
|
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
%else
|
|
|
|
%doc BUGS.md CHANGES.md README.md docs/ examples/
|
|
|
|
%doc COPYING
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%doc BUGS CHANGES README TODO docs/ examples/
|
|
|
|
|
|
|
|
%{_bindir}/perltidy
|
|
|
|
%{_bindir}/perltidy
|
|
|
|
%{perl_vendorlib}/Perl/
|
|
|
|
%{perl_vendorlib}/Perl/
|
|
|
|
%{_mandir}/man1/perltidy.1*
|
|
|
|
%{_mandir}/man1/perltidy.1*
|
|
|
|
%{_mandir}/man3/Perl::Tidy.3*
|
|
|
|
%{_mandir}/man3/Perl::Tidy.3*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu Mar 9 2023 Paul Howarth <paul@city-fan.org> - 20230309-1
|
|
|
|
|
|
|
|
- Update to 20230309 (see CHANGES.md for details) (rhbz#2176557)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20221112-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Nov 11 2022 Paul Howarth <paul@city-fan.org> - 20221112-1
|
|
|
|
|
|
|
|
- Update to 20221112 (rhbz#2142076)
|
|
|
|
|
|
|
|
- Fix undef warning in Perl before 5.12 (CPAN RT#145095)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Nov 10 2022 Paul Howarth <paul@city-fan.org> - 20221111-1
|
|
|
|
|
|
|
|
- Update to 20221111 (see CHANGES.md for details) (rhbz#2141765)
|
|
|
|
|
|
|
|
- Use SPDX-format license tag
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20220613-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Paul Howarth <paul@city-fan.org> - 20220613-1
|
|
|
|
|
|
|
|
- Update to 20220613 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 20220217-2
|
|
|
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 15 2022 Paul Howarth <paul@city-fan.org> - 20220217-1
|
|
|
|
|
|
|
|
- Update to 20220217 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 15 2022 Paul Howarth <paul@city-fan.org> - 20220215-1
|
|
|
|
|
|
|
|
- Update to 20220215 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
- Add workaround for bogus dependencies generated on EL-7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20211029-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 29 2021 Paul Howarth <paul@city-fan.org> - 20211029-1
|
|
|
|
|
|
|
|
- Update to 20211029 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20210717-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 17 2021 Paul Howarth <paul@city-fan.org> - 20210717-1
|
|
|
|
|
|
|
|
- Update to 20210717 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 24 2021 Paul Howarth <paul@city-fan.org> - 20210625-1
|
|
|
|
|
|
|
|
- Update to 20210625 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 20210402-2
|
|
|
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 1 2021 Paul Howarth <paul@city-fan.org> - 20210402-1
|
|
|
|
|
|
|
|
- Update to 20210402 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20210111-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 11 2021 Paul Howarth <paul@city-fan.org> - 20210111-1
|
|
|
|
|
|
|
|
- Update to 20210111 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
- Use %%license unconditionally
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Dec 7 2020 Paul Howarth <paul@city-fan.org> - 20201207-1
|
|
|
|
|
|
|
|
- Update to 20201207 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Dec 3 2020 Paul Howarth <paul@city-fan.org> - 20201202-1
|
|
|
|
|
|
|
|
- Update to 20201202 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Sep 29 2020 Paul Howarth <paul@city-fan.org> - 20201001-1
|
|
|
|
|
|
|
|
- Update to 20201001 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 7 2020 Paul Howarth <paul@city-fan.org> - 20200907-1
|
|
|
|
|
|
|
|
- Update to 20200907 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Aug 22 2020 Paul Howarth <paul@city-fan.org> - 20200822-1
|
|
|
|
|
|
|
|
- Update to 20200822 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20200619-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 20200619-2
|
|
|
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jun 20 2020 Paul Howarth <paul@city-fan.org> - 20200619-1
|
|
|
|
|
|
|
|
- Update to 20200619 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20200110-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 10 2020 Paul Howarth <paul@city-fan.org> - 20200110-1
|
|
|
|
|
|
|
|
- Update to 20200110 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Dec 3 2019 Paul Howarth <paul@city-fan.org> - 20191203-1
|
|
|
|
|
|
|
|
- Update to 20191203 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Sep 15 2019 Paul Howarth <paul@city-fan.org> - 20190915-1
|
|
|
|
|
|
|
|
- Update to 20190915 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20190601-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 04 2019 Jitka Plesnikova <jplesnik@redhat.com> - 20190601-2
|
|
|
|
|
|
|
|
- Perl 5.30 re-rebuild updated packages
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 3 2019 Paul Howarth <paul@city-fan.org> - 20190601-1
|
|
|
|
|
|
|
|
- Update to 20190601 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 20181120-3
|
|
|
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20181120-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 19 2018 Paul Howarth <paul@city-fan.org> - 20181120-1
|
|
|
|
|
|
|
|
- Update to 20181120 (see CHANGES.md for details)
|
|
|
|
|
|
|
|
- Drop UTF-8 patch, no longer needed
|
|
|
|
|
|
|
|
- Text documentation converted to markdown upstream
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20180220-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 20180220-2
|
|
|
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 21 2018 Paul Howarth <paul@city-fan.org> - 20180220-1
|
|
|
|
* Wed Feb 21 2018 Paul Howarth <paul@city-fan.org> - 20180220-1
|
|
|
|
- Update to 20180220
|
|
|
|
- Update to 20180220
|
|
|
|
- Fix index error causing perltidy to fail, resulting in empty files
|
|
|
|
- Fix index error causing perltidy to fail, resulting in empty files
|