[perl-Bencode] initial import

Iain Arnell iarnell at fedoraproject.org
Wed Jan 19 04:00:49 UTC 2011


commit 9e030f2c096e697a047f74b87a91f382146a8e23
Author: Iain Arnell <iarnell at gmail.com>
Date:   Wed Jan 19 05:00:28 2011 +0100

    initial import

 .gitignore        |    1 +
 perl-Bencode.spec |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 49 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fc7724b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Bencode-1.4.tar.gz
diff --git a/perl-Bencode.spec b/perl-Bencode.spec
new file mode 100644
index 0000000..6dc5f37
--- /dev/null
+++ b/perl-Bencode.spec
@@ -0,0 +1,47 @@
+Name:           perl-Bencode
+Version:        1.4
+Release:        1%{?dist}
+Summary:        BitTorrent serialization format
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Bencode/
+Source0:        http://www.cpan.org/authors/id/A/AR/ARISTOTLE/Bencode-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+This module implements the BitTorrent bencode serialization format as
+described in http://www.bittorrent.org/protocol.html.
+
+%prep
+%setup -q -n 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
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Sat Jan 15 2011 Iain Arnell <iarnell at gmail.com> 1.4-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..3e459ba 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bdd5f15fd4afec6230be6b0345f62c6f  Bencode-1.4.tar.gz


More information about the scm-commits mailing list