]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/commitdiff
perl-Module-Package: New package
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 5 Mar 2023 15:46:49 +0000 (16:46 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Mar 2023 10:01:56 +0000 (10:01 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
perl-Module-Package/patches/Module-Package-0.30-Fix-building-on-Perl-without-.-in-INC.patch [new file with mode: 0644]
perl-Module-Package/perl-Module-Package.nm [new file with mode: 0644]

diff --git a/perl-Module-Package/patches/Module-Package-0.30-Fix-building-on-Perl-without-.-in-INC.patch b/perl-Module-Package/patches/Module-Package-0.30-Fix-building-on-Perl-without-.-in-INC.patch
new file mode 100644 (file)
index 0000000..81f5ebe
--- /dev/null
@@ -0,0 +1,25 @@
+From fc4e65f8d43226739624e15fe3eefa0d05fd8f96 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Wed, 17 May 2017 16:48:56 +0200
+Subject: [PATCH] Fix building on Perl without "." in @INC
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Petr Písař <ppisar@redhat.com>
+---
+ Makefile.PL | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 93b5ed5..fffb0d1 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,3 +1,4 @@
++BEGIN { push @INC, '.'; }
+ use inc::Module::Package 'Ingy:modern 0.17';
+ # The default module 'lib/Module/Package.pm' has to be very strict
+-- 
+2.9.4
+
diff --git a/perl-Module-Package/perl-Module-Package.nm b/perl-Module-Package/perl-Module-Package.nm
new file mode 100644 (file)
index 0000000..3815ba1
--- /dev/null
@@ -0,0 +1,54 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = perl-Module-Package
+version    = 0.30
+release    = 1
+arch       = noarch
+
+groups     = Development/Libratries
+url        = http://search.cpan.org/dist/Module-Package/
+license    = GPL+ or Artistic
+summary    = Postmodern Perl Module Packaging
+
+description
+       This module is a dropin replacement for Module::Install.
+       It does everything Module::Install does, but just a bit better.
+end
+
+source_dl  = https://cpan.metacpan.org/authors/id/I/IN/INGY/
+
+thisapp    = Module-Package-%{version}
+
+build
+       requires
+               perl(FindBin)
+               perl(File::Find)
+               perl(IO::All)
+               perl(ExtUtils::MakeMaker)
+               perl(Module::Install)
+               perl(Module::Install::AuthorRequires)
+               perl(Module::Install::ManifestSkip)
+               perl(Moo)
+               perl(Test::More)
+       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