Fix the dep list

This commit is contained in:
Petr Šabata 2012-11-23 11:37:19 +01:00
parent 7cb3ba1504
commit 3c811b9e8a

View File

@ -1,22 +1,24 @@
%define real_name HTML-Parser
Name: perl-%{real_name}
Name: perl-HTML-Parser
Summary: Perl module for parsing HTML
Version: 3.69
Release: 8%{?dist}
Release: 9%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-%{version}.tar.gz
URL: http://search.cpan.org/dist/HTML-Parser/
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(HTML::Tagset) >= 3
%if %{undefined perl_bootstrap}
# This creates cycle with perl-HTTP-Message.
BuildRequires: perl(HTTP::Headers)
%endif
BuildRequires: perl(IO::File)
BuildRequires: perl(Test::More)
BuildRequires: perl(threads)
BuildRequires: perl(URI)
BuildRequires: perl(XSLoader)
Requires: perl(HTML::Tagset) >= 3
@ -33,21 +35,20 @@ HTML documents, including the HTML::Entities, HTML::HeadParser,
HTML::LinkExtor, HTML::PullParser, and HTML::TokeParser modules.
%prep
%setup -q -n %{real_name}-%{version}
%setup -q -n HTML-Parser-%{version}
chmod -c a-x eg/*
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
make pure_install DESTDIR=%{buildroot}
file=%{buildroot}%{_mandir}/man3/HTML::Entities.3pm
iconv -f iso-8859-1 -t utf-8 <"$file" > "${file}_"
mv -f "${file}_" "$file"
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%check
@ -59,8 +60,11 @@ make test
%{perl_vendorarch}/auto/HTML/
%{_mandir}/man3/*.3pm*
%changelog
* Fri Nov 23 2012 Petr Šabata <contyk@redhat.com> - 3.69-9
- Fix the dep list
- Modernize the spec a bit
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.69-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild