133 lines
4.1 KiB
RPMSpec
133 lines
4.1 KiB
RPMSpec
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
|
|
|
|
Name: perltidy
|
|
Version: 20041021
|
|
Release: 1
|
|
Epoch: 0
|
|
Summary: Tool for indenting and reformatting Perl scripts
|
|
|
|
Group: Development/Tools
|
|
License: GPL
|
|
URL: http://perltidy.sourceforge.net/
|
|
Source: http://download.sf.net/perltidy/Perl-Tidy-20031021.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: perl >= 1:5.6.1
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%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
|
|
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.
|
|
Perltidy can also output html of both pod and source code.
|
|
Besides 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.
|
|
|
|
|
|
%prep
|
|
%setup -q -n Perl-Tidy-20031021
|
|
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
rm -f docs/perltidy.1 # already in mandir
|
|
|
|
|
|
%check || :
|
|
make test
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc BUGS CHANGES COPYING README TODO docs
|
|
%{_bindir}/perltidy
|
|
%{perl_vendorlib}/Perl
|
|
%{_mandir}/man1/perltidy.1*
|
|
%{_mandir}/man3/Perl::Tidy.3*
|
|
|
|
|
|
%changelog
|
|
* Thu Dec 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:20041021-1
|
|
- Sync with fedora-rpmdevtools' Perl spec template to fix x86_64 build.
|
|
- Move version to the version field.
|
|
|
|
* 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
|