perl-HTML-ParseBrowser-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
  2. %define srcver 0_5
  3. %define version 0.5
  4. Summary: Simple interface for User Agent string parsing for Perl
  5. Name: perl-HTML-ParseBrowser
  6. Version: %{version}
  7. Release: 0vl3
  8. License: GPL/Artistic
  9. Group: Development/Libraries
  10. Source0: http://www.cpan.org/authors/id/D/DO/DODGER/HTML-ParseBrowser-%{srcver}.tar.gz
  11. URL: http://search.cpan.org/~dodger/HTML-ParseBrowser/
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: perl >= 5.8.2
  14. Requires: perl >= 5.8.2
  15. BuildArch: noarch
  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
  23. %build
  24. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
  25. make
  26. %install
  27. rm -rf $RPM_BUILD_ROOT
  28. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  29. make DESTDIR=$RPM_BUILD_ROOT install
  30. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  31. sed "s@^$RPM_BUILD_ROOT@@g" |
  32. grep -v ^%{_mandir} |
  33. grep -v ParseBrowser.pod |
  34. grep -v perllocal.pod |
  35. grep -v "\.packlist" > %{name}.files
  36. if [ "$(cat %{name}.files)X" = "X" ] ; then
  37. echo "ERROR: EMPTY FILE LIST"
  38. exit -1
  39. fi
  40. %check
  41. make test
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %files -f %{name}.files
  45. %defattr(-,root,root)
  46. %doc Changes README test.pl
  47. %{_mandir}/*/*
  48. %dir %{perl_vendorlib}/HTML
  49. %changelog
  50. * Mon Oct 1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5-0vl3
  51. - changed Group to Development/Libraries
  52. - added %check
  53. * Fri Sep 9 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5-0vl2
  54. - rebuild with perl 5.8.2
  55. - s/Copyright/License/
  56. - updated URL
  57. * Mon Apr 29 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.5-0vl1
  58. - first build for Vine Linux