* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 2.13-2.sme
- import to SME11
This commit is contained in:
parent
dd1c634244
commit
4addb216f5
BIN
Class-Method-Modifiers-2.13.tar.gz
(Stored with Git LFS)
Normal file
BIN
Class-Method-Modifiers-2.13.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,55 +1,112 @@
|
|||||||
%define name perl-Class-Method-Modifiers
|
# Run optional tests
|
||||||
%define version 1.0
|
%if ! (0%{?rhel})
|
||||||
%define release 1
|
%{bcond_without perl_Class_Method_Modifiers_enables_optional_test}
|
||||||
Summary: This is what perl-Class-Method-Modifiers does.
|
%else
|
||||||
Name: %{name}
|
%{bcond_with perl_Class_Method_Modifiers_enables_optional_test}
|
||||||
Version: %{version}
|
%endif
|
||||||
Release: %{release}%{?dist}
|
Name: perl-Class-Method-Modifiers
|
||||||
Source: %{name}-%{version}.tar.gz
|
Version: 2.13
|
||||||
License: GNU GPL version 2
|
Release: 2%{?org_tag}%{?dist}
|
||||||
Group: SMEserver/addon
|
Summary: Provides Moose-like method modifiers
|
||||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
License: GPL+ or Artistic
|
||||||
Prefix: %{_prefix}
|
Group: Development/Libraries
|
||||||
BuildArchitectures: noarch
|
URL: http://search.cpan.org/dist/Class-Method-Modifiers/
|
||||||
BuildRequires: smeserver-devtools
|
Source0: http://localhost/cpan//authors/id/S/SA/SARTAK/Class-Method-Modifiers-%{version}.tar.gz
|
||||||
Requires: smeserver-release >= 11.0
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
AutoReqProv: no
|
BuildArch: noarch
|
||||||
|
# Module Build
|
||||||
|
BuildRequires: coreutils
|
||||||
|
BuildRequires: findutils
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: perl-interpreter
|
||||||
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
#BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
# Module Runtime
|
||||||
|
BuildRequires: perl(B)
|
||||||
|
BuildRequires: perl(base)
|
||||||
|
BuildRequires: perl(Carp)
|
||||||
|
BuildRequires: perl(Exporter)
|
||||||
|
# Test Suite
|
||||||
|
BuildRequires: perl(File::Spec)
|
||||||
|
BuildRequires: perl(if)
|
||||||
|
BuildRequires: perl(Test::Fatal)
|
||||||
|
BuildRequires: perl(Test::More) >= 0.88
|
||||||
|
BuildRequires: perl(Test::Requires)
|
||||||
|
BuildRequires: perl(Test::Needs)
|
||||||
|
BuildRequires: perl(version)
|
||||||
|
# Optional Test Requirements
|
||||||
|
%if 0%{!?perl_bootstrap:1} && %{with perl_Class_Method_Modifiers_enables_optional_test}
|
||||||
|
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.121
|
||||||
|
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
||||||
|
BuildRequires: perl(Moose)
|
||||||
|
%endif
|
||||||
|
# Runtime
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
Requires: perl(B)
|
||||||
|
Requires: perl(Carp)
|
||||||
|
Requires: perl(Exporter)
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Method modifiers are a convenient feature from the CLOS (Common Lisp Object System) world.
|
Method modifiers are a powerful feature from the CLOS (Common Lisp Object
|
||||||
|
System) world.
|
||||||
|
|
||||||
|
In its most basic form, a method modifier is just a method that calls
|
||||||
|
'$self->SUPER::foo(@_)'. I for one have trouble remembering that exact
|
||||||
|
invocation, so my classes seldom re-dispatch to their base classes. Very
|
||||||
|
bad!
|
||||||
|
|
||||||
%changelog
|
'Class::Method::Modifiers' provides three modifiers: 'before', 'around',
|
||||||
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
|
and 'after'. 'before' and 'after' are run just before and after the method
|
||||||
- Initial code - create RPM [SME:99999]
|
they modify, but can not really affect that original method. 'around' is
|
||||||
|
run in place of the original method, with a hook to easily call that
|
||||||
|
original method. See the 'MODIFIERS' section for more details on how the
|
||||||
|
particular modifiers work.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%setup -q -n Class-Method-Modifiers-%{version}
|
||||||
|
|
||||||
%setup -q
|
# Drop unnecessary exec permissions from test files
|
||||||
|
chmod -c -x t/*.t
|
||||||
|
|
||||||
%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
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%preun
|
%changelog
|
||||||
|
* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 2.13-2.sme
|
||||||
|
- import to SME11
|
||||||
|
|
||||||
%post
|
* Fri Nov 27 2020 Gavin Carr <gavin@openfusion.com.au> 2.13-1
|
||||||
|
- Update to version 2.13.
|
||||||
|
|
||||||
%postun
|
* Fri Aug 08 2014 Gavin Carr <gavin@openfusion.com.au> 2.10-1
|
||||||
#uninstall
|
- Update to version 2.10.
|
||||||
%files -f %{name}-%{version}-filelist
|
|
||||||
%defattr(-,root,root)
|
* Fri Aug 12 2011 Gavin Carr <gavin@openfusion.com.au> 1.07-1
|
||||||
|
- Specfile autogenerated by cpanspec 1.79.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user