8
0

Compare commits

2 Commits

2 changed files with 29 additions and 23 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 11 14:28:28 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Tue Jun 4 08:22:27 UTC 2013 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Devel-LexAlias
#
# Copyright (c) 2013 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,26 @@
# 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-Devel-LexAlias
Version: 0.05
Release: 0
%define cpan_name Devel-LexAlias
Summary: alias lexical variables
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Devel-LexAlias/
Source: http://www.cpan.org/authors/id/R/RC/RCLAMP/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Name: perl-Devel-LexAlias
Version: 0.50.0
Release: 0
# 0.05 -> normalize -> 0.50.0
%define cpan_version 0.05
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Alias lexical variables
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/%{cpan_name}-%{cpan_version}.tar.gz
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Devel::Caller) >= 0.03
#BuildRequires: perl(Devel::LexAlias)
Requires: perl(Devel::Caller) >= 0.03
BuildRequires: perl(Devel::Caller) >= 0.30
Requires: perl(Devel::Caller) >= 0.30
Provides: perl(Devel::LexAlias) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -44,22 +45,22 @@ Still here?
* lexalias( $where, $name, $variable )
'$where' refers to the subroutine in which to alias the lexical, it can
be a coderef or a call level such that you'd give to 'caller'
'$where' refers to the subroutine in which to alias the lexical, it can be
a coderef or a call level such that you'd give to 'caller'
'$name' is the name of the lexical within that subroutine
'$name' is the name of the lexical within that subroutine
'$variable' is a reference to the variable to install at that location
'$variable' is a reference to the variable to install at that location
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@@ -67,7 +68,6 @@ Still here?
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes
%changelog