fa91c83
Name:		perltidy
efe86df
Version:	20170521
14a4ffa
Release:	2%{?dist}
fa91c83
Summary:	Tool for indenting and re-formatting Perl scripts
fa91c83
License:	GPLv2+
fa91c83
URL:		http://perltidy.sourceforge.net/
fa91c83
Source0:	http://www.cpan.org/modules/by-module/Perl/Perl-Tidy-%{version}.tar.gz
8f4ac8b
Patch0:		Perl-Tidy-utf8.patch
fa91c83
BuildArch:	noarch
8f4ac8b
# Module Build
8ab018f
BuildRequires:	coreutils
8ab018f
BuildRequires:	findutils
8ab018f
BuildRequires:	make
8f4ac8b
BuildRequires:	perl
1a3621f
BuildRequires:	perl-generators
8f4ac8b
BuildRequires:	perl(ExtUtils::MakeMaker)
8f4ac8b
# Module Runtime
fa91c83
BuildRequires:	perl(Carp)
fa91c83
BuildRequires:	perl(constant)
fa91c83
BuildRequires:	perl(Cwd)
508b8ff
BuildRequires:	perl(Encode)
fa91c83
BuildRequires:	perl(Exporter)
8f4ac8b
BuildRequires:	perl(File::Basename)
8f4ac8b
BuildRequires:	perl(File::Copy)
8f4ac8b
BuildRequires:	perl(File::Spec)
8f4ac8b
BuildRequires:	perl(File::Temp)
fa91c83
BuildRequires:	perl(Getopt::Long)
fa91c83
BuildRequires:	perl(IO::File)
8f4ac8b
BuildRequires:	perl(strict)
8f4ac8b
BuildRequires:	perl(vars)
508b8ff
BuildRequires:	perl(warnings)
8f4ac8b
# Test Suite
8ab018f
BuildRequires:	perl(FindBin)
fa91c83
BuildRequires:	perl(Test)
8ab018f
BuildRequires:	perl(utf8)
8f4ac8b
# Runtime
fa91c83
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
8f4ac8b
Requires:	perl(File::Spec)
fa91c83
Provides:	perl-Perl-Tidy = %{version}-%{release}
cvsextras 7753485
cvsextras 7753485
%description
fa91c83
Perltidy is a Perl script that indents and re-formats Perl scripts to
cvsextras 7753485
make them easier to read. If you write Perl scripts, or spend much
fa91c83
time reading them, you will probably find it useful. The formatting
fa91c83
can be controlled with command line parameters. The default parameter
3bdc560
settings approximately follow the suggestions in the Perl Style Guide.
fa91c83
Perltidy can also output HTML of both POD and source code. Besides
fa91c83
re-formatting scripts, Perltidy can be a great help in tracking down
3bdc560
errors with missing or extra braces, parentheses, and square brackets
3bdc560
because it is very good at localizing errors.
cvsextras 7753485
cvsextras 7753485
%prep
8f4ac8b
%setup -q -n Perl-Tidy-%{version}
cvsextras 7753485
fa91c83
# Re-format documentation as UTF-8
8f4ac8b
%patch0
fa91c83
fa91c83
# Don't need Windows batch file
fa91c83
rm examples/pt.bat
fa91c83
fa91c83
# We'll ship the perltidy manpage in %%{_mandir} so we don't need another copy
fa91c83
rm docs/perltidy.1
cvsextras 7753485
cvsextras 7753485
%build
fa91c83
perl Makefile.PL INSTALLDIRS=vendor
bf2b0a8
make %{?_smp_mflags}
cvsextras 7753485
cvsextras 7753485
%install
fa91c83
make pure_install DESTDIR=%{buildroot}
efe86df
find %{buildroot} -type f -name .packlist -delete
efe86df
%{_fixperms} -c %{buildroot}
cvsextras 7753485
25d59a6
%check
bf2b0a8
make test
bf2b0a8
cvsextras 7753485
%files
8ab018f
%if 0%{?_licensedir:1}
8ab018f
%license COPYING
8ab018f
%else
8ab018f
%doc COPYING
8ab018f
%endif
8ab018f
%doc BUGS CHANGES README TODO docs/ examples/
cvsextras 7753485
%{_bindir}/perltidy
25d59a6
%{perl_vendorlib}/Perl/
bf2b0a8
%{_mandir}/man1/perltidy.1*
bf2b0a8
%{_mandir}/man3/Perl::Tidy.3*
cvsextras 7753485
cvsextras 7753485
%changelog
14a4ffa
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 20170521-2
14a4ffa
- Perl 5.26 rebuild
14a4ffa
efe86df
* Mon May 22 2017 Paul Howarth <paul@city-fan.org> - 20170521-1
efe86df
- Update to 20170521
efe86df
  - Includes fix for CVE-2016-10374: Uses current working directory without
efe86df
    symlink-attack protection
efe86df
  - See CHANGES for details of other bug fixes and enhancements
efe86df
- Simplify find command using -delete
efe86df
455f26b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20160302-3
455f26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
455f26b
3b859e6
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 20160302-2
3b859e6
- Perl 5.24 rebuild
3b859e6
b538152
* Tue Mar  1 2016 Paul Howarth <paul@city-fan.org> - 20160302-1
b538152
- Update to 20160302
b538152
  - Corrected a minor problem in which an unwanted newline was placed before
b538152
    the closing brace of an anonymous sub with a signature, if it was in a
b538152
    list (CPAN RT#112534)
b538152
  - Corrected a minor problem in which occasional extra indentation was given
b538152
    to the closing brace of an anonymous sub in a list when the -lp parameter
b538152
    was set
b538152
508b8ff
* Mon Feb 29 2016 Paul Howarth <paul@city-fan.org> - 20160301-1
508b8ff
- Update to 20160301 (see CHANGES for details)
508b8ff
1c1399c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20150815-2
1c1399c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1c1399c
8ab018f
* Sat Aug 15 2015 Paul Howarth <paul@city-fan.org> - 20150815-1
8ab018f
- Update to 20150815 (see CHANGES for details)
8ab018f
- Use %%license where possible
8ab018f
585008b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20140711-4
585008b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
585008b
1fee8c5
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 20140711-3
1fee8c5
- Perl 5.22 rebuild
1fee8c5
b77f059
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 20140711-2
b77f059
- Perl 5.20 rebuild
b77f059
ec67bc2
* Mon Jul 14 2014 Paul Howarth <paul@city-fan.org> - 20140711-1
ec67bc2
- Update to 20140711 (see CHANGES for details)
ec67bc2
5e57bdd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20140328-2
5e57bdd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5e57bdd
8f4ac8b
* Fri Mar 28 2014 Paul Howarth <paul@city-fan.org> - 20140328-1
8f4ac8b
- Update to 20140328
8f4ac8b
  - Fixed CPAN RT#94190 and debian Bug #742004: perltidy.LOG file left behind;
8f4ac8b
    the problem was caused by the memoization speedup patch in version
8f4ac8b
    20121207: an unwanted flag was being set, which caused a LOG to be written
8f4ac8b
    if perltidy was called multiple times
8f4ac8b
  - New default behavior for LOG files: if the source is from an array or
8f4ac8b
    string (through a call to the perltidy module) then a LOG output is only
8f4ac8b
    possible if a logfile stream is specified; this is to prevent unexpected
8f4ac8b
    perltidy.LOG files
8f4ac8b
  - Fixed debian Bug #740670, insecure temporary file usage; File::Temp is now
8f4ac8b
    used to get a temporary file (CVE-2014-2277)
8f4ac8b
  - Any -b (--backup-and-modify-in-place) flag is silently ignored when a
8f4ac8b
    source stream, destination stream, or standard output is used; this is
8f4ac8b
    because the -b flag may have been in a .perltidyrc file and warnings break
8f4ac8b
    Test::NoWarnings
8f4ac8b
- Drop upstreamed patch for CVE-2014-2277
8f4ac8b
- Classify buildreqs by usage
8f4ac8b
fa91c83
* Tue Mar 25 2014 Paul Howarth <paul@city-fan.org> - 20130922-2
fa91c83
- Cosmetic spec changes:
fa91c83
  - Use tabs
fa91c83
  - Comment patch applications
fa91c83
  - Don't use macros for commands
fa91c83
  - Use %%{buildroot} rather than $RPM_BUILD_ROOT
fa91c83
- Provide perl-Perl-Tidy for benefit of people looking for CPAN module
fa91c83
- Use a patch rather than scripted iconv run to fix character encoding
fa91c83
- BR: perl(Getopt::Long)
fa91c83
- Don't need to remove empty directories from the buildroot
fa91c83
- Use DESTDIR rather than PERL_INSTALL_ROOT
fa91c83
411d66e
* Wed Mar 12 2014 Ville Skyttä <ville.skytta@iki.fi> - 20130922-1
411d66e
- Update to 20130922.
411d66e
- Fix for CVE-2014-2277 from Debian (#1074721) + related man page fix.
411d66e
- Fix bogus date in %%changelog.
411d66e
e092b35
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20121207-4
e092b35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e092b35
90a5b03
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 20121207-3
90a5b03
- Perl 5.18 rebuild
90a5b03
aa1576c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20121207-2
aa1576c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
aa1576c
682c0b5
* Tue Dec 11 2012 Ville Skyttä <ville.skytta@iki.fi> - 20121207-1
682c0b5
- Update to 20121207.
682c0b5
0c54c91
* Wed Aug 15 2012 Jitka Plesnikova <jplesnik@redhat.com> - 20120714-3
0c54c91
- Specify all dependencies.
0c54c91
f85ab01
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120714-2
f85ab01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f85ab01
7baa2c4
* Mon Jul 16 2012 Ville Skyttä <ville.skytta@iki.fi> - 20120714-1
7baa2c4
- Update to 20120714.
7baa2c4
a1e6f83
* Mon Jul 09 2012 Petr Pisar <ppisar@redhat.com> - 20120701-2
a1e6f83
- Perl 5.16 rebuild
a1e6f83
7a40d9a
* Sat Jul  7 2012 Ville Skyttä <ville.skytta@iki.fi> - 20120701-1
7a40d9a
- Update to 20120701.
7a40d9a
90a2125
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 20120619-2
90a2125
- Perl 5.16 rebuild
90a2125
8d2067a
* Wed Jun 20 2012 Ville Skyttä <ville.skytta@iki.fi> - 20120619-1
8d2067a
- Update to 20120619.
8d2067a
- Clean up specfile constructs no longer needed in Fedora or EL6+.
8d2067a
bf46e15
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 20101217-5
bf46e15
- Perl 5.16 rebuild
bf46e15
eccb19d
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20101217-4
eccb19d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
eccb19d
d684447
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 20101217-3
d684447
- Perl mass rebuild
d684447
342318f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20101217-2
342318f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
342318f
f910915
* Sun Dec 26 2010 Ville Skyttä <ville.skytta@iki.fi> - 20101217-1
f910915
- Update to 20101217.
f910915
afc44be
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 20090616-4
afc44be
- Mass rebuild with perl-5.12.0
afc44be
d89cb9e
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 20090616-3
d89cb9e
- rebuild against perl 5.10.1
d89cb9e
7cf403b
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090616-2
7cf403b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7cf403b
8d2067a
* Thu Jun 18 2009 Ville Skyttä <ville.skytta@iki.fi> - 20090616-1
3bdc560
- Update to 20090616.
3bdc560
d3b8c0c
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20071205-4
d3b8c0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d3b8c0c
a130310
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 20071205-3
a130310
- Rebuild for perl 5.10 (again)
a130310
2e3def4
* Sun Jan 13 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 20071205-2
2e3def4
- rebuild for new perl
2e3def4
8d2067a
* Thu Dec  6 2007 Ville Skyttä <ville.skytta@iki.fi> - 20071205-1
978c0d7
- 20071205.
978c0d7
- Convert docs to UTF-8.
978c0d7
8d2067a
* Wed Aug  1 2007 Ville Skyttä <ville.skytta@iki.fi> - 20070801-1
fef565c
- 20070801.
fef565c
8d2067a
* Wed May  9 2007 Ville Skyttä <ville.skytta@iki.fi> - 20070508-1
804c237
- 20070508.
804c237
8d2067a
* Sat May  5 2007 Ville Skyttä <ville.skytta@iki.fi> - 20070504-1
c760b44
- 20070504.
c760b44
8d2067a
* Tue Apr 24 2007 Ville Skyttä <ville.skytta@iki.fi> - 20070424-1
c8249c6
- 20070424.
c8249c6
8d2067a
* Tue Apr 17 2007 Ville Skyttä <ville.skytta@iki.fi> - 20060719-3
2bf1206
- BuildRequire perl(ExtUtils::MakeMaker).
2bf1206
8d2067a
* Fri Sep 15 2006 Ville Skyttä <ville.skytta@iki.fi> - 20060719-2
f2ffe64
- Rebuild.
f2ffe64
8d2067a
* Thu Jul 20 2006 Ville Skyttä <ville.skytta@iki.fi> - 20060719-1
6e1c1be
- 20060719.
6e1c1be
- Fix order of options to find(1) in %%install.
6e1c1be
8d2067a
* Thu Jun 15 2006 Ville Skyttä <ville.skytta@iki.fi> - 20060614-1
25d59a6
- 20060614, specfile cleanups, include examples in docs.
25d59a6
411d66e
* Wed Apr  6 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
fcd0752
- rebuilt
fcd0752
8d2067a
* Thu Dec 16 2004 Ville Skyttä <ville.skytta@iki.fi> - 0:20031021-1
bf2b0a8
- Sync with fedora-rpmdevtools' Perl spec template to fix x86_64 build.
bf2b0a8
- Move version to the version field.
bf2b0a8
8d2067a
* Wed Oct 22 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.3.20031021
cvsextras 7753485
- Update to 20031021.
cvsextras 7753485
8d2067a
* Sat Oct 11 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.3.20030726
cvsextras 7753485
- Install into vendor dirs.
cvsextras 7753485
- Spec cleanups.
cvsextras 7753485
8d2067a
* Tue Jul 29 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.2.20030726
cvsextras 7753485
- Update to 20030726.
cvsextras 7753485
- Use fedora-rpm-helper.
cvsextras 7753485
8d2067a
* Mon Jun 23 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.2.20021130
cvsextras 7753485
- Address issues in #194:
cvsextras 7753485
- Patch to get rid of a warning on startup.
cvsextras 7753485
- Do defattr before doc.
cvsextras 7753485
8d2067a
* Fri May 30 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.1.20021130
cvsextras 7753485
- Fix release naming scheme (this is snapshot-only).
cvsextras 7753485
8d2067a
* Wed May  7 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.0.2.20021130
cvsextras 7753485
- Own dirs.
cvsextras 7753485
- Save .spec in UTF-8.
cvsextras 7753485
8d2067a
* Mon Apr 21 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.0.1.20021130
cvsextras 7753485
- First Fedora release, based on Simon Perreault's work.
cvsextras 7753485
cvsextras 7753485
* Mon Mar 10 2003 Simon Perreault <nomis80@nomis80.org> 20021130-2
cvsextras 7753485
- Changed architecture from i386 to noarch
cvsextras 7753485
- Added my name as packager
cvsextras 7753485
- Bumped up release number, which was forgotten by Anthony Rumble
cvsextras 7753485
cvsextras 7753485
* Sun Mar 09 2003 Anthony Rumble <anthony@linuxhelp.com.au>
cvsextras 7753485
- Tidied up RPM Source
cvsextras 7753485
cvsextras 7753485
* Sun Dec  1 2002 Simon Perreault <nomis80@linuxquebec.com>
cvsextras 7753485
- Update to 20021130
cvsextras 7753485
cvsextras 7753485
* Sat Nov  9 2002 Simon Perreault <nomis80@linuxquebec.com>
cvsextras 7753485
- Update to 20021106
cvsextras 7753485
cvsextras 7753485
* Mon Sep 23 2002 Simon Perreault <nomis80@linuxquebec.com>
cvsextras 7753485
- Update to 20020922
cvsextras 7753485
cvsextras 7753485
* Wed Aug 28 2002 Simon Perreault <nomis80@linuxquebec.com>
cvsextras 7753485
- Update to 20020826
cvsextras 7753485
cvsextras 7753485
* Tue May 7 2002 Simon Perreault <nomis80@linuxquebec.com>
cvsextras 7753485
- Require 5.6.1 because Tidy.pm is placed in a directory dependant on perl
cvsextras 7753485
  version.
cvsextras 7753485
cvsextras 7753485
* Sat Apr 27 2002 Simon Perreault <nomis80@linuxquebec.com>
cvsextras 7753485
- Update to 20020425.
cvsextras 7753485
cvsextras 7753485
* Wed Apr 17 2002 Simon Perreault <nomis80@linuxquebec.com>
cvsextras 7753485
- Generalized spec file. Added some documentation.
cvsextras 7753485
cvsextras 7753485
* Wed Apr 17 2002 Simon Perreault <nomis80@linuxquebec.com>
cvsextras 7753485
- Upgraded to version 20020416
cvsextras 7753485
cvsextras 7753485
* Mon Feb 25 2002 Simon Perreault <nomis80@linuxquebec.com>
cvsextras 7753485
- Spec file was created on release of 20020225