perl-Perl-Tidy/perl-Perl-Tidy.spec

105 lines
3.4 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Perl-Tidy
Version: 20210625
Release: 1mamba
Summary: Perl::Tidy - Parses and beautifies perl source
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org
Source: https://cpan.metacpan.org/modules/by-module/Perl/Perl-Tidy-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
%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*
%{_mandir}/man3/*.3pm*
%doc COPYING
#%doc BUGS CHANGES README TODO
%changelog
* Fri Jun 25 2021 Automatic Build System <autodist@mambasoft.it> 20210625-1mamba
- automatic version update by autodist
* Thu Apr 01 2021 Automatic Build System <autodist@mambasoft.it> 20210402-1mamba
- automatic version update by autodist
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 20210111-1mamba
- automatic version update by autodist
* Sun Sep 20 2020 Automatic Build System <autodist@mambasoft.it> 20200907-1mamba
- automatic update by autodist
* Fri Jan 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 20200110-1mamba
- update to 20200110
* Tue Dec 19 2017 Automatic Build System <autodist@mambasoft.it> 20171214-1mamba
- automatic update by autodist
* Sun Oct 22 2017 Automatic Build System <autodist@mambasoft.it> 20170521-1mamba
- automatic update by autodist
* Tue Dec 29 2015 Automatic Build System <autodist@mambasoft.it> 20150815-1mamba
- automatic update by autodist
* Fri Aug 08 2014 Automatic Build System <autodist@mambasoft.it> 20140711-1mamba
- automatic update by autodist
* Sat May 24 2014 Automatic Build System <autodist@mambasoft.it> 20140328-1mamba
- automatic update by autodist
* Mon Sep 30 2013 Automatic Build System <autodist@mambasoft.it> 20130922-1mamba
- automatic update by autodist
* Thu Aug 22 2013 Automatic Build System <autodist@mambasoft.it> 20130806-1mamba
- automatic update by autodist
* Thu Jul 18 2013 Automatic Build System <autodist@mambasoft.it> 20130717-1mamba
- automatic update by autodist
* Mon Dec 10 2012 Automatic Build System <autodist@mambasoft.it> 20121207-1mamba
- automatic version update by autodist
* Wed Aug 15 2012 Automatic Build System <autodist@mambasoft.it> 20120714-1mamba
- automatic version update by autodist
* Wed Jun 20 2012 Automatic Build System <autodist@mambasoft.it> 20120619-1mamba
- automatic version update by autodist
* Wed Feb 16 2011 gil <puntogil@libero.it> 20101217-1mamba
- package created by autospec