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
This commit is contained in:
committed by
Git OBS Bridge
parent
e9f8b96e30
commit
80d8574c81
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e68dec2177dd1fffa1e7face69e116bce0ba54a47258eba8d56ec75f8856e558
|
||||
size 5270
|
3
Module-Extract-Namespaces-1.02.tar.gz
Normal file
3
Module-Extract-Namespaces-1.02.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bdc36e64462f7436fc52b33651a6f9a17df35511916acbe1845a13005cc65e22
|
||||
size 8875
|
@@ -1,3 +1,26 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Module-Extract-Namespaces
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# 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
|
||||
@@ -16,23 +16,21 @@
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: perl-Module-Extract-Namespaces
|
||||
Version: 0.14
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
Version: 1.02
|
||||
Release: 0
|
||||
%define cpan_name Module-Extract-Namespaces
|
||||
Summary: extract the package declarations from a module
|
||||
Url: http://search.cpan.org/dist/Module-Extract-Namespaces/
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
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.gz
|
||||
BuildRequires: perl(PPI)
|
||||
Url: http://search.cpan.org/dist/Module-Extract-Namespaces/
|
||||
Source: http://www.cpan.org/authors/id/B/BD/BDFOY/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(PPI)
|
||||
Requires: perl(PPI)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -45,78 +43,6 @@ 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}
|
||||
|
||||
@@ -132,11 +58,8 @@ Subclassable hooks
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(644,root,root,755)
|
||||
%doc Changes LICENSE README
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes examples LICENSE README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user