Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Object-MultiType?expand=0&rev=2
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6f99e3f4240c9c3802c3d7af460927dc0c65b434b6d74dc710eb0948c08bc9d1
|
||||
size 6243
|
3
Object-MultiType-0.05.tar.gz
Normal file
3
Object-MultiType-0.05.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:aa65390e0120dfe98e8a2c510a81adc5d3e42efa3e13d54e85467303d911bf31
|
||||
size 6629
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Object-MultiType
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,49 +12,62 @@
|
||||
# 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-Object-MultiType
|
||||
Version: 0.05
|
||||
Release: 0
|
||||
%define cpan_name Object-MultiType
|
||||
Summary: Object::MultiType Perl module
|
||||
License: CHECK(GPL-1.0+ or Artistic-1.0)
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Object-MultiType/
|
||||
Source: http://www.cpan.org/authors/id/G/GM/GMPASSOS/Object-MultiType-%{version}.tar.bz2
|
||||
# Source: Object::MultiType
|
||||
Name: perl-Object-MultiType
|
||||
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: Perl Objects as Hash, Array, Scalar, Code and Glob at the same time
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/G/GM/GMPASSOS/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# BuildRequires: perl(Test::Pod) perl(Test::Pod::Coverage)
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
Provides: perl(Object::MultiType) = %{version}
|
||||
Provides: perl(Object::MultiType::Saver)
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Object::MultiType Perl module
|
||||
This module return an object that works like a Hash, Array, Scalar, Code
|
||||
and Glob object at the same time.
|
||||
|
||||
The usual way is to call it from your module at new():
|
||||
|
||||
package FOO ;
|
||||
|
||||
use Object::MultiType ;
|
||||
use vars qw(@ISA) ;
|
||||
@ISA = qw(Object::MultiType) ; ## Is good to 'Object::MultiType' be the last in @ISA!
|
||||
|
||||
sub new {
|
||||
my $class = shift ;
|
||||
my $this = Object::MultiType->new() ;
|
||||
bless($this,$class) ;
|
||||
}
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
%build
|
||||
export AUTOMATED_TESTING=1
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
export AUTOMATED_TESTING=1
|
||||
%{__make} test
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
find %buildroot/%_prefix -name *.bs -a -size 0 | xargs rm -f
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user