6431ae3
Name:           perl-Convert-Bencode_XS
6431ae3
Version:        0.06
6431ae3
Release:        1%{?dist}
6431ae3
Summary:        Faster conversions to/from Bencode format
6431ae3
License:        GPL+ or Artistic
6431ae3
Group:          Development/Libraries
6431ae3
URL:            http://search.cpan.org/dist/Convert-Bencode_XS/
6431ae3
Source0:        http://www.cpan.org/authors/id/I/IW/IWADE/Convert-Bencode_XS-%{version}.tar.gz
6431ae3
BuildRequires:  perl(Exporter)
6431ae3
BuildRequires:  perl(ExtUtils::MakeMaker)
6431ae3
BuildRequires:  perl(Test::More)
6431ae3
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
6431ae3
6431ae3
%{?perl_default_filter}
6431ae3
6431ae3
%description
6431ae3
This module provides two functions, bencode and bdecode, which encode and
6431ae3
decode bencoded strings respectively.
6431ae3
6431ae3
%prep
6431ae3
%setup -q -n Convert-Bencode_XS-%{version}
6431ae3
6431ae3
%build
6431ae3
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
6431ae3
make %{?_smp_mflags}
6431ae3
6431ae3
%install
6431ae3
make pure_install DESTDIR=%{buildroot}
6431ae3
6431ae3
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
6431ae3
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
6431ae3
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
6431ae3
6431ae3
%{_fixperms} %{buildroot}/*
6431ae3
6431ae3
%check
6431ae3
make test
6431ae3
6431ae3
%files
6431ae3
%defattr(-,root,root,-)
6431ae3
%doc Changes README
6431ae3
%{perl_vendorarch}/auto/*
6431ae3
%{perl_vendorarch}/Convert*
6431ae3
%{_mandir}/man3/*
6431ae3
6431ae3
%changelog
6431ae3
* Sat Jan 15 2011 Iain Arnell <iarnell@gmail.com> 0.06-1
6431ae3
- Specfile autogenerated by cpanspec 1.78.