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

Revision 6950, 2.0 KB checked in by yasumichi, 12 years ago (diff)

fixed Summary(ja)

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