[perl-Perl-Critic-Moose] Import

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 8d743210b5d6bd683310794ecce620b935148ba4
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Mon Jan 23 18:21:33 2012 +0100

    Import

 .gitignore                  |    1 +
 perl-Perl-Critic-Moose.spec |   65 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 3 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2248aca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Perl-Critic-Moose-0.999_002.tar.gz
diff --git a/perl-Perl-Critic-Moose.spec b/perl-Perl-Critic-Moose.spec
new file mode 100644
index 0000000..084fc7d
--- /dev/null
+++ b/perl-Perl-Critic-Moose.spec
@@ -0,0 +1,65 @@
+%global cpan_version 0.999_002
+Name:           perl-Perl-Critic-Moose
+Version:        %(echo %{cpan_version} | tr '_' '.')
+Release:        1%{?dist}
+Summary:        Policies for Perl::Critic concerned with using Moose
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Perl-Critic-Moose/
+Source0:        http://search.cpan.org/CPAN/authors/id/E/EL/ELLIOTJS/Perl-Critic-Moose-%{cpan_version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(Module::Build)
+# Run-time
+BuildRequires:  perl(base)
+BuildRequires:  perl(Perl::Critic::Policy) >= 1.098
+BuildRequires:  perl(Perl::Critic::Utils) >= 1.098
+BuildRequires:  perl(Perl::Critic::Utils::PPI) >= 1.098
+BuildRequires:  perl(Readonly)
+# Tests only
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Perl::Critic::TestUtils) >= 1.098
+BuildRequires:  perl(Perl::Critic::Violation) >= 1.098
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(Perl::Critic::Policy) >= 1.098
+Requires:       perl(Perl::Critic::Utils) >= 1.098
+Requires:       perl(Perl::Critic::Utils::PPI) >= 1.098
+
+# Remove underspecified dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Perl::Critic::(Policy|Utils(|::PPI))\\)$
+
+# Augment provide versions with development digits
+%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Perl::Critic::(Policy::)?Moose(::.*)?\\)\\s*=
+Provides:       perl(Perl::Critic::Moose) = %{version}
+Provides:       perl(Perl::Critic::Policy::Moose::ProhibitMultipleWiths) = %{version}
+Provides:       perl(Perl::Critic::Policy::Moose::ProhibitNewMethod) = %{version}
+Provides:       perl(Perl::Critic::Policy::Moose::RequireCleanNamespace) = %{version}
+Provides:       perl(Perl::Critic::Policy::Moose::RequireMakeImmutable) = %{version}
+
+%description
+Some Perl::Critic policies that will help you keep your code in good shape
+with regards to Moose.
+
+%prep
+%setup -q -n Perl-Critic-Moose-%{cpan_version}
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+%install
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Thu Jan 19 2012 Petr Pisar <ppisar@xxxxxxxxxx> 0.999.002-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..d0f6ee5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0f97e0fd5977eb67389b17080b648de0  Perl-Critic-Moose-0.999_002.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux