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