forked from pool/perl-Class-C3-Adopt-NEXT
Compare commits
10 Commits
43cea0ffa5
...
065a711134
Author | SHA256 | Date | |
---|---|---|---|
065a711134 | |||
|
fa03222b25 | ||
|
25a424469a | ||
|
326fd1d51f | ||
|
193eb2c66e | ||
|
90b5eb58e0 | ||
|
5644478c41 | ||
|
638769e91d | ||
|
5453ef51f9 | ||
|
a424ff69a1 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:603f54b0ce5136fdf86a10fb191deef57f8e4504e901d91a1dbb7134fe906a0a
|
||||
size 21187
|
3
Class-C3-Adopt-NEXT-0.14.tar.gz
Normal file
3
Class-C3-Adopt-NEXT-0.14.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:85676225aadb76e8666a6abe2e0659d40eb4581ad6385b170eea4e1d6bf34bf7
|
||||
size 29971
|
23
cpanspec.yml
Normal file
23
cpanspec.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 7 08:17:50 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 0.14
|
||||
see /usr/share/doc/packages/perl-Class-C3-Adopt-NEXT/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 21 08:25:58 UTC 2011 - coolo@suse.com
|
||||
|
||||
- update to 0.13
|
||||
* Stop shipping some author tests, so users stupid enough to run them won't
|
||||
spam me with fail reports.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 30 19:19:54 UTC 2010 - coolo@novell.com
|
||||
|
||||
|
@@ -1,54 +1,75 @@
|
||||
#
|
||||
# spec file for package perl-Class-C3-Adopt-NEXT
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Class-C3-Adopt-NEXT
|
||||
Version: 0.12
|
||||
Release: 1%{?dist}
|
||||
Summary: Make NEXT suck less
|
||||
License: GPL+ or Artistic
|
||||
Version: 0.14
|
||||
Release: 0
|
||||
%define cpan_name Class-C3-Adopt-NEXT
|
||||
Summary: Make Next Suck Less
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
URL: http://search.cpan.org/dist/Class-C3-Adopt-NEXT/
|
||||
Source0: http://www.cpan.org/modules/by-module/Class/Class-C3-Adopt-NEXT-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
%{perl_requires}
|
||||
Url: http://search.cpan.org/dist/Class-C3-Adopt-NEXT/
|
||||
Source0: http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(List::MoreUtils)
|
||||
BuildRequires: perl(List::Util) >= 1.33
|
||||
BuildRequires: perl(MRO::Compat)
|
||||
BuildRequires: perl(Test::Exception) >= 0.27
|
||||
Requires: perl(List::MoreUtils)
|
||||
BuildRequires: perl(Module::Build::Tiny) >= 0.039
|
||||
BuildRequires: perl(Test::Exception) >= 0.270000
|
||||
Requires: perl(List::Util) >= 1.33
|
||||
Requires: perl(MRO::Compat)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This module is intended as a drop-in replacement for NEXT, supporting the same interface, but using Class::C3 to do the hard work. You can then write new code without NEXT, and migrate individual source files to use Class::C3 or method modifiers as appropriate, at whatever pace you're comfortable with.
|
||||
the NEXT manpage was a good solution a few years ago, but isn't any more.
|
||||
It's slow, and the order in which it re-dispatches methods appears random
|
||||
at times. It also encourages bad programming practices, as you end up with
|
||||
code to re-dispatch methods when all you really wanted to do was run some
|
||||
code before or after a method fired.
|
||||
|
||||
However, if you have a large application, then weaning yourself off 'NEXT'
|
||||
isn't easy.
|
||||
|
||||
This module is intended as a drop-in replacement for NEXT, supporting the
|
||||
same interface, but using the Class::C3 manpage to do the hard work. You
|
||||
can then write new code without 'NEXT', and migrate individual source files
|
||||
to use 'Class::C3' or method modifiers as appropriate, at whatever pace
|
||||
you're comfortable with.
|
||||
|
||||
%prep
|
||||
%setup -q -n Class-C3-Adopt-NEXT-%{version}
|
||||
%setup -q -n %{cpan_name}-%{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/*
|
||||
%{__perl} Build.PL --installdirs=vendor
|
||||
./Build build --flags=%{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test
|
||||
./Build test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%install
|
||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes CONTRIBUTING LICENSE README
|
||||
|
||||
%changelog
|
||||
* Tue Jan 12 2010 Stefan Seifert <nine@detonation.org> 0.12-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
|
Reference in New Issue
Block a user