1 | %define pkgname HTML-SimpleParse |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 0.12 |
---|
6 | Release: 3%{?_dist_release} |
---|
7 | License: Artistic or GPL |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/%{pkgname}-%{version}.tar.gz |
---|
10 | |
---|
11 | Summary: a bare-bones HTML parser |
---|
12 | Summary(ja): 簡易 HTML パーサー |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | BuildArch: noarch |
---|
16 | BuildRequires: perl |
---|
17 | # Dependency |
---|
18 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
19 | |
---|
20 | Vendor: Project Vine |
---|
21 | Distribution: Vine Linux |
---|
22 | Packager: yasumichi |
---|
23 | |
---|
24 | |
---|
25 | %description |
---|
26 | This module is a simple HTML parser. It is similar in concept to |
---|
27 | HTML::Parser, but it differs from HTML::TreeBuilder in a couple of important |
---|
28 | ways. |
---|
29 | |
---|
30 | %description -l ja |
---|
31 | このモジュールは、簡易 HTML パーサーです。HTML::Parser のコンセプトに似てい |
---|
32 | ますが、2、3 の重要な点で HTML::TreeBuilder と異なっています。 |
---|
33 | |
---|
34 | %prep |
---|
35 | %setup -q -n HTML-SimpleParse-0.12 |
---|
36 | |
---|
37 | %build |
---|
38 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
---|
39 | %{__make} %{?_smp_mflags} |
---|
40 | |
---|
41 | %install |
---|
42 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
43 | %{__make} pure_install DESTDIR=${RPM_BUILD_ROOT} |
---|
44 | |
---|
45 | # remove unnecessary files. |
---|
46 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';' |
---|
47 | find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';' |
---|
48 | find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';' |
---|
49 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
50 | |
---|
51 | # generate file list |
---|
52 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
53 | sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files |
---|
54 | |
---|
55 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
56 | echo "ERROR: EMPTY FILE LIST" |
---|
57 | exit -1 |
---|
58 | fi |
---|
59 | |
---|
60 | |
---|
61 | %clean |
---|
62 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
63 | |
---|
64 | %check |
---|
65 | %{__make} test |
---|
66 | |
---|
67 | |
---|
68 | %files -f %{name}.files |
---|
69 | %defattr(-,root,root) |
---|
70 | %doc Changes README |
---|
71 | |
---|
72 | %changelog |
---|
73 | * Sat Oct 25 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.12-3 |
---|
74 | - rebuilt with perl-5.16.3 |
---|
75 | |
---|
76 | * Thu Oct 18 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.12-2 |
---|
77 | - fixed Summary(ja) |
---|
78 | |
---|
79 | * Thu Oct 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.12-1 |
---|
80 | - initial build for Vine Linux |
---|