diff --git a/.gitignore b/.gitignore index e69de29..b7acc0e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Convert-Bencode-1.03.tar.gz diff --git a/perl-Convert-Bencode.spec b/perl-Convert-Bencode.spec new file mode 100644 index 0000000..c2734dd --- /dev/null +++ b/perl-Convert-Bencode.spec @@ -0,0 +1,47 @@ +Name: perl-Convert-Bencode +Version: 1.03 +Release: 1%{?dist} +Summary: Functions for converting to/from bencoded strings +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Convert-Bencode/ +Source0: http://www.cpan.org/authors/id/O/OR/ORCLEV/Convert-Bencode-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) >= 0.45 +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-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README Todo +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sat Jan 15 2011 Iain Arnell 1.03-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..6cc6d2d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +be0831c69fe581908d33bbebff0b5760 Convert-Bencode-1.03.tar.gz