From 69221028f78fe2dccb9ef89a041544a5a342d180028c464a1de0c71661332ced Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Tue, 6 Dec 2011 17:44:53 +0000 Subject: [PATCH 1/3] Updating link to change in openSUSE:Factory/perl-namespace-clean revision 5.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-namespace-clean?expand=0&rev=855b31dd28781c252c40274f42039162 --- perl-namespace-clean.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-namespace-clean.spec b/perl-namespace-clean.spec index b994693..b8c9ee2 100644 --- a/perl-namespace-clean.spec +++ b/perl-namespace-clean.spec @@ -20,7 +20,7 @@ Name: perl-namespace-clean Version: 0.21 Release: 1 -License: GPL+ or Artistic +License: GPL-1.0+ or Artistic-1.0 %define cpan_name namespace-clean Summary: Keep imports and functions out of your namespace Url: http://search.cpan.org/dist/namespace-clean/ From 5f025667f412e9c55321e7072e45e916928e489cd69f46d858cbafbd961472e2 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sat, 11 Feb 2012 07:08:53 +0000 Subject: [PATCH 2/3] - updated to 0.22 - Simplify the >= 5.10 PP variant even more - move the hook from DESTROY into DELETE - Force explicit callback invocation order on 5.8 PP - Replace the %^H tie approach with fieldhashes, fixes all known corner cases and caveats on supported perls >= 5.8.1 (FC) - Compile away the debugger fixup on perls >= 5.15.5 (FC) - More robust handling of the tied %^H in pure perl mode (RT#73402) - Limit the debugger workarounds to perls between 5.8.8 and 5.14, extend debugger support to all perl versions (FC) (RT#69862) - If possible, automatically install (but not load) the debugger workaround libraries on perls between 5.8.8 and 5.14 (RT#72368) - Add back dropped NAME section (RT#70259) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-namespace-clean?expand=0&rev=15 --- namespace-clean-0.21.tar.gz | 3 -- namespace-clean-0.22.tar.gz | 3 ++ perl-namespace-clean.changes | 17 ++++++++++ perl-namespace-clean.spec | 61 ++++++++++++++---------------------- 4 files changed, 44 insertions(+), 40 deletions(-) delete mode 100644 namespace-clean-0.21.tar.gz create mode 100644 namespace-clean-0.22.tar.gz diff --git a/namespace-clean-0.21.tar.gz b/namespace-clean-0.21.tar.gz deleted file mode 100644 index 337b88e..0000000 --- a/namespace-clean-0.21.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b16069bc9261f8c9f2bd541f96076e0961fa4424ce299dac0c9c5523a18e5836 -size 11809 diff --git a/namespace-clean-0.22.tar.gz b/namespace-clean-0.22.tar.gz new file mode 100644 index 0000000..f716112 --- /dev/null +++ b/namespace-clean-0.22.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0dd7bc99860ceaa64b3c90ff54cf9560307c995e53a0a31ad78e7415c5ef79d +size 13228 diff --git a/perl-namespace-clean.changes b/perl-namespace-clean.changes index 6bf5676..becd7e8 100644 --- a/perl-namespace-clean.changes +++ b/perl-namespace-clean.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Sat Feb 11 07:00:52 UTC 2012 - coolo@suse.com + +- updated to 0.22 + - Simplify the >= 5.10 PP variant even more - move the hook from + DESTROY into DELETE + - Force explicit callback invocation order on 5.8 PP + - Replace the %^H tie approach with fieldhashes, fixes all known + corner cases and caveats on supported perls >= 5.8.1 (FC) + - Compile away the debugger fixup on perls >= 5.15.5 (FC) + - More robust handling of the tied %^H in pure perl mode (RT#73402) + - Limit the debugger workarounds to perls between 5.8.8 and 5.14, + extend debugger support to all perl versions (FC) (RT#69862) + - If possible, automatically install (but not load) the debugger + workaround libraries on perls between 5.8.8 and 5.14 (RT#72368) + - Add back dropped NAME section (RT#70259) + ------------------------------------------------------------------- Thu Nov 17 12:33:28 UTC 2011 - coolo@suse.com diff --git a/perl-namespace-clean.spec b/perl-namespace-clean.spec index b8c9ee2..0de1b88 100644 --- a/perl-namespace-clean.spec +++ b/perl-namespace-clean.spec @@ -1,7 +1,7 @@ # # spec file for package perl-namespace-clean # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,55 +16,45 @@ # - Name: perl-namespace-clean -Version: 0.21 -Release: 1 -License: GPL-1.0+ or Artistic-1.0 +Version: 0.22 +Release: 0 %define cpan_name namespace-clean Summary: Keep imports and functions out of your namespace -Url: http://search.cpan.org/dist/namespace-clean/ +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -Source: http://www.cpan.org/authors/id/R/RI/RIBASUSHI/namespace-clean-%{version}.tar.gz -Patch1: perl-namespace-clean-use_lib.patch +Url: http://search.cpan.org/dist/namespace-clean/ +Source: http://www.cpan.org/authors/id/R/RI/RIBASUSHI/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(B::Hooks::EndOfScope) >= 0.07 -BuildRequires: perl(constant) -BuildRequires: perl(Exporter) -BuildRequires: perl(Package::Stash) >= 0.22 -BuildRequires: perl(Sub::Identify) >= 0.04 -BuildRequires: perl(Sub::Name) >= 0.04 -BuildRequires: perl(vars) +BuildRequires: perl(Package::Stash) >= 0.23 BuildRequires: perl(Test::More) >= 0.88 +#BuildRequires: perl(CleaneeBridge) +#BuildRequires: perl(CleaneeBridgeDirect) +#BuildRequires: perl(CleaneeBridgeExplicit) +#BuildRequires: perl(Devel::Hide) +#BuildRequires: perl(ExporterTest) +#BuildRequires: perl(Hash::Util::FieldHash) +#BuildRequires: perl(InheritanceParent) +#BuildRequires: perl(namespace::clean) +#BuildRequires: perl(namespace::clean::_PP_OSE) +#BuildRequires: perl(namespace::clean::_PP_OSE_5_8) +#BuildRequires: perl(Sub::Identify) +#BuildRequires: perl(Sub::Name) +#BuildRequires: perl(Tie::StdHash) Requires: perl(B::Hooks::EndOfScope) >= 0.07 -Requires: perl(Package::Stash) >= 0.22 -Requires: perl(Sub::Identify) >= 0.04 -Requires: perl(Sub::Name) >= 0.04 -Requires: perl(vars) +Requires: perl(Package::Stash) >= 0.23 +Requires: perl(Test::More) >= 0.88 %{perl_requires} %description -Keeping packages clean -When you define a function, or import one, into a Perl package, it will -naturally also be available as a method. This does not per se cause -problems, but it can complicate subclassing and, for example, plugin -classes that are included via multiple inheritance by loading them as -base classes. - -The 'namespace::clean' pragma will remove all previously declared or -imported symbols at the end of the current package's compile cycle. -Functions called in the package itself will still be bound by their -name, but they won't show up as methods on your class or instances. +Keep imports and functions out of your namespace %prep %setup -q -n %{cpan_name}-%{version} -%if 0%{?suse_version} <= 1110 -%patch1 -p1 -sed -i "s|__vendorperl__|%{perl_vendorlib}|g" Makefile.PL t/*.t -%endif %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -78,11 +68,8 @@ sed -i "s|__vendorperl__|%{perl_vendorlib}|g" Makefile.PL t/*.t %perl_process_packlist %perl_gen_filelist -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} - %files -f %{name}.files -%defattr(644,root,root,755) +%defattr(-,root,root,755) %doc Changes %changelog From 6c320e5e33dd93dd1c07d85f1b47f6f12018cdc63dafac8f2430c4d5cb72c93b Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sat, 11 Feb 2012 09:14:40 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-namespace-clean?expand=0&rev=16 --- perl-namespace-clean.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/perl-namespace-clean.spec b/perl-namespace-clean.spec index 0de1b88..109a6b2 100644 --- a/perl-namespace-clean.spec +++ b/perl-namespace-clean.spec @@ -25,6 +25,8 @@ License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/namespace-clean/ Source: http://www.cpan.org/authors/id/R/RI/RIBASUSHI/%{cpan_name}-%{version}.tar.gz +# MANUAL +Patch1: perl-namespace-clean-use_lib.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -55,6 +57,10 @@ Keep imports and functions out of your namespace %prep %setup -q -n %{cpan_name}-%{version} +%if 0%{?suse_version} <= 1110 +%patch1 -p1 +sed -i "s|__vendorperl__|%{perl_vendorlib}|g" Makefile.PL t/*.t +%endif %build %{__perl} Makefile.PL INSTALLDIRS=vendor