commit 98cccd08cf4ee623915cbf9c67506874f5e9a559c1f19b903c9108458f565547 Author: Adrian Schröter Date: Fri May 3 19:17:58 2024 +0200 Sync from SUSE:SLFO:Main perl-namespace-autoclean revision 379a160e745b53d1494029b8f764ffb9 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b7ec50 --- /dev/null +++ b/cpanspec.yml @@ -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 diff --git a/namespace-autoclean-0.29.tar.gz b/namespace-autoclean-0.29.tar.gz new file mode 100644 index 0000000..2093a60 --- /dev/null +++ b/namespace-autoclean-0.29.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45ebd8e64a54a86f88d8e01ae55212967c8aa8fed57e814085def7608ac65804 +size 38791 diff --git a/perl-namespace-autoclean.changes b/perl-namespace-autoclean.changes new file mode 100644 index 0000000..94d04c1 --- /dev/null +++ b/perl-namespace-autoclean.changes @@ -0,0 +1,128 @@ +------------------------------------------------------------------- +Sun Aug 25 05:41:12 UTC 2019 - Stephan Kulow + +- updated to 0.29 + see /usr/share/doc/packages/perl-namespace-autoclean/Changes + + 0.29 2019-08-24 17:07:22Z + - switch from Test::Requires to Test::Needs + - report on the installed versions of more optional modules + +------------------------------------------------------------------- +Fri Oct 16 09:53:23 UTC 2015 - coolo@suse.com + +- updated to 0.28 + see /usr/share/doc/packages/perl-namespace-autoclean/Changes + + 0.28 2015-10-13 01:25:26Z + - skip failing tests with old Moo or when Sub::Util is broken (RT#107643) + +------------------------------------------------------------------- +Thu Sep 10 10:19:14 UTC 2015 - coolo@suse.com + +- updated to 0.27 + see /usr/share/doc/packages/perl-namespace-autoclean/Changes + + 0.27 2015-09-09 02:29:20Z + - package with only ExtUtils::MakeMaker to ease installation on perl 5.6 + +------------------------------------------------------------------- +Sun Jun 7 09:15:30 UTC 2015 - coolo@suse.com + +- updated to 0.26 + see /usr/share/doc/packages/perl-namespace-autoclean/Changes + + 0.26 2015-06-07 02:53:17Z + - mark all Mouse tests as TODO below perl 5.010, to enable installation + despite apparent instability issues (see RT#101825) + + 0.25 2015-06-03 01:09:06Z + - load Moo::Role earlier in a test, to make a potential misconfiguration + more visible + +------------------------------------------------------------------- +Fri Feb 6 13:13:02 UTC 2015 - coolo@suse.com + +- updated to 0.24 + - re-release to fix problematic $VERSION declaration (RT#101095) + + 0.23 2014-12-27 04:07:03Z + - be more lenient in optional Mouse tests to handle edge cases in older and + pure perl versions + + 0.22 2014-11-04 06:19:54Z + - fix an erroneous change in 0.21 + + 0.21 2014-11-04 05:24:36Z + - drop testing of MooseX::MarkAsMethods, now that Moose 2.1400 has better + overload handling + + 0.20 2014-09-06 23:04:12Z + - Moose earlier than 2.0300 had a broken ->does method, which called methods + on a class's meta when it might not be initialized (RT#98424) + +------------------------------------------------------------------- +Sat Jul 19 11:45:54 UTC 2014 - rpm@scorpio-it.net + +- update to 0.19 + - more comprehensive testing with Moo/Mouse/Moose + - fixed cleaning of constants +- 0.18 2014-06-14 20:12:59Z + - better method detection for Mouse (github #4, Graham Knop) +- 0.17 2014-06-10 20:13:14Z + - Add -except to import options. This allows you to explicitly not clean a + sub. (Dave Rolsky) +- 0.16 2014-05-27 04:50:22Z (TRIAL RELEASE) + - Changed the code to no longer _require_ Class::MOP. If your class is not a + Moose class then we don't load Class::MOP. This was particularly + problematic for Moo classes. Using namespace::autoclean with a Moo class + "upgraded" it to be a Moose class. + - Using this module just broke overloading in a class. Reported by Chris + Weyl. (RT#50938) + +------------------------------------------------------------------- +Sun Feb 9 13:34:22 UTC 2014 - coolo@suse.com + +- updated to 0.15 + - update configure_requires checking in Makefile.PL, add CONTRIBUTING file + +------------------------------------------------------------------- +Mon Nov 25 07:35:58 UTC 2013 - coolo@suse.com + +- updated to 0.14 + * bump dependency on B::Hooks::EndOfScope, to get the separation of + pure-perl and XS components (RT#89245) + * repository migrated to the github moose organization + +------------------------------------------------------------------- +Thu Nov 17 12:37:38 UTC 2011 - coolo@suse.com + +- update to 0.13 + * Fix issue in dist.ini which was causing links to be incorrectly generated. + * Re-package to remove BEGIN { $VERSION hackery by using a newer + Dist-Zilla. + +------------------------------------------------------------------- +Sun Apr 3 15:27:17 UTC 2011 - coolo@novell.com + +- updated to 0.12 + * Bump namespace::clean dep to 0.20 to pull in the bugfix for + Package::Stash::XS 0.19 + +------------------------------------------------------------------- +Sat Jan 22 20:42:57 UTC 2011 - coolo@novell.com + +- update to 0.11 + * Improve distribution metadata. + * Fix documentation typo ( Andrew Rodland). + +------------------------------------------------------------------- +Wed Dec 1 13:34:01 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Wed Oct 13 09:24:35 UTC 2010 - coolo@novell.com + +- fix test suite + diff --git a/perl-namespace-autoclean.spec b/perl-namespace-autoclean.spec new file mode 100644 index 0000000..3011493 --- /dev/null +++ b/perl-namespace-autoclean.spec @@ -0,0 +1,92 @@ +# +# spec file for package perl-namespace-autoclean +# +# Copyright (c) 2019 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 https://bugs.opensuse.org/ +# + + +Name: perl-namespace-autoclean +Version: 0.29 +Release: 0 +%define cpan_name namespace-autoclean +Summary: Keep imports out of your namespace +License: Artistic-1.0 OR GPL-1.0-or-later +Group: Development/Libraries/Perl +Url: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.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(B::Hooks::EndOfScope) >= 0.12 +BuildRequires: perl(Sub::Identify) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Test::Needs) +BuildRequires: perl(namespace::clean) >= 0.20 +Requires: perl(B::Hooks::EndOfScope) >= 0.12 +Requires: perl(Sub::Identify) +Requires: perl(namespace::clean) >= 0.20 +%{perl_requires} + +%description +When you import a function into a Perl package, it will naturally also be +available as a method. + +The 'namespace::autoclean' pragma will remove all 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. + +This module is very similar to namespace::clean, except it will clean all +imported functions, no matter if you imported them before or after you +'use'd the pragma. It will also not touch anything that looks like a +method. + +If you're writing an exporter and you want to clean up after yourself (and +your peers), you can use the '-cleanee' switch to specify what package to +clean: + + package My::MooseX::namespace::autoclean; + use strict; + + use namespace::autoclean (); # no cleanup, just load + + sub import { + namespace::autoclean->import( + -cleanee => scalar(caller), + ); + } + +%prep +%setup -q -n %{cpan_name}-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes CONTRIBUTING README +%license LICENCE + +%changelog