Blame SPECS/perltidy.spec

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