perl-Net-Write-vl.spec 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. %define real_name Net-Write
  2. Summary: Portable interface to open and send raw data to network
  3. Name: perl-%{real_name}
  4. Version: 1.07
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL+
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/Net-Write/
  9. Source: http://www.cpan.org/modules/by-module/Net/Net-Write-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildArch: noarch
  12. BuildRequires: perl(ExtUtils::MakeMaker)
  13. BuildRequires: perl(Class::Gomor)
  14. BuildRequires: perl(Socket6)
  15. BuildRequires: perl(Net::Pcap) >= 0.12
  16. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. %description
  20. A portable interface to open and send raw data to network.
  21. %prep
  22. %setup -q -n %{real_name}-%{version}
  23. %build
  24. perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  25. make %{?_smp_mflags}
  26. %install
  27. rm -rf %{buildroot}
  28. make pure_install DESTDIR=%{buildroot}
  29. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  30. find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
  31. %{_fixperms} %{buildroot}
  32. find examples/ -type f -exec %{__chmod} a-x {} \;
  33. %check
  34. make test
  35. %clean
  36. rm -rf %{buildroot}
  37. %files
  38. %defattr(-, root, root, -)
  39. %doc Changes LICENSE LICENSE.Artistic MANIFEST META.yml README examples/
  40. %{perl_vendorlib}*
  41. %{_mandir}/man3/*
  42. %changelog
  43. * Tue Dec 23 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.07-1
  44. - updated to 1.07
  45. - built with perl 5.16.3
  46. * Sun Mar 11 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.05-1
  47. - initial build for Vine Linux