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-Tiny?expand=0&rev=5
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| # | ||||
| # spec file for package perl-Object-Tiny | ||||
| # | ||||
| # Copyright (c) 2018 SUSE LINUX 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 | ||||
| @@ -16,20 +16,22 @@ | ||||
| # | ||||
|  | ||||
|  | ||||
| Name:           perl-Object-Tiny | ||||
| Version:        1.09 | ||||
| Release:        0 | ||||
| %define cpan_name Object-Tiny | ||||
| Summary:        Class building as simple as it gets | ||||
| Name:           perl-Object-Tiny | ||||
| Version:        1.90.0 | ||||
| Release:        0 | ||||
| # 1.09 -> normalize -> 1.90.0 | ||||
| %define cpan_version 1.09 | ||||
| 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 | ||||
| Summary:        Class building as simple as it gets | ||||
| URL:            https://metacpan.org/release/%{cpan_name} | ||||
| Source0:        https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{cpan_version}.tar.gz | ||||
| Source1:        cpanspec.yml | ||||
| BuildArch:      noarch | ||||
| BuildRoot:      %{_tmppath}/%{name}-%{version}-build | ||||
| BuildRequires:  perl | ||||
| BuildRequires:  perl-macros | ||||
| Provides:       perl(Object::Tiny) = %{version} | ||||
| %undefine       __perllib_provides | ||||
| %{perl_requires} | ||||
|  | ||||
| %description | ||||
| @@ -90,10 +92,10 @@ In fact, if doing the following in your class gets annoying... | ||||
|   sub new { | ||||
|       my $class = shift; | ||||
|       my $self  = $class->SUPER::new( @_ ); | ||||
|    | ||||
|  | ||||
|       # Extra checking and such | ||||
|       ... | ||||
|    | ||||
|  | ||||
|       return $self; | ||||
|   } | ||||
|  | ||||
| @@ -105,11 +107,11 @@ And that's really all there is to it. Let a million simple data classes | ||||
| bloom. Features? We don't need no stinking features. | ||||
|  | ||||
| %prep | ||||
| %setup -q -n %{cpan_name}-%{version} | ||||
| %autosetup  -n %{cpan_name}-%{cpan_version} | ||||
|  | ||||
| %build | ||||
| perl Makefile.PL INSTALLDIRS=vendor | ||||
| make %{?_smp_mflags} | ||||
| %make_build | ||||
|  | ||||
| %check | ||||
| make test | ||||
| @@ -120,7 +122,6 @@ make test | ||||
| %perl_gen_filelist | ||||
|  | ||||
| %files -f %{name}.files | ||||
| %defattr(-,root,root,755) | ||||
| %doc Changes CONTRIBUTING examples README | ||||
| %license LICENSE | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user