Update to 20140328

- New upstream release 20140328
  - Fixed CPAN RT#94190 and debian Bug #742004: perltidy.LOG file left behind;
    the problem was caused by the memoization speedup patch in version
    20121207: an unwanted flag was being set, which caused a LOG to be written
    if perltidy was called multiple times
  - New default behavior for LOG files: if the source is from an array or
    string (through a call to the perltidy module) then a LOG output is only
    possible if a logfile stream is specified; this is to prevent unexpected
    perltidy.LOG files
  - Fixed debian Bug #740670, insecure temporary file usage; File::Temp is now
    used to get a temporary file (CVE-2014-2277)
  - Any -b (--backup-and-modify-in-place) flag is silently ignored when a
    source stream, destination stream, or standard output is used; this is
    because the -b flag may have been in a .perltidyrc file and warnings break
    Test::NoWarnings
- Drop upstreamed patch for CVE-2014-2277
- Classify buildreqs by usage
This commit is contained in:
Paul Howarth 2014-03-28 15:31:48 +00:00
parent fa91c831da
commit 8f4ac8b8f5
2 changed files with 38 additions and 16 deletions

View File

@ -1,23 +1,33 @@
Name: perltidy
Version: 20130922
Release: 2%{?dist}
Version: 20140328
Release: 1%{?dist}
Summary: Tool for indenting and re-formatting Perl scripts
License: GPLv2+
URL: http://perltidy.sourceforge.net/
Source0: http://www.cpan.org/modules/by-module/Perl/Perl-Tidy-%{version}.tar.gz
Source1: http://cdn.debian.net/debian/pool/main/p/perltidy/perltidy_20130922-1.debian.tar.xz
Patch0: perltidy-20130922-tmpnamdoc.patch
Patch1: Perl-Tidy-utf8.patch
Patch0: Perl-Tidy-utf8.patch
BuildArch: noarch
# Module Build
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(IO::File)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
# Test Suite
BuildRequires: perl(Test)
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(File::Spec)
Provides: perl-Perl-Tidy = %{version}-%{release}
%description
@ -32,16 +42,10 @@ errors with missing or extra braces, parentheses, and square brackets
because it is very good at localizing errors.
%prep
%setup -q -n Perl-Tidy-%{version} -a 1
# Fix from Debian for insecure temporary file usage (CVE-2014-2277, #1074721)
patch -p1 -i debian/patches/fix_insecure_tmpnam_usage_740670
# Related man page fix
%patch0 -p1
%setup -q -n Perl-Tidy-%{version}
# Re-format documentation as UTF-8
%patch1
%patch0
# Don't need Windows batch file
rm examples/pt.bat
@ -69,6 +73,25 @@ make test
%{_mandir}/man3/Perl::Tidy.3*
%changelog
* Fri Mar 28 2014 Paul Howarth <paul@city-fan.org> - 20140328-1
- Update to 20140328
- Fixed CPAN RT#94190 and debian Bug #742004: perltidy.LOG file left behind;
the problem was caused by the memoization speedup patch in version
20121207: an unwanted flag was being set, which caused a LOG to be written
if perltidy was called multiple times
- New default behavior for LOG files: if the source is from an array or
string (through a call to the perltidy module) then a LOG output is only
possible if a logfile stream is specified; this is to prevent unexpected
perltidy.LOG files
- Fixed debian Bug #740670, insecure temporary file usage; File::Temp is now
used to get a temporary file (CVE-2014-2277)
- Any -b (--backup-and-modify-in-place) flag is silently ignored when a
source stream, destination stream, or standard output is used; this is
because the -b flag may have been in a .perltidyrc file and warnings break
Test::NoWarnings
- Drop upstreamed patch for CVE-2014-2277
- Classify buildreqs by usage
* Tue Mar 25 2014 Paul Howarth <paul@city-fan.org> - 20130922-2
- Cosmetic spec changes:
- Use tabs

View File

@ -1,2 +1 @@
efc831bc9f238ae037dae22c41b6ba31 Perl-Tidy-20130922.tar.gz
0fa0cdb8817f6faf4cb97efa3d3ebb25 perltidy_20130922-1.debian.tar.xz
a33f908663934bdd67aa915e25f89f45 Perl-Tidy-20140328.tar.gz