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