[6885] | 1 | %define pkgname HTML-SimpleParse |
---|
| 2 | |
---|
| 3 | # Basic Information |
---|
| 4 | Name: perl-%{pkgname} |
---|
| 5 | Version: 0.12 |
---|
[6950] | 6 | Release: 2%{?_dist_release} |
---|
[6885] | 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 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 11 | BuildArch: noarch |
---|
| 12 | |
---|
| 13 | Vendor: Project Vine |
---|
| 14 | Distribution: Vine Linux |
---|
| 15 | Packager: yasumichi |
---|
| 16 | |
---|
| 17 | Summary: HTML::SimpleParse - a bare-bones HTML parser |
---|
[6950] | 18 | Summary(ja): HTML::SimpleParse - 簡易 HTML パーサー |
---|
[6885] | 19 | |
---|
| 20 | # Dependency |
---|
| 21 | Requires: perl |
---|
| 22 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 23 | |
---|
| 24 | BuildRequires: perl |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | This module is a simple HTML parser. It is similar in concept to |
---|
| 28 | HTML::Parser, but it differs from HTML::TreeBuilder in a couple of important |
---|
| 29 | ways. |
---|
| 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. |
---|
| 47 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';' |
---|
| 48 | find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';' |
---|
| 49 | find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';' |
---|
| 50 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
| 51 | |
---|
| 52 | # generate file list |
---|
| 53 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 54 | sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files |
---|
| 55 | |
---|
| 56 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 57 | echo "ERROR: EMPTY FILE LIST" |
---|
| 58 | exit -1 |
---|
| 59 | fi |
---|
| 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 |
---|
[6950] | 71 | * Thu Oct 18 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.12-2 |
---|
| 72 | - fixed Summary(ja) |
---|
| 73 | |
---|
[6885] | 74 | * Thu Oct 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.12-1 |
---|
| 75 | - initial build for Vine Linux |
---|