perl-Test-Taint-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Summary: Tools to test taintedness
  2. Name: perl-Test-Taint
  3. Version: 1.04
  4. Release: 1%{?_dist_release}
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Test-Taint/
  8. Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/Test-Taint-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildRequires: perl
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  13. BuildRequires: perl(Test::Pod) >= 1.00
  14. BuildRequires: perl(Test::Pod::Coverage) >= 0.08
  15. %description
  16. Tainted data is data that comes from an unsafe source, such as the command
  17. line, or, in the case of web apps, any GET or POST transactions. Read the
  18. perlsec man page for details on why tainted data is bad, and how to untaint
  19. the data.
  20. When you're writing unit tests for code that deals with tainted data, you'll
  21. want to have a way to provide tainted data for your routines to handle, and
  22. easy ways to check and report on the taintedness of your data, in standard
  23. Test::More style.
  24. %prep
  25. %setup -q -n Test-Taint-%{version}
  26. %build
  27. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="${RPM_OPT_FLAGS}"
  28. %{__make} %{?_smp_mflags}
  29. %install
  30. %{__rm} -rf $RPM_BUILD_ROOT
  31. %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  32. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  33. find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
  34. find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
  35. %{__chmod} -R u+w $RPM_BUILD_ROOT/*
  36. %clean
  37. %{__rm} -rf $RPM_BUILD_ROOT
  38. %check
  39. %{__make} test
  40. %files
  41. %defattr(-,root,root,-)
  42. %doc Changes
  43. %{perl_vendorarch}/Test
  44. %{perl_vendorarch}/auto/Test
  45. %{_mandir}/man3/*
  46. %changelog
  47. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.04-1
  48. - initial build for Vine Linux based on fedora development
  49. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-9
  50. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  51. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-8
  52. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  53. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.04-7
  54. - Rebuild for perl 5.10 (again)
  55. * Sun Feb 10 2008 Ralf Cors辿pius <rc040203@freenet.de> - 1.04-6
  56. - Rebuild for gcc43.
  57. * Mon Jan 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.04-5
  58. - rebuild for new perl
  59. * Fri Aug 17 2007 Ralf Cors辿pius <rc040203@freenet.de> - 1.04-4
  60. - Reflect perl-package split.
  61. - Update license tag.
  62. * Tue Sep 05 2006 Ralf Cors辿pius <rc040203@freenet.de> - 1.04-3
  63. - Mass rebuild.
  64. * Mon Feb 20 2006 Ralf Corsepius <rc040203@freenet.de> - 1.04-2
  65. - Rebuild.
  66. * Wed Aug 10 2005 Ralf Corsepius <ralf@links2linux.de> - 1.04-1
  67. - FE submission.
  68. * Sun Mar 20 2005 Ralf Corsepius <ralf@links2linux.de> - 1.04-0.pm.2
  69. - Initial version.