upload code

This commit is contained in:
caodongxia 2020-11-05 20:36:46 +08:00
parent d47579cc0d
commit e59e4472f1
3 changed files with 88 additions and 0 deletions

BIN
Test-Taint-1.08.tar.gz Normal file

Binary file not shown.

84
perl-Test-Taint.spec Normal file
View File

@ -0,0 +1,84 @@
%global _empty_manifest_terminate_build 0
Name: perl-Test-Taint
Version: 1.08
Release: 1
Summary: Tools to test taintedness
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Test-Taint/
Source0: http://www.cpan.org/authors/id/P/PE/PETDANCE/Test-Taint-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More)
Requires: perl(Scalar::Util)
Requires: perl(Test::Builder)
Requires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Tainted data is data that comes from an unsafe source, such as the command
line, or, in the case of web apps, any GET or POST transactions. Read the
perlsec man page for details on why tainted data is bad, and how to
untaint the data.
%package help
Summary : Tools to test taintedness
Provides: perl-Test-Taint-doc
%description help
Tainted data is data that comes from an unsafe source, such as the command
line, or, in the case of web apps, any GET or POST transactions. Read the
perlsec man page for details on why tainted data is bad, and how to
untaint the data.
%prep
%setup -q -n Test-Taint-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
pushd %{buildroot}
touch filelist.lst
if [ -d usr/bin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ];then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib ];then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
popd
mv %{buildroot}/filelist.lst .
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes META.json
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Test*
%files help
%{_mandir}/*
%changelog
* Wed Jun 17 2020 Perl_Bot <Perl_Bot@openeuler.org> 1.08-1
- Specfile autogenerated by Perl_Bot

4
perl-Test-Taint.yaml Normal file
View File

@ -0,0 +1,4 @@
version-ctrl: metacpan
src_repo: Test-Taint
mag_prefix: "^"
seperator: "."