[perl-CPANPLUS-Dist-Fedora/f20] Initial SETUP.

Christopher Meng cicku at fedoraproject.org
Mon Sep 2 00:24:07 UTC 2013


commit 5003e6a481d402f72929e675fc8823f44ebdaf2e
Author: Christopher Meng <rpm at cicku.me>
Date:   Mon Sep 2 08:22:33 2013 +0800

    Initial SETUP.

 .gitignore                     |    1 +
 perl-CPANPLUS-Dist-Fedora.spec |   65 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 3 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d993ca3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/CPANPLUS-Dist-Fedora-v0.0.4.tar.gz
diff --git a/perl-CPANPLUS-Dist-Fedora.spec b/perl-CPANPLUS-Dist-Fedora.spec
new file mode 100644
index 0000000..0b13cc8
--- /dev/null
+++ b/perl-CPANPLUS-Dist-Fedora.spec
@@ -0,0 +1,65 @@
+%global pkgname CPANPLUS-Dist-Fedora
+
+Name:           perl-CPANPLUS-Dist-Fedora
+Version:        0.0.4
+Release:        1%{?dist}
+Summary:        CPANPLUS backend to build Fedora/RedHat RPMs
+License:        GPL+ or Artistic
+URL:            http://search.cpan.org/dist/CPANPLUS-Dist-Fedora/
+Source0:        http://www.cpan.org/authors/id/S/SH/SHLOMIF/%{pkgname}-v%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl >= 5.008
+BuildRequires:  perl(CPANPLUS)
+BuildRequires:  perl(CPANPLUS::Dist::Base)
+BuildRequires:  perl(CPANPLUS::Error)
+BuildRequires:  perl(IPC::Cmd)
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Pod::POM)
+BuildRequires:  perl(Pod::POM::View::Text)
+BuildRequires:  perl(Template)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Pod)
+BuildRequires:  perl(Test::Pod::Coverage)
+#Tests only.
+BuildRequires:  perl(Test::TrailingSpace)
+
+Requires:       perl(CPANPLUS)
+Requires:       perl(CPANPLUS::Dist::Base)
+Requires:       perl(CPANPLUS::Error)
+Requires:       perl(IPC::Cmd)
+Requires:       perl(Pod::POM)
+Requires:       perl(Pod::POM::View::Text)
+Requires:       perl(Template)
+Requires:       perl(Test::Pod)
+Requires:       perl(Test::Pod::Coverage)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This is a distribution class to create Fedora packages from CPAN modules, 
+and all its dependencies. This allows you to have the most recent copies of 
+CPAN modules installed, using your package manager of choice, but without 
+having to wait for central repositories to be updated.
+
+%prep
+%setup -qn %{pkgname}-v%{version}
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+%install
+./Build install destdir=%{buildroot} create_packlist=0
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} %{buildroot}/*
+
+%check
+./Build test
+
+%files
+%doc Changes LICENSE META.json README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Sun May 26 2013 Christopher Meng <rpm at cicku.me> - 0.0.4-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..f4a056c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+136e117c8e73bf445dc7b94fd1d3370a  CPANPLUS-Dist-Fedora-v0.0.4.tar.gz


More information about the scm-commits mailing list