fix bug 176720: upgrade to 3.10; make .spec file conform to

fedora-rpmdevtools perl .spec template
This commit is contained in:
jvdias 2006-01-10 17:10:44 +00:00
parent 4b52c671ba
commit 760a7a449d
3 changed files with 31 additions and 22 deletions

View File

@ -1,2 +1,3 @@
HTML-Tagset-3.03.tar.gz
HTML-Tagset-3.04.tar.gz
HTML-Tagset-3.10.tar.gz

View File

@ -1,15 +1,17 @@
Summary: HTML::Tagset - data tables useful in parsing HTML.
Name: perl-HTML-Tagset
Version: 3.04
Release: 2.1.1
License: Artistic or GPL
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/S/SB/SBURKE/HTML-Tagset-%{version}.tar.gz
URL: http://search.cpan.org/dist/HTML-Tagset/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: perl >= 0:5.00503
Requires: perl >= 0:5.00503
BuildArch: noarch
Name: perl-HTML-Tagset
Version: 3.10
Release: 1
Summary: HTML::Tagset - data tables useful in parsing HTML.
Group: Development/Libraries
License: Artistic or GPL
URL: http://search.cpan.org/dist/HTML-Tagset/
Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/HTML-Tagset-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module contains several data tables useful in various kinds of
@ -19,26 +21,32 @@ HTML parsing operations, such as tag and entity names.
%setup -q -n HTML-Tagset-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor
make
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
make test
%install
rm -rf $RPM_BUILD_ROOT
make install
find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -fv {} \;
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc ChangeLog README
%{perl_vendorlib}/HTML/*.pm
%{_mandir}/man?/HTML::Tagset*.gz
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/HTML/*
%{_mandir}/man?/HTML::Tagset*
%changelog
* Tue Jan 10 2006 Jason Vas Dias <jvdias@redhat.com> - 3.10-1
- fix bug 176720: upgrade to 3.10
- make .spec file conform to fedora-rpmdevtools spectemplate-perl.spec
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt for new gcc

View File

@ -1 +1 @@
b82e0f08c1ececefe98b891f30dd56a6 HTML-Tagset-3.04.tar.gz
89bdd351272ccd285fa61c5b2ce451ab HTML-Tagset-3.10.tar.gz