%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Perl-Tidy Version: 20140328 Release: 1mamba Summary: Perl::Tidy - Parses and beautifies perl source Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Automatic Build System URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/S/SH/SHANCOCK/Perl-Tidy-%{version}.tar.gz License: GPL, Artistic BuildRequires: perl-devel Requires: perl >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root %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 Perl-Tidy-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/perltidy %{perl_vendorlib}/* %{_mandir}/man1/perltidy.1.gz %{_mandir}/man3/*.3pm.gz %doc BUGS CHANGES COPYING README TODO %changelog * Sat May 24 2014 Automatic Build System 20140328-1mamba - automatic update by autodist * Mon Sep 30 2013 Automatic Build System 20130922-1mamba - automatic update by autodist * Thu Aug 22 2013 Automatic Build System 20130806-1mamba - automatic update by autodist * Thu Jul 18 2013 Automatic Build System 20130717-1mamba - automatic update by autodist * Mon Dec 10 2012 Automatic Build System 20121207-1mamba - automatic version update by autodist * Wed Aug 15 2012 Automatic Build System 20120714-1mamba - automatic version update by autodist * Wed Jun 20 2012 Automatic Build System 20120619-1mamba - automatic version update by autodist * Wed Feb 16 2011 gil 20101217-1mamba - package created by autospec