[perl-Safe-Isa] initial import (rhbz#855656)

Iain Arnell iarnell at fedoraproject.org
Sat Sep 15 15:10:37 UTC 2012


commit decfd27b968cd3fd55e1f5a22d7e75d232670695
Author: Iain Arnell <iarnell at gmail.com>
Date:   Sat Sep 15 09:10:32 2012 -0600

    initial import (rhbz#855656)

 .gitignore         |    1 +
 perl-Safe-Isa.spec |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6ecf35d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Safe-Isa-1.000002.tar.gz
diff --git a/perl-Safe-Isa.spec b/perl-Safe-Isa.spec
new file mode 100644
index 0000000..ff39ca2
--- /dev/null
+++ b/perl-Safe-Isa.spec
@@ -0,0 +1,56 @@
+Name:           perl-Safe-Isa
+Version:        1.000002
+Release:        1%{?dist}
+Summary:        Call isa, can, does and DOES safely on things that may not be objects
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Safe-Isa/
+Source0:        http://www.cpan.org/authors/id/M/MS/MSTROUT/Safe-Isa-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Scalar::Util)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(base)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+How many times have you found yourself writing:
+
+  if ($obj->isa('Something')) {
+
+and then shortly afterwards cursing and changing it to:
+
+  if (Scalar::Util::blessed($obj) and $obj->isa('Something')) {
+
+Right. That's why this module exists.
+
+%prep
+%setup -q -n Safe-Isa-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor --skipdeps
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+
+%{_fixperms} %{buildroot}/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Sat Sep 08 2012 Iain Arnell <iarnell at gmail.com> 1.000002-1
+- Specfile autogenerated by cpanspec 1.79.
diff --git a/sources b/sources
index e69de29..1e5035a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+67dfd4985b5c9d43d427b97271d67d9a  Safe-Isa-1.000002.tar.gz



More information about the perl-devel mailing list