fb99a1
Name:           perltidy
fb99a1
Version:        20121207
fb99a1
Release:        3%{?dist}
fb99a1
Summary:        Tool for indenting and reformatting Perl scripts
fb99a1
fb99a1
License:        GPLv2+
fb99a1
URL:            http://perltidy.sourceforge.net/
fb99a1
Source:         http://downloads.sourceforge.net/perltidy/Perl-Tidy-%{version}.tar.gz
fb99a1
# Fix CVE-2014-2277 (Insecure temporary file creation)
fb99a1
Patch0:         Fix-CVE-2014-2277.patch
fb99a1
fb99a1
BuildArch:      noarch
fb99a1
BuildRequires:  perl(ExtUtils::MakeMaker)
fb99a1
BuildRequires:  perl(Carp)
fb99a1
BuildRequires:  perl(constant)
fb99a1
BuildRequires:  perl(Cwd)
fb99a1
BuildRequires:  perl(Exporter)
fb99a1
BuildRequires:  perl(IO::File)
fb99a1
BuildRequires:  perl(Test)
fb99a1
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
fb99a1
fb99a1
%description
fb99a1
Perltidy is a Perl script which indents and reformats Perl scripts to
fb99a1
make them easier to read. If you write Perl scripts, or spend much
fb99a1
time reading them, you will probably find it useful.  The formatting
fb99a1
can be controlled with command line parameters.  The default parameter
fb99a1
settings approximately follow the suggestions in the Perl Style Guide.
fb99a1
Perltidy can also output HTML of both POD and source code.  Besides
fb99a1
reformatting scripts, Perltidy can be a great help in tracking down
fb99a1
errors with missing or extra braces, parentheses, and square brackets
fb99a1
because it is very good at localizing errors.
fb99a1
fb99a1
fb99a1
%prep
fb99a1
%setup -q -n Perl-Tidy-%{version}
fb99a1
%patch0 -p1
fb99a1
rm -f docs/perltidy.1 examples/pt.bat
fb99a1
f=CHANGES ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
fb99a1
fb99a1
fb99a1
%build
fb99a1
%{__perl} Makefile.PL INSTALLDIRS=vendor
fb99a1
make %{?_smp_mflags}
fb99a1
fb99a1
fb99a1
%install
fb99a1
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
fb99a1
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
fb99a1
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
fb99a1
%{_fixperms} $RPM_BUILD_ROOT/*
fb99a1
fb99a1
fb99a1
%check
fb99a1
make test
fb99a1
fb99a1
fb99a1
%files
fb99a1
%doc BUGS CHANGES COPYING README TODO docs/ examples/
fb99a1
%{_bindir}/perltidy
fb99a1
%{perl_vendorlib}/Perl/
fb99a1
%{_mandir}/man1/perltidy.1*
fb99a1
%{_mandir}/man3/Perl::Tidy.3*
fb99a1
fb99a1
fb99a1
%changelog
fb99a1
* Tue Mar 11 2014 Jitka Plesnikova <jplesnik@redhat.com> - 20121207-3
fb99a1
- Resolves: rhbz#1074723 / CVE-2014-2277
fb99a1
- Fix a bogus date in changelog
fb99a1
fb99a1
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 20121207-2
fb99a1
- Mass rebuild 2013-12-27
fb99a1
fb99a1
* Tue Dec 11 2012 Ville Skyttä <ville.skytta@iki.fi> - 20121207-1
fb99a1
- Update to 20121207.
fb99a1
fb99a1
* Wed Aug 15 2012 Jitka Plesnikova <jplesnik@redhat.com> - 20120714-3
fb99a1
- Specify all dependencies.
fb99a1
fb99a1
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120714-2
fb99a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fb99a1
fb99a1
* Mon Jul 16 2012 Ville Skyttä <ville.skytta@iki.fi> - 20120714-1
fb99a1
- Update to 20120714.
fb99a1
fb99a1
* Mon Jul 09 2012 Petr Pisar <ppisar@redhat.com> - 20120701-2
fb99a1
- Perl 5.16 rebuild
fb99a1
fb99a1
* Sat Jul  7 2012 Ville Skyttä <ville.skytta@iki.fi> - 20120701-1
fb99a1
- Update to 20120701.
fb99a1
fb99a1
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 20120619-2
fb99a1
- Perl 5.16 rebuild
fb99a1
fb99a1
* Wed Jun 20 2012 Ville Skyttä <ville.skytta@iki.fi> - 20120619-1
fb99a1
- Update to 20120619.
fb99a1
- Clean up specfile constructs no longer needed in Fedora or EL6+.
fb99a1
fb99a1
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 20101217-5
fb99a1
- Perl 5.16 rebuild
fb99a1
fb99a1
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20101217-4
fb99a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fb99a1
fb99a1
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 20101217-3
fb99a1
- Perl mass rebuild
fb99a1
fb99a1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20101217-2
fb99a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fb99a1
fb99a1
* Sun Dec 26 2010 Ville Skyttä <ville.skytta@iki.fi> - 20101217-1
fb99a1
- Update to 20101217.
fb99a1
fb99a1
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 20090616-4
fb99a1
- Mass rebuild with perl-5.12.0
fb99a1
fb99a1
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 20090616-3
fb99a1
- rebuild against perl 5.10.1
fb99a1
fb99a1
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090616-2
fb99a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fb99a1
fb99a1
* Thu Jun 18 2009 Ville Skyttä <ville.skytta@iki.fi> - 20090616-1
fb99a1
- Update to 20090616.
fb99a1
fb99a1
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20071205-4
fb99a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fb99a1
fb99a1
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 20071205-3
fb99a1
- Rebuild for perl 5.10 (again)
fb99a1
fb99a1
* Sun Jan 13 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 20071205-2
fb99a1
- rebuild for new perl
fb99a1
fb99a1
* Thu Dec  6 2007 Ville Skyttä <ville.skytta@iki.fi> - 20071205-1
fb99a1
- 20071205.
fb99a1
- Convert docs to UTF-8.
fb99a1
fb99a1
* Wed Aug  1 2007 Ville Skyttä <ville.skytta@iki.fi> - 20070801-1
fb99a1
- 20070801.
fb99a1
fb99a1
* Wed May  9 2007 Ville Skyttä <ville.skytta@iki.fi> - 20070508-1
fb99a1
- 20070508.
fb99a1
fb99a1
* Sat May  5 2007 Ville Skyttä <ville.skytta@iki.fi> - 20070504-1
fb99a1
- 20070504.
fb99a1
fb99a1
* Tue Apr 24 2007 Ville Skyttä <ville.skytta@iki.fi> - 20070424-1
fb99a1
- 20070424.
fb99a1
fb99a1
* Tue Apr 17 2007 Ville Skyttä <ville.skytta@iki.fi> - 20060719-3
fb99a1
- BuildRequire perl(ExtUtils::MakeMaker).
fb99a1
fb99a1
* Fri Sep 15 2006 Ville Skyttä <ville.skytta@iki.fi> - 20060719-2
fb99a1
- Rebuild.
fb99a1
fb99a1
* Thu Jul 20 2006 Ville Skyttä <ville.skytta@iki.fi> - 20060719-1
fb99a1
- 20060719.
fb99a1
- Fix order of options to find(1) in %%install.
fb99a1
fb99a1
* Thu Jun 15 2006 Ville Skyttä <ville.skytta@iki.fi> - 20060614-1
fb99a1
- 20060614, specfile cleanups, include examples in docs.
fb99a1
fb99a1
* Fri Apr  8 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
fb99a1
- rebuilt
fb99a1
fb99a1
* Thu Dec 16 2004 Ville Skyttä <ville.skytta@iki.fi> - 0:20031021-1
fb99a1
- Sync with fedora-rpmdevtools' Perl spec template to fix x86_64 build.
fb99a1
- Move version to the version field.
fb99a1
fb99a1
* Wed Oct 22 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.3.20031021
fb99a1
- Update to 20031021.
fb99a1
fb99a1
* Sat Oct 11 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.3.20030726
fb99a1
- Install into vendor dirs.
fb99a1
- Spec cleanups.
fb99a1
fb99a1
* Tue Jul 29 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.2.20030726
fb99a1
- Update to 20030726.
fb99a1
- Use fedora-rpm-helper.
fb99a1
fb99a1
* Mon Jun 23 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.2.20021130
fb99a1
- Address issues in #194:
fb99a1
- Patch to get rid of a warning on startup.
fb99a1
- Do defattr before doc.
fb99a1
fb99a1
* Fri May 30 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.1.20021130
fb99a1
- Fix release naming scheme (this is snapshot-only).
fb99a1
fb99a1
* Wed May  7 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.0.2.20021130
fb99a1
- Own dirs.
fb99a1
- Save .spec in UTF-8.
fb99a1
fb99a1
* Mon Apr 21 2003 Ville Skyttä <ville.skytta@iki.fi> 0:0.0-0.fdr.0.1.20021130
fb99a1
- First Fedora release, based on Simon Perreault's work.
fb99a1
fb99a1
* Mon Mar 10 2003 Simon Perreault <nomis80@nomis80.org> 20021130-2
fb99a1
- Changed architecture from i386 to noarch
fb99a1
- Added my name as packager
fb99a1
- Bumped up release number, which was forgotten by Anthony Rumble
fb99a1
fb99a1
* Sun Mar 09 2003 Anthony Rumble <anthony@linuxhelp.com.au>
fb99a1
- Tidied up RPM Source
fb99a1
fb99a1
* Sun Dec  1 2002 Simon Perreault <nomis80@linuxquebec.com>
fb99a1
- Update to 20021130
fb99a1
fb99a1
* Sat Nov  9 2002 Simon Perreault <nomis80@linuxquebec.com>
fb99a1
- Update to 20021106
fb99a1
fb99a1
* Mon Sep 23 2002 Simon Perreault <nomis80@linuxquebec.com>
fb99a1
- Update to 20020922
fb99a1
fb99a1
* Wed Aug 28 2002 Simon Perreault <nomis80@linuxquebec.com>
fb99a1
- Update to 20020826
fb99a1
fb99a1
* Tue May 7 2002 Simon Perreault <nomis80@linuxquebec.com>
fb99a1
- Require 5.6.1 because Tidy.pm is placed in a directory dependant on perl
fb99a1
  version.
fb99a1
fb99a1
* Sat Apr 27 2002 Simon Perreault <nomis80@linuxquebec.com>
fb99a1
- Update to 20020425.
fb99a1
fb99a1
* Wed Apr 17 2002 Simon Perreault <nomis80@linuxquebec.com>
fb99a1
- Generalized spec file. Added some documentation.
fb99a1
fb99a1
* Wed Apr 17 2002 Simon Perreault <nomis80@linuxquebec.com>
fb99a1
- Upgraded to version 20020416
fb99a1
fb99a1
* Mon Feb 25 2002 Simon Perreault <nomis80@linuxquebec.com>
fb99a1
- Spec file was created on release of 20020225