perl-HTML-ParseBrowser-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Summary: Simple interface for User Agent string parsing for Perl
  2. Name: perl-HTML-ParseBrowser
  3. Version: 1.09
  4. Release: 1%{?_dist_release}
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/~dodger/HTML-ParseBrowser/
  8. Source0: http://www.cpan.org/authors/id/D/DO/DODGER/HTML-ParseBrowser-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
  12. BuildRequires: perl(Test::More)
  13. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. The HTML::ParseBrowser is an Object-Oriented interface for parsing a User Agent
  18. string. It provides simple autoloaded methods for retrieving both the actual
  19. values stored in the interpreted (and, so far, correct) information that these
  20. wildly varying and nonstandardised strings attempt to convey.
  21. %prep
  22. %setup -q -n HTML-ParseBrowser-%{version}
  23. %build
  24. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
  25. make
  26. %install
  27. rm -rf $RPM_BUILD_ROOT
  28. make pure_install DESTDIR=$RPM_BUILD_ROOT
  29. # remove unnecessary files.
  30. find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec %{__rm} -f {} ';'
  31. find $RPM_BUILD_ROOT -type f -name .packlist -exec %{__rm} -f {} ';'
  32. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
  33. %{_fixperms} $RPM_BUILD_ROOT
  34. %check
  35. make test
  36. %clean
  37. rm -rf $RPM_BUILD_ROOT
  38. %files
  39. %defattr(-,root,root)
  40. %doc Changes README
  41. %{perl_vendorlib}/HTML
  42. %{_mandir}/*/*
  43. %changelog
  44. * Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.09-1
  45. - updated to 1.09
  46. - built with perl 5.16.3
  47. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5-1
  48. - rebuild with perl-5.12.3
  49. * Mon Oct 1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5-0vl3
  50. - changed Group to Development/Libraries
  51. - added %check
  52. * Fri Sep 9 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5-0vl2
  53. - rebuild with perl 5.8.2
  54. - s/Copyright/License/
  55. - updated URL
  56. * Mon Apr 29 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.5-0vl1
  57. - first build for Vine Linux