| 1 | Name: perl-Taint-Runtime
|
|---|
| 2 | Version: 0.03
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Runtime enable taint checking
|
|---|
| 5 | Group: Development/Libraries
|
|---|
| 6 | License: GPL+ or Artistic
|
|---|
| 7 | URL: http://search.cpan.org/dist/Taint-Runtime
|
|---|
| 8 | Source0: http://search.cpan.org/CPAN/authors/id/R/RH/RHANDOM/Taint-Runtime-%{version}.tar.gz
|
|---|
| 9 | BuildRequires: perl-devel
|
|---|
| 10 | BuildRequires: perl-generators
|
|---|
| 11 | BuildRequires: perl(ExtUtils::MakeMaker)
|
|---|
| 12 | # Run-time:
|
|---|
| 13 | BuildRequires: perl(Carp)
|
|---|
| 14 | BuildRequires: perl(Exporter)
|
|---|
| 15 | BuildRequires: perl(XSLoader)
|
|---|
| 16 | # Tests:
|
|---|
| 17 | BuildRequires: perl(Test::More)
|
|---|
| 18 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|---|
| 19 | Requires: perl(Carp)
|
|---|
| 20 |
|
|---|
| 21 | %{?perl_default_filter}
|
|---|
| 22 |
|
|---|
| 23 | %description
|
|---|
| 24 | This module enables run-time taint checking, for cases where the -T
|
|---|
| 25 | switch on the command line is not appropriate or viable. There are
|
|---|
| 26 | a somewhat limited number of legitimate use cases where you should
|
|---|
| 27 | use this module instead of the -T switch. Unless you have a specific and
|
|---|
| 28 | good reason for not using the -T option, you should use the -T option.
|
|---|
| 29 |
|
|---|
| 30 | %prep
|
|---|
| 31 | %setup -q -n Taint-Runtime-%{version}
|
|---|
| 32 | chmod +x is_taint_bench.pl
|
|---|
| 33 |
|
|---|
| 34 | %build
|
|---|
| 35 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|---|
| 36 | make %{?_smp_mflags}
|
|---|
| 37 | make manifypods
|
|---|
| 38 |
|
|---|
| 39 | %install
|
|---|
| 40 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 41 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|---|
| 42 | find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
|
|---|
| 43 | chmod -R u+w $RPM_BUILD_ROOT/*
|
|---|
| 44 |
|
|---|
| 45 | %check
|
|---|
| 46 | #make test
|
|---|
| 47 |
|
|---|
| 48 | %files
|
|---|
| 49 | %doc Changes README
|
|---|
| 50 | %{perl_vendorarch}/auto/Taint/
|
|---|
| 51 | %{perl_vendorarch}/Taint/
|
|---|
| 52 | %{_mandir}/man3/*.3*
|
|---|
| 53 |
|
|---|
| 54 | %changelog
|
|---|
| 55 | * Thu Mar 06 2018 Elbert Pol <elbert.pol@gmail.com> - 0.03-1
|
|---|
| 56 | - initial rpm for OS2
|
|---|