perl-Test-Taint-vl.spec 3.0 KB

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