[perl-Perl-Metrics-Simple] Import

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

 



commit cb8f3acba03cfec884ed5addbab008912eb94dae
Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx>
Date:   Wed Jan 26 10:04:16 2011 +0100

    Import

 .gitignore                    |    1 +
 perl-Perl-Metrics-Simple.spec |   71 +++++++++++++++++++++++++++++++++++++++++
 sources                       |    1 +
 3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6498e62 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Perl-Metrics-Simple-0.15.tar.gz
diff --git a/perl-Perl-Metrics-Simple.spec b/perl-Perl-Metrics-Simple.spec
new file mode 100644
index 0000000..f213036
--- /dev/null
+++ b/perl-Perl-Metrics-Simple.spec
@@ -0,0 +1,71 @@
+Name:           perl-Perl-Metrics-Simple
+Version:        0.15
+Release:        1%{?dist}
+Summary:        Count packages, subs, lines, etc. of many files
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Perl-Metrics-Simple/
+Source0:        http://www.cpan.org/authors/id/M/MA/MATISSE/Perl-Metrics-Simple-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(File::Basename)
+BuildRequires:  perl(File::Find) >= 1.01
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(IO::File) >= 1.14
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(PPI) >= 1.113
+BuildRequires:  perl(Readonly) >= 1.03
+BuildRequires:  perl(Readonly::XS) >= 1.02
+BuildRequires:  perl(Statistics::Basic::Mean)
+BuildRequires:  perl(Statistics::Basic::Median)
+BuildRequires:  perl(Statistics::Basic::StdDev)
+BuildRequires:  perl(Test::Pod) >= 1
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
+Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:   perl(File::Find) >= 1.01
+Requires:   perl(IO::File) >= 1.14
+Requires:   perl(PPI) >= 1.113
+Requires:   perl(Readonly) >= 1.03
+Requires:   perl(Readonly::XS) >= 1.02
+
+# Filter underspecified dependencies
+%filter_from_requires /^perl(File::Find)$/d
+%filter_from_requires /^perl(IO::File)$/d
+%filter_from_requires /^perl(PPI)$/d
+%filter_from_requires /^perl(Readonly)$/d
+%filter_setup
+
+%description
+Perl::Metrics::Simple provides just enough methods to run static analysis
+of one or many Perl files and obtain a few metrics: packages, subroutines,
+lines of code, and an approximation of cyclomatic (McCabe) complexity for
+the subroutines and the "main" portion of the code.
+
+%prep
+%setup -q -n Perl-Metrics-Simple-%{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
+%defattr(-,root,root,-)
+%doc Changes EXAMPLES LICENSE README Todo
+%{_bindir}/*
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+%{_mandir}/man1/*
+
+%changelog
+* Mon Jan 24 2011 Petr Pisar <ppisar@xxxxxxxxxx> 0.15-1
+- Specfile autogenerated by cpanspec 1.78.
+- Remove BuildRoot stuff
+- Tune dependencies
diff --git a/sources b/sources
index e69de29..55c6dd9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e58c943ce8ee0ec6d1c338fa133b86af  Perl-Metrics-Simple-0.15.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