perl-Taint-Runtime/perl-Taint-Runtime.spec

70 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Taint-Runtime
Version: 0.03
Release: 4mamba
Summary: Taint::Runtime - Runtime enable taint checking
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
URL: https://www.cpan.org/
Source: http://search.cpan.org/CPAN/authors/id/R/RH/RHANDOM/Taint-Runtime-%{version}.tar.gz
License: GPL, Artistic
BuildRequires: perl(Test::More)
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
Requires: perl >= %perl_major_ver
%description
This module enables runtime taint checking, for cases where the -T
switch on the commandline is not appropriate or viable. There are
a somewhat limited number of legitimate use cases where you should
use this module instead of the -T switch. Unless you have a specific and
good reason for not using the -T option, you should use the -T option.
%prep
%setup -q -n Taint-Runtime-%{version}
chmod +x is_taint_bench.pl
%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)
%{perl_vendorarch}/Taint/
%{perl_vendorarch}/auto/Taint/
%{_mandir}/man3/*.3pm.gz
%doc Changes README
%changelog
* Sun Apr 16 2023 Sdk Build System <sdk@mambasoft.it> 0.03-4mamba
- rebuilt with perl 5.36.0
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.03-3mamba
- rebuilt with perl 5.24
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.03-2mamba
- perl 5.16 mass rebuild
* Thu Feb 17 2011 gil <puntogil@libero.it> 0.03-1mamba
- package created by autospec