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 | |
---|
9 | Source0: http://www.cpan.org/authors/id/D/DO/DODGER/HTML-ParseBrowser-%{version}.tar.gz |
---|
10 | |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
12 | BuildArch: noarch |
---|
13 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 |
---|
14 | BuildRequires: perl(Test::More) |
---|
15 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
16 | |
---|
17 | Vendor: Project Vine |
---|
18 | Distribution: Vine Linux |
---|
19 | |
---|
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 |
---|
27 | %setup -q -n HTML-ParseBrowser-%{version} |
---|
28 | |
---|
29 | %build |
---|
30 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" |
---|
31 | make |
---|
32 | |
---|
33 | %install |
---|
34 | rm -rf $RPM_BUILD_ROOT |
---|
35 | make pure_install DESTDIR=$RPM_BUILD_ROOT |
---|
36 | |
---|
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 \; |
---|
41 | |
---|
42 | %{_fixperms} $RPM_BUILD_ROOT |
---|
43 | |
---|
44 | %check |
---|
45 | make test |
---|
46 | |
---|
47 | %clean |
---|
48 | rm -rf $RPM_BUILD_ROOT |
---|
49 | |
---|
50 | %files |
---|
51 | %defattr(-,root,root) |
---|
52 | %doc Changes README |
---|
53 | %{perl_vendorlib}/HTML |
---|
54 | %{_mandir}/*/* |
---|
55 | |
---|
56 | %changelog |
---|
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 | |
---|
61 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5-1 |
---|
62 | - rebuild with perl-5.12.3 |
---|
63 | |
---|
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 |
---|