[perl-Perl-Critic-Nits] Import

Petr Pisar ppisar at fedoraproject.org
Tue Mar 15 17:40:25 UTC 2011


commit 47e8b966d4474ece70a2ec661c32936b57550e96
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue Mar 15 18:39:57 2011 +0100

    Import

 .gitignore                 |    1 +
 perl-Perl-Critic-Nits.spec |   51 ++++++++++++++++++++++++++++++++++++++++++++
 sources                    |    1 +
 3 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..193271c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Perl-Critic-Nits-v1.0.0.tar.gz
diff --git a/perl-Perl-Critic-Nits.spec b/perl-Perl-Critic-Nits.spec
new file mode 100644
index 0000000..1ec96ef
--- /dev/null
+++ b/perl-Perl-Critic-Nits.spec
@@ -0,0 +1,51 @@
+Name:           perl-Perl-Critic-Nits
+Version:        1.0.0
+Release:        1%{?dist}
+Summary:        Policies of nits I like to pick
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Perl-Critic-Nits/
+Source0:        http://www.cpan.org/authors/id/K/KC/KCOWGILL/Perl-Critic-Nits-v%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Perl::Critic) >= 1.07
+# Missing in META.yml
+BuildRequires:  perl(Readonly)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Plug-in for perlcritics/Test::More. Require them.
+Requires:       perl(Perl::Critic) >= 1.07
+Requires:       perl(Test::More)
+
+%description
+The included policy is:
+Perl::Critic::Policy::ValuesAndExpressions::ProhibitAccessOfPrivateData
+(Prohibits direct access to a hash-based object's hash).
+
+%prep
+%setup -q -n Perl-Critic-Nits-v%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=perl
+make %{?_smp_mflags}
+
+%install
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_privlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Jan 25 2011 Petr Pisar <ppisar at redhat.com> 1.0.0-1
+- Specfile autogenerated by cpanspec 1.78.
+- Remove BuildRoot stuff
+- Install into perl core directory
diff --git a/sources b/sources
index e69de29..ddc24ee 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e31188815713b86eb57a8889f19c45b2  Perl-Critic-Nits-v1.0.0.tar.gz



More information about the perl-devel mailing list