commit 6431ae30483529765b1ad6964b45363f9b4efbe5 Author: Iain Arnell <iarnell@xxxxxxxxx> Date: Wed Jan 19 05:03:17 2011 +0100 initial import .gitignore | 1 + perl-Convert-Bencode_XS.spec | 48 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 50 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..ecec3f0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Convert-Bencode_XS-0.06.tar.gz diff --git a/perl-Convert-Bencode_XS.spec b/perl-Convert-Bencode_XS.spec new file mode 100644 index 0000000..0e6bfca --- /dev/null +++ b/perl-Convert-Bencode_XS.spec @@ -0,0 +1,48 @@ +Name: perl-Convert-Bencode_XS +Version: 0.06 +Release: 1%{?dist} +Summary: Faster conversions to/from Bencode format +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Convert-Bencode_XS/ +Source0: http://www.cpan.org/authors/id/I/IW/IWADE/Convert-Bencode_XS-%{version}.tar.gz +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +This module provides two functions, bencode and bdecode, which encode and +decode bencoded strings respectively. + +%prep +%setup -q -n Convert-Bencode_XS-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Convert* +%{_mandir}/man3/* + +%changelog +* Sat Jan 15 2011 Iain Arnell <iarnell@xxxxxxxxx> 0.06-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..f14debc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +472a1081a20b0d42175e103c7c84b0ef Convert-Bencode_XS-0.06.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel