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