[3/7] perl-YAML-Tiny: New package

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

Commit Message

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

Patch

diff --git a/perl-YAML-Tiny/perl-YAML-Tiny.nm b/perl-YAML-Tiny/perl-YAML-Tiny.nm
new file mode 100644
index 000000000..cb153b461
--- /dev/null
+++ b/perl-YAML-Tiny/perl-YAML-Tiny.nm
@@ -0,0 +1,46 @@ 
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = perl-YAML-Tiny
+version    = 1.73
+release    = 1
+arch       = noarch
+thisapp    = YAML-Tiny-%{version}
+
+groups     = Development/Libraries
+url        = http://search.cpan.org/dist/YAML-Tiny/
+license    = GPL+ or Artistic
+summary    = Read/Write YAML files with as little code as possible.
+
+description
+	YAML::Tiny is a perl class for reading and writing YAML-style files,
+	written with as little code as possible, reducing load time and memory
+	overhead.
+end
+
+source_dl  = https://cpan.metacpan.org/authors/id/E/ET/ETHER/
+
+build
+	requires
+		perl(autodie)
+		perl(B)
+		perl(ExtUtils::MakeMaker)
+		perl(JSON::PP)
+		perl(Test::More)
+	end
+
+	build
+		perl Makefile.PL INSTALLDIRS=vendor
+		make %{PARALLELISMFLAGS}
+	end
+
+	test
+		make test
+	end
+end
+
+packages
+	package %{name}
+end