[1/7] perl-Module-Install: New package

Message ID 20230226191904.675207-1-stefan.schantl@ipfire.org
State Accepted
Commit 3e54c61523254617e41608f2ff903f30d606fbf5
Headers
Series [1/7] perl-Module-Install: New package |

Commit Message

Stefan Schantl Feb. 26, 2023, 7:18 p.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 perl-Module-Install/perl-Module-Install.nm | 57 ++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 perl-Module-Install/perl-Module-Install.nm
  

Patch

diff --git a/perl-Module-Install/perl-Module-Install.nm b/perl-Module-Install/perl-Module-Install.nm
new file mode 100644
index 000000000..f3313e5fc
--- /dev/null
+++ b/perl-Module-Install/perl-Module-Install.nm
@@ -0,0 +1,57 @@ 
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = perl-Module-Install
+version    = 1.19
+release    = 1
+arch       = noarch
+
+groups     = Development/Libratries
+url        = http://search.cpan.org/dist/Module-Install/
+license    = GPL+ or Artistic
+summary    = Standalone, extensible Perl module installer.
+
+description
+	Module::Install is a package for writing installers for CPAN (or CPAN-like)
+	distributions that are clean, simple, minimalist, act in a strictly correct
+	manner with ExtUtils::MakeMaker, and will run on any Perl installation
+	version 5.005 or newer.
+end
+
+source_dl  = https://cpan.metacpan.org/authors/id/E/ET/ETHER/
+
+thisapp    = Module-Install-%{version}
+
+build
+	requires
+		perl(autodie)
+		perl(CPAN::Meta::YAML)
+		perl(Devel::PPPort)
+		perl(File::Remove)
+		perl(FindBin)
+		perl(ExtUtils::MakeMaker)
+		perl(Module::CoreList)
+		perl(Parse::CPAN::Meta)
+		perl(Test::More)
+		perl(YAML::Tiny)
+	end
+
+	build
+		perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{CFLAGS}"
+		make %{PARALLELISMFLAGS}
+	end
+
+	test
+		make test
+	end
+end
+
+packages
+	package %{name}
+		requires
+			perl(:MODULE_COMPAT_%{perl_version})
+		end
+	end
+end