[perl-Test-HexString] Initial packaging of perl-Test-HexString.

Mathieu Bridon bochecha at fedoraproject.org
Mon Sep 19 10:28:04 UTC 2011


commit 8dc9c7cf444f3af8c2d14517d5683b1a63e7f2cd
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Thu Sep 15 15:26:28 2011 +0800

    Initial packaging of perl-Test-HexString.
    
    This package was submitted for review in Fedora on Thu Sep 15 2011:
        https://bugzilla.redhat.com/show_bug.cgi?id=738554#c0

 perl-Test-HexString.spec |   57 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/perl-Test-HexString.spec b/perl-Test-HexString.spec
new file mode 100644
index 0000000..5148616
--- /dev/null
+++ b/perl-Test-HexString.spec
@@ -0,0 +1,57 @@
+Name:           perl-Test-HexString
+Version:        0.02
+Release:        1%{?dist}
+Summary:        Test binary strings with hex dump diagnostics
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Test-HexString/
+Source0:        http://www.cpan.org/authors/id/P/PE/PEVANS/Test-HexString-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Test::Builder)
+BuildRequires:  perl(Test::Builder::Tester)
+BuildRequires:  perl(Test::More)
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(Test::Builder)
+
+%{?perl_default_filter}
+
+%description
+This testing module provides a single function, is_hexstr(), which asserts
+that the given string matches what was expected. When the strings match
+(i.e. compare equal using the eq operator), the behaviour is identical to
+the usual is() function provided by Test::More.
+
+%prep
+%setup -q -n Test-HexString-%{version}
+
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+
+%install
+./Build install destdir=%{buildroot} create_packlist=0
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} %{buildroot}/*
+
+
+%check
+./Build test
+
+
+%files
+%defattr(-,root,root,-)
+%doc Changes LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+
+%changelog
+* Thu Sep 15 2011 Mathieu Bridon <bochecha at fedoraproject.org> 0.02-1
+- Specfile autogenerated by cpanspec 1.78.


More information about the scm-commits mailing list