commit 1dd07f862e520b812dc6fcf847c2cd9127a50282 Author: smeserver <> Date: Fri Jan 24 03:48:30 2025 +0100 Initial commit diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a3b625f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.tar.xz filter=lfs diff=lfs merge=lfs -text diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bc53157 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +NAME := perl-Exporter-Tiny +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 $$d/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/README.md b/README.md new file mode 100644 index 0000000..d6e04a3 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# perl-Exporter-Tiny + +SMEServer Koozali local git repo for perl-Exporter-Tiny + +## Documentation +
https://metacpan.org/pod/perl-Exporter-Tiny + +## Bugzilla +CPAN bug report are [here](https://rt.cpan.org/Public/Dist/Display.html?Name=perl-Exporter-Tiny) + +Show list of Koozali outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=perl-Exporter-Tiny&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 + +Exporter::Tiny supports many of Sub::Exporter's external-facing features +including renaming imported functions with the -as, -prefix and -suffix +options; explicit destinations with the into option; and alternative +installers with the installer option. But it's written in only about 40% +as many lines of code and with zero non-core dependencies. + +Its internal-facing interface is closer to Exporter.pm, with configuration +done through the @EXPORT, @EXPORT_OK and %EXPORT_TAGS package variables. + +Exporter::Tiny performs most of its internal duties (including resolution of +tag names to sub names, resolution of sub names to coderefs, and installation +of coderefs into the target package) as method calls, which means they can be +overridden to provide interesting behavior. + diff --git a/perl-Exporter-Tiny.spec b/perl-Exporter-Tiny.spec new file mode 100644 index 0000000..54aa667 --- /dev/null +++ b/perl-Exporter-Tiny.spec @@ -0,0 +1,66 @@ +%define name perl-Exporter-Tiny +%define version 1.0 +%define release 1 +Summary: This is what perl-Exporter-Tiny does. +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +Source: %{name}-%{version}.tar.gz +License: GNU GPL version 2 +Group: SMEserver/addon +BuildRoot: %{_tmppath}/%{name}-buildroot +Prefix: %{_prefix} +BuildArchitectures: noarch +BuildRequires: smeserver-devtools +Requires: smeserver-release >= 11.0 +AutoReqProv: no + +%description +Exporter::Tiny supports many of Sub::Exporter's external-facing features +including renaming imported functions with the -as, -prefix and -suffix +options; explicit destinations with the into option; and alternative +installers with the installer option. But it's written in only about 40% +as many lines of code and with zero non-core dependencies. + +Its internal-facing interface is closer to Exporter.pm, with configuration +done through the @EXPORT, @EXPORT_OK and %EXPORT_TAGS package variables. + +Exporter::Tiny performs most of its internal duties (including resolution of +tag names to sub names, resolution of sub names to coderefs, and installation +of coderefs into the target package) as method calls, which means they can be +overridden to provide interesting behavior. + +%changelog +* Day MMMM DD YYYY 1.0-1.sme +- Initial code - create RPM [SME:99999] + +%prep + +%setup -q + +%build + +%install +rm -rf $RPM_BUILD_ROOT +(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +rm -f %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ +> %{name}-%{version}-filelist +#echo "%doc COPYING" >> %{name}-%{version}-filelist +#--dir 'attr(755,user,grp)' \ +#--file 'attr(755,root,root)' \ + +%clean +cd .. +rm -rf %{name}-%{version} + +%pre + +%preun + +%post + +%postun +#uninstall +%files -f %{name}-%{version}-filelist +%defattr(-,root,root)