source: projects/specs/trunk/p/perl-HTML-SimpleParse/perl-HTML-SimpleParse-vl.spec @ 9023

Revision 9023, 2.1 KB checked in by inagaki, 10 years ago (diff)

2014-10-25 Ryoichi INAGAKI <ryo1@…>

  • perl-CGI-{Application, Session, Simple}: updated
  • perl-Class-ISA: new
  • perl-HTML-SimpleParse?: rebuilt


Line 
1%define pkgname HTML-SimpleParse
2
3# Basic Information
4Name:           perl-%{pkgname}
5Version:        0.12
6Release:        3%{?_dist_release}
7License:        Artistic or GPL
8Group:          Development/Libraries
9Source0:        http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/%{pkgname}-%{version}.tar.gz
10
11Summary:        a bare-bones HTML parser
12Summary(ja):    簡易 HTML パーサー
13
14BuildRoot:      %{_tmppath}/%{name}-%{version}-root
15BuildArch:      noarch
16BuildRequires:  perl
17# Dependency
18Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
19
20Vendor:         Project Vine
21Distribution:   Vine Linux
22Packager:       yasumichi
23
24
25%description
26This module is a simple HTML parser. It is similar in concept to
27HTML::Parser, but it differs from HTML::TreeBuilder in a couple of important
28ways.
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.
46find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';'
47find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
48find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
49find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
50
51# generate file list
52find $RPM_BUILD_ROOT%{_prefix} -type f -print |
53        sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files
54
55if [ "$(cat %{name}.files)X" = "X" ] ; then
56        echo "ERROR: EMPTY FILE LIST"
57        exit -1
58fi
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
Note: See TracBrowser for help on using the repository browser.