Sync from SUSE:SLFO:Main perl-Test-Taint revision 175d07056024b877b8399cc1c0c3545e

This commit is contained in:
Adrian Schröter 2024-05-03 18:56:02 +02:00
commit c7d7786ab6
5 changed files with 167 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
Test-Taint-1.08.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

28
cpanspec.yml Normal file
View File

@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

49
perl-Test-Taint.changes Normal file
View File

@ -0,0 +1,49 @@
-------------------------------------------------------------------
Thu Jun 13 05:38:41 UTC 2019 - Stephan Kulow <coolo@suse.com>
- updated to 1.08
see /usr/share/doc/packages/perl-Test-Taint/Changes
1.08 Wed Jun 12 15:01:48 CDT 2019
[FIXES]
Fixed intermittent failures in the test suite. Thanks, Petr
Pisar. (RT #119897)
- obsoletes Test-Taint-1.06-Test-taintedness-on-X-instead-of-environment-variabl.patch
-------------------------------------------------------------------
Wed Oct 10 08:20:33 UTC 2018 - Dirk Stoecker <opensuse@dstoecker.de>
- add patch to prevent random test failures:
Test-Taint-1.06-Test-taintedness-on-X-instead-of-environment-variabl.patch
-------------------------------------------------------------------
Tue Jun 4 15:09:35 UTC 2013 - coolo@suse.com
- updated to 1.06
[ENHANCEMENTS]
tainted() now localizes $SIG{__DIE__} before performing the
taint check. If the calling program has its own $SIG{__DIE__},
we don't want to use it. Thanks, Pete Krawczyk.
https://rt.cpan.org/Ticket/Display.html?id=23507
[FIXES]
Checks for undef before opening files when trying to create
some taint. Thanks Frédéric Buclin.
https://rt.cpan.org/Ticket/Display.html?id=51246
-------------------------------------------------------------------
Mon May 30 15:32:02 UTC 2011 - coolo@novell.com
- regenerate with newest cpanspec
-------------------------------------------------------------------
Fri Apr 22 09:26:47 UTC 2011 - jw@novell.com
- initial pull from CPAN with cpanspec_obs
-------------------------------------------------------------------
Fri Apr 22 09:26:23 UTC 2011 - jw@novell.com
- initial package 1.04
* created by cpanspec 1.78.04

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

@ -0,0 +1,64 @@
#
# spec file for package perl-Test-Taint
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Test-Taint
Version: 1.08
Release: 0
%define cpan_name Test-Taint
Summary: Tools to test taintedness
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
%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.
When you're writing unit tests for code that deals with tainted data,
you'll want to have a way to provide tainted data for your routines to
handle, and easy ways to check and report on the taintedness of your data,
in standard Test::More style.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes
%changelog