From a5fd7332914443063b11589bd965952646dd5112 Mon Sep 17 00:00:00 2001
From: Trevor Batley <trevor@batley.id.au>
Date: Tue, 21 Jan 2025 20:02:45 +1100
Subject: [PATCH] initial create of smeserver perl Module::Metadata on Tue Jan
 21 20:02:45 AEDT 2025

---
 .gitattributes                  |  1 +
 .gitignore                      |  3 ++
 Makefile                        | 21 +++++++++
 Module-Metadata-1.000038.tar.gz |  3 ++
 README.md                       | 18 +++++++-
 contriborbase                   |  1 +
 perl-Module-Metadata.spec       | 77 +++++++++++++++++++++++++++++++++
 7 files changed, 122 insertions(+), 2 deletions(-)
 create mode 100644 .gitattributes
 create mode 100644 .gitignore
 create mode 100644 Makefile
 create mode 100644 Module-Metadata-1.000038.tar.gz
 create mode 100644 contriborbase
 create mode 100644 perl-Module-Metadata.spec

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..f087b42
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+*.tar.gz filter=lfs diff=lfs merge=lfs -text
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1534ba5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+*.rpm
+*.log
+*spec-20*
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..740dd30
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+# Makefile for source rpm: perl-Module-Metadata
+# $Id: Makefile,v 1.1 2016/02/04 12:24:52 vip-ire Exp $
+NAME := perl-Module-Metadata
+SPECFILE = $(firstword $(wildcard *.spec))
+
+define find-makefile-common
+for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
+endef
+
+MAKEFILE_COMMON := $(shell $(find-makefile-common))
+
+ifeq ($(MAKEFILE_COMMON),)
+# attept a checkout
+define checkout-makefile-common
+test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
+endef
+
+MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
+endif
+
+include $(MAKEFILE_COMMON)
diff --git a/Module-Metadata-1.000038.tar.gz b/Module-Metadata-1.000038.tar.gz
new file mode 100644
index 0000000..07a261d
--- /dev/null
+++ b/Module-Metadata-1.000038.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b599d8770a9a9fa0a8ae3cd0ed395a9cf71b4eb53aed82989a6bece33485a9cd
+size 51497
diff --git a/README.md b/README.md
index ba76ce3..fb3c265 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,17 @@
-# perl-Module-Metadata
+# <img src="https://www.koozali.org/images/koozali/Logo/Png/Koozali_logo_2016.png" width="25%" vertical="auto" style="vertical-align:bottom"> perl-Module-Metadata (Module::Metadata)
 
-3rd Party (Maintained by Koozali) git repo for perl-Module-Metadata smeserver
\ No newline at end of file
+SMEServer Koozali local git repo for perl-Module-Metadata
+
+## Documentation
+https://metacpan.org/pod/Module::Metadata
+
+## Bugs
+CPAN bug report are [here](https://rt.cpan.org/Public/Dist/Display.html?Name=Module-Metadata)
+
+Show list of Koozali outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=perl-Module-Metadata&product=SME%20Server%2011.X&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED)
+
+## Description
+This module provides a standard way to gather metadata about a .pm file
+through (mostly) static analysis and (some) code execution. When
+determining the version of a module, the $VERSION assignment is evaled, as
+is traditional in the CPAN toolchain.
diff --git a/contriborbase b/contriborbase
new file mode 100644
index 0000000..80affab
--- /dev/null
+++ b/contriborbase
@@ -0,0 +1 @@
+sme11
diff --git a/perl-Module-Metadata.spec b/perl-Module-Metadata.spec
new file mode 100644
index 0000000..c7d1a80
--- /dev/null
+++ b/perl-Module-Metadata.spec
@@ -0,0 +1,77 @@
+Name:           perl-Module-Metadata
+Version:        1.000038
+Release:        1%{?dist}
+Summary:        Gather package and POD information from perl module files
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Module-Metadata/
+Source0:        http://www.cpan.org/authors/id/E/ET/ETHER/Module-Metadata-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+BuildRequires:  perl >= 0:5.006
+BuildRequires:  perl(ExtUtils::Manifest)
+BuildRequires:  perl(inc::Module::Install)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Cwd)
+BuildRequires:  perl(Encode)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Fcntl)
+BuildRequires:  perl(File::Basename)
+BuildRequires:  perl(File::Find)
+BuildRequires:  perl(File::Path)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(IO::File)
+BuildRequires:  perl(lib)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Test::More) >= 0.88
+BuildRequires:  perl(version) >= 0.87
+BuildRequires:  perl(warnings)
+Requires:       perl(Carp)
+Requires:       perl(Encode)
+Requires:       perl(Fcntl)
+Requires:       perl(File::Find)
+Requires:       perl(File::Spec)
+Requires:       perl(strict)
+Requires:       perl(version) >= 0.87
+Requires:       perl(warnings)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This module provides a standard way to gather metadata about a .pm file
+through (mostly) static analysis and (some) code execution. When
+determining the version of a module, the $VERSION assignment is evaled, as
+is traditional in the CPAN toolchain.
+
+%prep
+%setup -q -n Module-Metadata-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes CONTRIBUTING dist.ini LICENCE META.json README weaver.ini
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Jan 21 2025 Koozali 1.000038-1
+- Specfile autogenerated by cpanspec 1.78.