perl-Thread-Conveyor-Monitored-vl.spec 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. %define real_name Thread-Conveyor-Monitored
  2. Summary: Monitor a belt for specific content
  3. Name: perl-Thread-Conveyor-Monitored
  4. Version: 0.14
  5. Release: 2%{?_dist_release}
  6. License: Artistic or GPL+
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/Thread-Conveyor/
  9. Source: http://www.cpan.org/modules/by-module/Thread/Thread-Conveyor-Monitored-%{version}.tar.gz
  10. BuildArch: noarch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: perl
  13. BuildRequires: perl(ExtUtils::MakeMaker)
  14. BuildRequires: perl(load)
  15. BuildRequires: perl(Thread::Conveyor) >= 0.15
  16. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. %description
  20. The Thread::Conveyor::Monitored module implements a single worker
  21. thread that takes of boxes of values from a belt created with
  22. Thread::Conveyor and which checks the boxes for specific content.
  23. It can be used for simply logging actions that are placed on the belt.
  24. Or only output warnings if a certain value is encountered in a box. Or
  25. create a safe sandbox for Perl modules that are not thread-safe yet.
  26. This module only functions on Perl versions 5.8.0 and later.
  27. And then only when threads are enabled with -Dusethreads. It
  28. is of no use with any version of Perl before 5.8.0 or without
  29. threads enabled.
  30. %prep
  31. %setup -q -n %{real_name}-%{version}
  32. %build
  33. perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  34. make %{?_smp_mflags}
  35. %install
  36. rm -rf %{buildroot}
  37. make pure_install DESTDIR=%{buildroot}
  38. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  39. find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
  40. %{_fixperms} %{buildroot}
  41. %check
  42. make test
  43. %clean
  44. rm -rf %{buildroot}
  45. %files
  46. %defattr(-, root, root, -)
  47. %doc MANIFEST README CHANGELOG TODO
  48. %{perl_vendorlib}/*
  49. %{_mandir}/man3/*
  50. %changelog
  51. * Mon Dec 1 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.14-2
  52. - rebuilt with perl 5.16.3
  53. * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.14-1
  54. - initial build for Vine Linux