!2 Format spec file & fix build error

From: @misaka00251 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2023-05-05 01:57:15 +00:00 committed by Gitee
commit 01395918f4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,13 +1,15 @@
%global _empty_manifest_terminate_build 0
Name: perl-Test-Taint
Version: 1.08
Release: 1
Release: 2
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-devel
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scalar::Util)
@ -17,21 +19,26 @@ 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
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"
@ -65,6 +72,7 @@ if [ -d usr/lib ];then
fi
popd
mv %{buildroot}/filelist.lst .
%check
make test
@ -76,9 +84,13 @@ rm -rf $RPM_BUILD_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
* Fri May 05 2023 misaka00251 <liuxin@iscas.ac.cn> - 1.08-2
- Fix EXTERN.h: No such file or directory
* Wed Jun 17 2020 Perl_Bot <Perl_Bot@openeuler.org> - 1.08-1
- Specfile autogenerated by Perl_Bot