perl-Net-MAC-Vendor-vl.spec 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. Name: perl-Net-MAC-Vendor
  2. Summary: Lookup the vendor for a MAC address
  3. Version: 1.18
  4. Release: 1%{?_dist_release}
  5. License: Artistic or GPL
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Net-MAC-Vendor/
  8. Source: http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Net-MAC-Vendor-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildArch: noarch
  11. BuildRequires: perl
  12. BuildRequires: perl(ExtUtils::MakeMaker)
  13. %description
  14. Lookup the vendor for a MAC address.
  15. %prep
  16. %setup -q -n Net-MAC-Vendor-%{version}
  17. %build
  18. %{__perl} Makefile.PL INSTALLDIRS="vendor"
  19. %{__make} %{?_smp_mflags}
  20. %install
  21. %{__rm} -rf %{buildroot}
  22. %{__make} pure_install DESTDIR=%{buildroot}
  23. ### Clean up buildroot
  24. find %{buildroot} -name .packlist -exec %{__rm} {} \;
  25. ### Clean up docs
  26. find examples/ -type f -exec %{__chmod} a-x {} \;
  27. %clean
  28. %{__rm} -rf %{buildroot}
  29. %files
  30. %defattr(-, root, root, 0755)
  31. %doc Changes LICENSE MANIFEST META.yml README examples/
  32. %doc %{_mandir}/man3/Net::MAC::Vendor.3*
  33. %dir %{perl_vendorlib}/Net/MAC/
  34. %{perl_vendorlib}/Net/MAC/Vendor.pm
  35. %changelog
  36. * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.18-1
  37. - initial build for Vine Linux