1
0

Compare commits

...

10 Commits

Author SHA256 Message Date
065a711134 Accepting request 311537 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/311537
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Class-C3-Adopt-NEXT?expand=0&rev=10
2015-06-15 15:48:15 +00:00
Stephan Kulow
fa03222b25 Accepting request 310894 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/310894
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-C3-Adopt-NEXT?expand=0&rev=14
2015-06-11 06:36:16 +00:00
Stephan Kulow
25a424469a replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Class-C3-Adopt-NEXT?expand=0&rev=5
2011-12-06 17:38:31 +00:00
Stephan Kulow
326fd1d51f Accepting request 92806 from devel:languages:perl
- update to 0.13
  * Stop shipping some author tests, so users stupid enough to run them won't
    spam me with fail reports.

OBS-URL: https://build.opensuse.org/request/show/92806
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Class-C3-Adopt-NEXT?expand=0&rev=4
2011-11-22 16:49:18 +00:00
Stephan Kulow
193eb2c66e OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-C3-Adopt-NEXT?expand=0&rev=11 2011-11-21 08:26:33 +00:00
Stephan Kulow
90b5eb58e0 - update to 0.13
* Stop shipping some author tests, so users stupid enough to run them won't
    spam me with fail reports.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-C3-Adopt-NEXT?expand=0&rev=10
2011-11-21 08:26:22 +00:00
Stephan Kulow
5644478c41 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-C3-Adopt-NEXT?expand=0&rev=9 2011-11-11 11:14:33 +00:00
Stephan Kulow
638769e91d sync
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-C3-Adopt-NEXT?expand=0&rev=8
2011-05-30 15:13:41 +00:00
Stephan Kulow
5453ef51f9 prepare_spec
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-C3-Adopt-NEXT?expand=0&rev=7
2011-05-30 15:12:40 +00:00
Sascha Peilicke
a424ff69a1 Autobuild autoformatter for 66698
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Class-C3-Adopt-NEXT?expand=0&rev=2
2011-05-27 11:50:57 +00:00
5 changed files with 95 additions and 38 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:603f54b0ce5136fdf86a10fb191deef57f8e4504e901d91a1dbb7134fe906a0a
size 21187

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:85676225aadb76e8666a6abe2e0659d40eb4581ad6385b170eea4e1d6bf34bf7
size 29971

23
cpanspec.yml Normal file
View 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

View File

@@ -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

View File

@@ -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.