perl-Perl-Tidy/perl-Perl-Tidy.spec
2021-05-12 15:24:38 +08:00

49 lines
1.3 KiB
RPMSpec

Name: perl-Perl-Tidy
Version: 20210402
Release: 1
Summary: Parses and beautifies perl source
License: GPLv2+
URL: https://metacpan.org/release/Perl-Tidy
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHANCOCK/Perl-Tidy-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $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.
For example, the perltidy script is basically just this:
use Perl::Tidy;
Perl::Tidy::perltidy();
%prep
%setup -q -n Perl-Tidy-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%defattr(-,root,root,-)
%doc COPYING META.json META.yml MYMETA.yml examples
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*
%changelog
* Wed May 12 2021 wangyueliang <wangyueliang@kylinos.cn> 20210402-1
- Package init