8
0
Files
perl-HTML-Encoding/perl-HTML-Encoding.spec

58 lines
3.3 KiB
RPMSpec
Raw Normal View History

#norootforbuild
Name: perl-HTML-Encoding
Version: 0.53
Release: 1
Summary: Determine the encoding of HTML/XML/XHTML documents
Group: Development/Libraries/Perl
License: See %{_defaultdocdir}/perl-HTML-Encoding/README file
URL: http://search.cpan.org/dist/HTML-Encoding/
Source0: http://www.cpan.org/authors/id/B/BJ/BJOERN/HTML-Encoding-%{version}.tar.gz
Requires: perl = %{perl_version}
BuildRequires: perl
BuildRequires: perl-HTML-Parser
BuildRequires: perl-libwww-perl
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
HTML::Encoding helps to determine the encoding of HTML and XML/XHTML
documents.
Author:
-------
Bjoern Hoehrmann, <bjoern at hoehrmann.de>
%prep
%setup -q -n HTML-Encoding-%{version}
find . -type f | xargs chmod -c -x
find . -type f | xargs %{__perl} -pi -e 's/\r//g'
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(- ,root, root)
%doc Changes README
%{perl_vendorlib}/HTML/
%{perl_vendorlib}/i586-linux-thread-multi/auto/HTML/Encoding/.packlist
%{_mandir}/man3/HTML::Encoding*.gz
%{_var}/adm/perl-modules/perl-HTML-Encoding
%changelog
* Thu Jun 21 2007 sierkb@gmx.de - Spec file cleanups
* Wed May 23 2007 sierkb@gmx.de - 0.53.
* Tue May 22 2007 sierkb@gmx.de - First openSUSE Build.