|
|
@ -1,11 +1,10 @@
|
|
|
|
Name: perltidy
|
|
|
|
Name: perltidy
|
|
|
|
Version: 20180220
|
|
|
|
Version: 20181120
|
|
|
|
Release: 3%{?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: GPLv2+
|
|
|
|
URL: http://perltidy.sourceforge.net/
|
|
|
|
URL: http://perltidy.sourceforge.net/
|
|
|
|
Source0: https://cpan.metacpan.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,6 +19,7 @@ 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(Exporter)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
@ -27,7 +27,9 @@ 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(Pod::Html)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
@ -38,6 +40,8 @@ BuildRequires: perl(utf8)
|
|
|
|
# Runtime
|
|
|
|
# Runtime
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
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}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
@ -54,17 +58,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 {} \;
|
|
|
@ -87,13 +85,19 @@ make test
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%doc COPYING
|
|
|
|
%doc COPYING
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%doc BUGS CHANGES README TODO docs/ examples/
|
|
|
|
%doc BUGS.md CHANGES.md README.md 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*
|
|
|
|
|
|
|
|
%{_mandir}/man3/Perl::Tidy::Formatter.3*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* 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
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20180220-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|