]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - perl-Module-Package/perl-Module-Package.nm
perl-Module-Package: New package
[ipfire-3.x.git] / perl-Module-Package / perl-Module-Package.nm
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