diff --git a/Exporter-Tiny-1.002002.tar.gz b/Exporter-Tiny-1.002002.tar.gz new file mode 100644 index 0000000..246760b --- /dev/null +++ b/Exporter-Tiny-1.002002.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00f0b95716b18157132c6c118ded8ba31392563d19e490433e9a65382e707101 +size 88456 diff --git a/perl-Exporter-Tiny.spec b/perl-Exporter-Tiny.spec index 54aa667..1dad809 100644 --- a/perl-Exporter-Tiny.spec +++ b/perl-Exporter-Tiny.spec @@ -1,66 +1,92 @@ -%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 +# Test::Warnings introduced in Fedora 18 +%if 0%{?fedora} < 18 && 0%{?rhel} < 7 +%global no_test_warnings 1 +%else +%global no_test_warnings 0 +%endif + +Name: perl-Exporter-Tiny +Version: 1.002002 +Release: 3%{?org_tag}%{?dist} +Summary: Exporter with the features of Sub::Exporter but only core dependencies +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Exporter-Tiny/ +Source0: http://www.cpan.org/authors/id/T/TO/TOBYINK/Exporter-Tiny-%{version}.tar.gz +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 -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 +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 +%setup -q -n Exporter-Tiny-%{version} %build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %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)' \ +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test %clean -cd .. -rm -rf %{name}-%{version} +rm -rf %{buildroot} -%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 1.002002-3.sme +- import to SME11 -%post - -%postun -#uninstall -%files -f %{name}-%{version}-filelist -%defattr(-,root,root) +* Mon Oct 12 2020 Gavin Carr 1.002002-1 +- Specfile autogenerated by cpanspec 1.78.