[2/7] perl-File-Remove: New package

Message ID 20230226191904.675207-2-stefan.schantl@ipfire.org
State Accepted
Commit 860ec8126e3435a16558bb38ea3cb939de61a17c
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-File-Remove/perl-File-Remove.nm | 47 ++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 perl-File-Remove/perl-File-Remove.nm
  

Patch

diff --git a/perl-File-Remove/perl-File-Remove.nm b/perl-File-Remove/perl-File-Remove.nm
new file mode 100644
index 000000000..f3717c2cc
--- /dev/null
+++ b/perl-File-Remove/perl-File-Remove.nm
@@ -0,0 +1,47 @@ 
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = perl-File-Remove
+version    = 1.61
+release    = 1
+arch       = noarch
+thisapp    = File-Remove-%{version}
+
+groups     = Development/Libraries
+url        = http://search.cpan.org/dist/File-Remove/
+license    = GPL+
+summary    = A perl module to Remove files and directories.
+
+description
+	File::Remove::remove removes files and directories. It acts like /bin/rm,
+	for the most part. Although unlink can be given a list of files, it will
+	not remove directories; this module remedies that.
+
+	It also accepts wildcards, * and ?, as arguments for filenames.
+end
+
+source_dl  = https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/
+
+build
+	requires
+		perl(blib)
+		perl(IPC::Open3)
+		perl(ExtUtils::MakeMaker)
+		perl(Test::More)
+	end
+
+	build
+		perl Makefile.PL INSTALLDIRS=vendor
+		make %{PARALLELISMFLAGS}
+	end
+
+	test
+		make test
+	end
+end
+
+packages
+	package %{name}
+end