From c23a50203902bd81a18809074dcb084476c0fda4 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Aug 20 2013 12:48:10 +0000 Subject: Initial import (perl-Taint-Util-0.08-3) Wraps perl's internal routines for checking and setting the taint flag and thus does not rely on regular expressions for untainting or odd tricks involving eval and kill for checking whether data is tainted; instead, it checks and flips a flag on the scalar in-place. --- diff --git a/.gitignore b/.gitignore index e69de29..b892264 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Taint-Util-[0-9.]*.tar.gz diff --git a/Taint-Util-0.08-utf8.patch b/Taint-Util-0.08-utf8.patch new file mode 100644 index 0000000..3994902 --- /dev/null +++ b/Taint-Util-0.08-utf8.patch @@ -0,0 +1,15 @@ +--- README ++++ README +@@ -119,10 +119,10 @@ + perlsec + + AUTHOR +- �var Arnfj�r� Bjarmason ++ Ævar Arnfjörð Bjarmason + + LICENSE +- Copyright 2007-2010 �var Arnfj�r� Bjarmason. ++ Copyright 2007-2010 Ævar Arnfjörð Bjarmason. + + This program is free software; you can redistribute it and/or modify it + under the same terms as Perl itself. diff --git a/perl-Taint-Util.spec b/perl-Taint-Util.spec new file mode 100644 index 0000000..fed6e1f --- /dev/null +++ b/perl-Taint-Util.spec @@ -0,0 +1,69 @@ +Name: perl-Taint-Util +Version: 0.08 +Release: 3%{?dist} +Summary: Test for and flip the taint flag without regex matches or eval +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Taint-Util/ +Source0: http://search.cpan.org/CPAN/authors/id/A/AV/AVAR/Taint-Util-%{version}.tar.gz +Patch0: Taint-Util-0.08-utf8.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +# ============= Module Build ==================== +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Pod::Man) >= 2.26 +BuildRequires: perl(warnings) +# ============= Module Runtime ================== +BuildRequires: perl(strict) +BuildRequires: perl(XSLoader) +# ============= Test Suite ====================== +BuildRequires: perl(Test::More) +# ============= Module Runtime ================== +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +# Don't "provide" private Perl libs +%{?perl_default_filter} + +%description +Wraps perl's internal routines for checking and setting the taint flag and +thus does not rely on regular expressions for untainting or odd tricks +involving eval and kill for checking whether data is tainted; instead, it +checks and flips a flag on the scalar in-place. + +%prep +%setup -q -n Taint-Util-%{version} + +# Re-code README as UTF-8 +%patch0 + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +%{_fixperms} %{buildroot} + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%doc ChangeLog LICENSE README +%{perl_vendorarch}/auto/Taint/ +%{perl_vendorarch}/Taint/ +%{_mandir}/man3/Taint::Util.3pm* + +%changelog +* Tue Aug 20 2013 Paul Howarth - 0.08-3 +- BR: perl(Pod::Man) ≥ 2.26 to get manpage rendered properly (#998447) + +* Mon Aug 19 2013 Paul Howarth - 0.08-2 +- Sanitize for Fedora submission + +* Fri Aug 16 2013 Paul Howarth - 0.08-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..5be842d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4f081a8a6e82352741c0486784cbc23d Taint-Util-0.08.tar.gz