jplesnik pushed to perl-MouseX-StrictConstructor (master). "Initial import"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed May 27 06:43:47 UTC 2015


From 1c5d58e4bd4ebd651868cd2d37eccbec748c9fe9 Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jplesnik at redhat.com>
Date: Wed, 27 May 2015 08:41:29 +0200
Subject: Initial import


diff --git a/.gitignore b/.gitignore
index e69de29..35f7e49 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/MouseX-StrictConstructor-0.02.tar.gz
diff --git a/MouseX-StrictConstructor-0.02-Disable-author-tests.patch b/MouseX-StrictConstructor-0.02-Disable-author-tests.patch
new file mode 100644
index 0000000..83d9bca
--- /dev/null
+++ b/MouseX-StrictConstructor-0.02-Disable-author-tests.patch
@@ -0,0 +1,12 @@
+diff -up MouseX-StrictConstructor-0.02/Makefile.PL.orig MouseX-StrictConstructor-0.02/Makefile.PL
+--- MouseX-StrictConstructor-0.02/Makefile.PL.orig	2015-05-26 15:22:32.116819438 +0200
++++ MouseX-StrictConstructor-0.02/Makefile.PL	2015-05-26 15:22:57.770143503 +0200
+@@ -7,8 +7,5 @@ requires 'Mouse' => '0.62';
+ test_requires 'Test::More' => 0.88; # done_testing()
+ 
+ tests_recursive;
+-author_tests 'xt';
+-
+-auto_set_repository() if -d '.git';
+ 
+ WriteAll(check_nmake => 1);
diff --git a/perl-MouseX-StrictConstructor.spec b/perl-MouseX-StrictConstructor.spec
new file mode 100644
index 0000000..f753051
--- /dev/null
+++ b/perl-MouseX-StrictConstructor.spec
@@ -0,0 +1,56 @@
+Name:           perl-MouseX-StrictConstructor
+Version:        0.02
+Release:        1%{?dist}
+Summary:        Make your object constructors blow up on unknown attributes
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/MouseX-StrictConstructor/
+Source0:        http://www.cpan.org/authors/id/G/GF/GFUJI/MouseX-StrictConstructor-%{version}.tar.gz
+Patch0:         MouseX-StrictConstructor-0.02-Disable-author-tests.patch
+BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl(inc::Module::Install)
+BuildRequires:  perl(Module::Install::Makefile)
+BuildRequires:  perl(Module::Install::Metadata)
+BuildRequires:  perl(Module::Install::WriteAll)
+BuildRequires:  perl(Mouse) >= 0.62
+BuildRequires:  perl(Mouse::Exporter)
+BuildRequires:  perl(Test::More) >= 0.88
+BuildRequires:  perl(Test::Mouse)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(Mouse) >= 0.62
+
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Mouse\\)
+
+%description
+Simply loading this module makes your constructors "strict". If your
+constructor is called with an attribute argument that your class does not
+declare, then it dies. This is a great way to catch small typos.
+
+%prep
+%setup -q -n MouseX-StrictConstructor-%{version}
+%patch0 -p1
+rm -r inc
+sed -i -e '/^inc\// d' MANIFEST
+find -type f -exec chmod -x {} +
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue May 26 2015 Jitka Plesnikova <jplesnik at redhat.com> - 0.02-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..e40d0d0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cb4321d832c2ef3a613969cb205d9523  MouseX-StrictConstructor-0.02.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-MouseX-StrictConstructor.git/commit/?h=master&id=1c5d58e4bd4ebd651868cd2d37eccbec748c9fe9


More information about the scm-commits mailing list