Compare commits

...

10 Commits

Author SHA256 Message Date
ef95072723 Accepting request 1278596 from devel:languages:perl:autoupdate
- updated to 1.26.0 (1.026)
   see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
  1.026 2025-04-13T19:37:07Z
  	* require a newer version.pm for v5.10.1 tests

OBS-URL: https://build.opensuse.org/request/show/1278596
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Extract-Namespaces?expand=0&rev=12
2025-05-24 13:57:14 +00:00
f4e3f0c235 Accepting request 1240660 from devel:languages:perl:autoupdate
- updated to 1.25.0 (1.025)
   see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
  1.025 2025-01-26T20:44:58Z
  	* refresh distro

OBS-URL: https://build.opensuse.org/request/show/1240660
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Extract-Namespaces?expand=0&rev=11
2025-01-30 22:25:07 +00:00
5d52937ff0 Fix disabling of __perllib_provides
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Extract-Namespaces?expand=0&rev=10
2024-03-08 22:43:30 +00:00
d02e30a9f6 Accepting request 1153683 from devel:languages:perl:autoupdate
- updated to 1.024
   see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
  1.024 2024-02-10T21:36:24Z
  	* refresh distro, update email address, release under new PAUSE ID
  	BRIANDOY.

OBS-URL: https://build.opensuse.org/request/show/1153683
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Extract-Namespaces?expand=0&rev=9
2024-03-08 10:02:57 +00:00
500962caf0 Accepting request 949202 from devel:languages:perl:autoupdate
- updated to 1.023
   see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
  1.023 2022-01-21T10:19:11Z
  	* Fix truncated LICENSE file. No code changes.

OBS-URL: https://build.opensuse.org/request/show/949202
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Extract-Namespaces?expand=0&rev=8
2022-01-28 10:04:11 +00:00
54c969f3ce Accepting request 865406 from devel:languages:perl:autoupdate
- updated to 1.022
   see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
  1.022 2021-01-20T09:52:22Z
  	* freshen distro, dump Travis CI, add Appveyor, add Github Actions

OBS-URL: https://build.opensuse.org/request/show/865406
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Extract-Namespaces?expand=0&rev=7
2021-01-21 14:56:29 +00:00
Stephan Kulow
82309bbc66 - updated to 1.021
see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
- license changed to Artistic-2.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Extract-Namespaces?expand=0&rev=6
2017-12-10 14:12:39 +00:00
Stephan Kulow
80d8574c81 Accepting request 296367 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/296367
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Extract-Namespaces?expand=0&rev=5
2015-04-15 09:34:08 +00:00
Stephan Kulow
e9f8b96e30 use gz
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Extract-Namespaces?expand=0&rev=4
2011-11-17 15:40:01 +00:00
Stephan Kulow
dce59ef0a1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Extract-Namespaces?expand=0&rev=2 2011-11-11 11:20:05 +00:00
5 changed files with 140 additions and 100 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:49cefa832d641a204f044d66ac7928fb8520ab489080744ca6f291bf1e360569
size 5092

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4bd7217e636601a1b17a79c9dfbd3656c6db8bc8baa66f0d376c7a321dc0dc17
size 13646

28
cpanspec.yml Normal file
View File

@@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#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_build: |-
# rm unused.files
#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,84 @@
-------------------------------------------------------------------
Mon Apr 14 05:37:58 UTC 2025 - Tina Müller <timueller+perl@suse.de>
- updated to 1.26.0 (1.026)
see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
1.026 2025-04-13T19:37:07Z
* require a newer version.pm for v5.10.1 tests
-------------------------------------------------------------------
Mon Jan 27 05:31:21 UTC 2025 - Tina Müller <timueller+perl@suse.de>
- updated to 1.25.0 (1.025)
see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
1.025 2025-01-26T20:44:58Z
* refresh distro
-------------------------------------------------------------------
Fri Mar 8 22:43:27 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- Fix disabling of __perllib_provides
-------------------------------------------------------------------
Sun Feb 11 03:08:37 UTC 2024 - Tina Müller <timueller+perl@suse.de>
- updated to 1.024
see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
1.024 2024-02-10T21:36:24Z
* refresh distro, update email address, release under new PAUSE ID
BRIANDOY.
-------------------------------------------------------------------
Sat Jan 22 03:06:23 UTC 2022 - Tina Müller <timueller+perl@suse.de>
- updated to 1.023
see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
1.023 2022-01-21T10:19:11Z
* Fix truncated LICENSE file. No code changes.
-------------------------------------------------------------------
Thu Jan 21 03:09:52 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- updated to 1.022
see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
1.022 2021-01-20T09:52:22Z
* freshen distro, dump Travis CI, add Appveyor, add Github Actions
-------------------------------------------------------------------
Sun Dec 10 14:12:02 UTC 2017 - coolo@suse.com
- updated to 1.021
see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
- license changed to Artistic-2.0
-------------------------------------------------------------------
Tue Apr 14 19:24:52 UTC 2015 - coolo@suse.com
- updated to 1.02
see /usr/share/doc/packages/perl-Module-Extract-Namespaces/Changes
1.02 - Fri Jan 3 13:48:50 2014
* Get rid of MYMETA
1.01 - Tue May 7 19:19:26 2013
* Implement from_module so you can specify a namespace
instead of a filename
0.14_02 - Sat Apr 30 11:44:49 2011
* I forgot to add the lexer hint for ::Package for the
monkey patch. That patch is only there until PPI updates
for the patch.
0.14_01 - Fri Apr 29 08:01:08 2011
* Handle the Perl 5.12 package NAME VERSION BLOCK syntax,
even if you aren't using Perl 5.12. It's just PPI, so it's
not actually running code.
-------------------------------------------------------------------
Sat Jan 22 19:38:38 UTC 2011 - coolo@novell.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Module-Extract-Namespaces (Version 0.14)
# spec file for package perl-Module-Extract-Namespaces
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,25 +12,31 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Module-Extract-Namespaces
Version: 0.14
Release: 1
License: GPL+ or Artistic
%define cpan_name Module-Extract-Namespaces
Summary: extract the package declarations from a module
Url: http://search.cpan.org/dist/Module-Extract-Namespaces/
Group: Development/Libraries/Perl
#Source: http://www.cpan.org/authors/id/B/BD/BDFOY/Module-Extract-Namespaces-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: perl(PPI)
Name: perl-Module-Extract-Namespaces
Version: 1.26.0
Release: 0
# 1.026 -> normalize -> 1.26.0
%define cpan_version 1.026
License: Artistic-2.0
Summary: Extract the package declarations from a module
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BR/BRIANDFOY/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
Requires: perl(PPI)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
BuildRequires: perl(PPI) >= 1.270
BuildRequires: perl(Test::More) >= 1
BuildRequires: perl(version) >= 0.86
Requires: perl(PPI) >= 1.270
Provides: perl(Module::Extract::Namespaces) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -43,98 +49,23 @@ It does not extract:
* * packages created as part of a fully qualified variable name
Class methods
* from_module( MODULE )
****NOT YET IMPLEMENTED****
Extract the namespaces declared in MODULE. In list context, it
returns all of the namespaces, including possible duplicates. In
scalar context it returns the first declared namespace.
If it cannot find MODULE in @INC, it returns undef in scalar context
and the empty list in list context.
On failure it returns nothing, but you have to check with 'error' to
see if that is really an error or a file with no namespaces in it.
* from_file( FILENAME )
Extract the namespaces declared in FILENAME. In list context, it
returns all of the namespaces, including possible duplicates. In
scalar context it returns the first declared namespace.
If FILENAME does not exist, it returns undef in scalar context and
the empty list in list context.
On failure it returns nothing, but you have to check with 'error' to
see if that is really an error or a file with no namespaces in it.
Subclassable hooks
* $class->pdom_base_class()
Return the base class for the PDOM. This is 'PPI' by default. If you
want to use something else, you'll have to change all the other PDOM
methods to adapt to the different interface.
This is the class name to use with 'require' to load the module that
while handle the parsing.
* $class->pdom_document_class()
Return the class name to use to create the PDOM object. This is
'PPI::Document'.
* get_pdom( FILENAME )
Creates the PDOM from FILENAME. This depends on calls to
'pdom_base_class' and 'pdom_document_class'.
* $class->pdom_preprocess( PDOM )
Override this method to play with the PDOM before extracting the
package declarations.
By default, it strips Pod and comments from the PDOM.
* $class->pdom_strip_pod( PDOM )
Strips Pod documentation from the PDOM.
* $class->pdom_strip_comments( PDOM )
Strips comments from the PDOM.
* $class->get_namespaces_from_pdom( PDOM )
Extract the namespaces from the PDOM. It returns a list of package
names in the order that it finds them in the PDOM. It does not remove
duplicates (do that later if you like).
* $class->error
Return the error from the last call to 'get_modules'.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes LICENSE README
%doc Changes examples SECURITY.md
%license LICENSE
%changelog