source: projects/specs/trunk/p/perl-HTML-ParseBrowser/perl-HTML-ParseBrowser-vl.spec @ 9189

Revision 9189, 2.0 KB checked in by inagaki, 9 years ago (diff)

2014-12-24 Ryoichi INAGAKI <ryo1@…>


Line 
1Summary: Simple interface for User Agent string parsing for Perl
2Name: perl-HTML-ParseBrowser
3Version: 1.09
4Release: 1%{?_dist_release}
5License: GPL+ or Artistic
6Group: Development/Libraries
7URL: http://search.cpan.org/~dodger/HTML-ParseBrowser/
8
9Source0: http://www.cpan.org/authors/id/D/DO/DODGER/HTML-ParseBrowser-%{version}.tar.gz
10
11BuildRoot: %{_tmppath}/%{name}-%{version}-root
12BuildArch: noarch
13BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
14BuildRequires: perl(Test::More)
15Requires:      perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
16
17Vendor:         Project Vine
18Distribution:   Vine Linux
19
20%description
21The HTML::ParseBrowser is an Object-Oriented interface for parsing a User Agent
22string. It provides simple autoloaded methods for retrieving both the actual
23values stored in the interpreted (and, so far, correct) information that these
24wildly varying and nonstandardised strings attempt to convey.
25
26%prep
27%setup -q -n HTML-ParseBrowser-%{version}
28
29%build
30CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
31make
32
33%install
34rm -rf $RPM_BUILD_ROOT
35make pure_install DESTDIR=$RPM_BUILD_ROOT
36
37# remove unnecessary files.
38find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec %{__rm} -f {} ';'
39find $RPM_BUILD_ROOT -type f -name .packlist -exec %{__rm} -f {} ';'
40find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
41
42%{_fixperms} $RPM_BUILD_ROOT
43
44%check
45make test
46
47%clean
48rm -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
Note: See TracBrowser for help on using the repository browser.