* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.002002-3.sme

- import to SME11
This commit is contained in:
Jean-Philippe Pialasse 2025-01-23 21:55:01 -05:00
parent 1dd07f862e
commit 67dc09ef1e
2 changed files with 81 additions and 52 deletions

BIN
Exporter-Tiny-1.002002.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,66 +1,92 @@
%define name perl-Exporter-Tiny # Test::Warnings introduced in Fedora 18
%define version 1.0 %if 0%{?fedora} < 18 && 0%{?rhel} < 7
%define release 1 %global no_test_warnings 1
Summary: This is what perl-Exporter-Tiny does. %else
Name: %{name} %global no_test_warnings 0
Version: %{version} %endif
Release: %{release}%{?dist}
Source: %{name}-%{version}.tar.gz Name: perl-Exporter-Tiny
License: GNU GPL version 2 Version: 1.002002
Group: SMEserver/addon Release: 3%{?org_tag}%{?dist}
BuildRoot: %{_tmppath}/%{name}-buildroot Summary: Exporter with the features of Sub::Exporter but only core dependencies
Prefix: %{_prefix} License: GPL+ or Artistic
BuildArchitectures: noarch Group: Development/Libraries
BuildRequires: smeserver-devtools URL: http://search.cpan.org/dist/Exporter-Tiny/
Requires: smeserver-release >= 11.0 Source0: http://www.cpan.org/authors/id/T/TO/TOBYINK/Exporter-Tiny-%{version}.tar.gz
AutoReqProv: no BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# Module Build
BuildRequires: perl >= 0:5.006001
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17
# Module Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(lib)
BuildRequires: perl(Test::More) >= 0.47
# Optional Tests
BuildRequires: perl(Test::Fatal)
%if ! %{no_test_warnings}
BuildRequires: perl(Test::Warnings)
%endif
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp)
%description %description
Exporter::Tiny supports many of Sub::Exporter's external-facing features Exporter::Tiny supports many of Sub::Exporter's external-facing features
including renaming imported functions with the -as, -prefix and -suffix including renaming imported functions with the -as, -prefix and -suffix
options; explicit destinations with the into option; and alternative options; explicit destinations with the into option; and alternative
installers with the installer option. But it's written in only about 40% installers with the installer option. But it's written in only about 40% as
as many lines of code and with zero non-core dependencies. many lines of code and with zero non-core dependencies.
Its internal-facing interface is closer to Exporter.pm, with configuration Its internal-facing interface is closer to Exporter.pm, with configuration
done through the @EXPORT, @EXPORT_OK and %EXPORT_TAGS package variables. done through the @EXPORT, @EXPORT_OK and %EXPORT_TAGS package variables.
Exporter::Tiny performs most of its internal duties (including resolution of Exporter::Tiny performs most of its internal duties (including resolution of
tag names to sub names, resolution of sub names to coderefs, and installation 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 of coderefs into the target package) as method calls, which means they can be
overridden to provide interesting behavior. overridden to provide interesting behavior.
%changelog
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
- Initial code - create RPM [SME:99999]
%prep %prep
%setup -q -n Exporter-Tiny-%{version}
%setup -q
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf %{buildroot}
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
rm -f %{name}-%{version}-filelist make pure_install PERL_INSTALL_ROOT=%{buildroot}
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
> %{name}-%{version}-filelist find %{buildroot} -type f -name .packlist -exec rm -f {} \;
#echo "%doc COPYING" >> %{name}-%{version}-filelist find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
#--dir <dir> 'attr(755,user,grp)' \
#--file <file> 'attr(755,root,root)' \ %{_fixperms} %{buildroot}/*
%check
make test
%clean %clean
cd .. rm -rf %{buildroot}
rm -rf %{name}-%{version}
%pre %files
%defattr(-,root,root,-)
%doc Changes COPYRIGHT CREDITS dist.ini doap.ttl LICENSE META.json README TODO
%{perl_vendorlib}/*
%{_mandir}/man3/*
%preun %changelog
* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.002002-3.sme
- import to SME11
%post * Mon Oct 12 2020 Gavin Carr <gavin@openfusion.com.au> 1.002002-1
- Specfile autogenerated by cpanspec 1.78.
%postun
#uninstall
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)