]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
perl-Net-HTTP: New package
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 6 Mar 2023 11:53:57 +0000 (11:53 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Mar 2023 13:59:22 +0000 (13:59 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
perl-Net-HTTP/perl-Net-HTTP.nm [new file with mode: 0644]

diff --git a/perl-Net-HTTP/perl-Net-HTTP.nm b/perl-Net-HTTP/perl-Net-HTTP.nm
new file mode 100644 (file)
index 0000000..eee400b
--- /dev/null
@@ -0,0 +1,51 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = perl-Net-HTTP
+version    = 6.22
+release    = 1
+thisapp    = Net-HTTP-%{version}
+arch       = noarch
+
+groups     = Development/Libraries
+url        = https://metacpan.org/dist/Net-HTTP
+license    = GPL+ or Artistic
+summary    = Low-level HTTP client for perl
+
+description
+       The Net::HTTP class is a low-level HTTP client. An instance of the
+       Net::HTTP class represents a connection to an HTTP server. The HTTP
+       protocol is described in RFC 2616.
+
+       The Net::HTTP class supports HTTP/1.0 and HTTP/1.1.
+end
+
+source_dl  = https://cpan.metacpan.org/authors/id/O/OA/OALDERS/
+
+build
+       requires
+               perl(ExtUtils::MakeMaker)
+               perl(Test::More)
+               perl(URI)
+       end
+
+       build
+               perl Makefile.PL INSTALLDIRS=vendor
+               make %{PARALLELISMFLAGS}
+       end
+
+       # Testsuite fails.
+       #test
+       #       make test
+       #end
+end
+
+packages
+       package %{name}
+               requires
+                       perl(:MODULE_COMPAT_%{perl_version})
+               end
+       end
+end