%define pkg_name Perl-Tidy %define pkg_version 20070801 %define rpm_pkg_version 20070801 %define rpm_pkg_release 1.n0i.5 Summary: Parses and beautifies perl source Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/S/SH/SHANCOCK/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) Obsoletes: perltidy Provides: perltidy = %{version} %description This module makes the functionality of the perltidy utility available to perl scripts. Any or all of the input parameters may be omitted, in which case the @ARGV array will be used to provide input parameters as described in the perltidy(1) man page. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_mod} %{fix_perl_path examples/} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %{__rm} -f examples/pt.bat %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files -b -m} %doc BUGS CHANGES COPYING docs/*.pod examples/ README TODO %changelog * Sun Aug 12 2007 Marius Feraru - 20070801-1.n0i.5 - version 20070801 * Sat Jun 09 2007 Marius Feraru - 20070508-1.n0i.4 - spec file (re)created using N0i::CPAN::RPMizer/1.14.8 - version 20070508 * Thu Jun 15 2006 Marius Feraru - 20060614-1.n0i.3 - version 20060614 * Sun Mar 20 2005 Marius Feraru - 20031021-1.n0i.2 - automatic rebuild (perl 5.8.6) * Wed Jan 19 2005 Marius Feraru - 20031021-1.n0i.1 - version 20031021 - spec file (re?)created using N0i::CPAN::RPMizer/2004120601