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-CGI-Application-Plugin-ConfigAuto?expand=0&rev=4
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
#
 | 
			
		||||
# spec file for package perl-CGI-Application-Plugin-ConfigAuto (Version 1.33)
 | 
			
		||||
# spec file for package perl-CGI-Application-Plugin-ConfigAuto
 | 
			
		||||
#
 | 
			
		||||
# Copyright (c) 2010 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,30 +12,30 @@
 | 
			
		||||
# 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-CGI-Application-Plugin-ConfigAuto
 | 
			
		||||
Version:        1.33
 | 
			
		||||
Release:        1
 | 
			
		||||
License:        GPL+ or Artistic
 | 
			
		||||
 | 
			
		||||
%define cpan_name CGI-Application-Plugin-ConfigAuto
 | 
			
		||||
Summary:        Easy config file management for CGI::Application
 | 
			
		||||
Url:            http://search.cpan.org/dist/CGI-Application-Plugin-ConfigAuto/
 | 
			
		||||
Group:          Development/Libraries/Perl
 | 
			
		||||
Source:         http://www.cpan.org/authors/id/M/MA/MARKSTOS/%{cpan_name}-%{version}.tar.gz
 | 
			
		||||
Name:           perl-CGI-Application-Plugin-ConfigAuto
 | 
			
		||||
Version:        1.330.0
 | 
			
		||||
Release:        0
 | 
			
		||||
# 1.33 -> normalize -> 1.330.0
 | 
			
		||||
%define cpan_version 1.33
 | 
			
		||||
License:        Artistic-1.0 OR GPL-1.0-or-later
 | 
			
		||||
Summary:        Plugin that adds Config::Auto support to CGI::Application
 | 
			
		||||
URL:            https://metacpan.org/release/%{cpan_name}
 | 
			
		||||
Source0:        https://cpan.metacpan.org/authors/id/M/MA/MARKSTOS/%{cpan_name}-%{cpan_version}.tar.gz
 | 
			
		||||
BuildArch:      noarch
 | 
			
		||||
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | 
			
		||||
BuildRequires:  perl
 | 
			
		||||
BuildRequires:  perl(Module::Build)
 | 
			
		||||
BuildRequires:  perl-macros
 | 
			
		||||
BuildRequires:  perl(Carp)
 | 
			
		||||
BuildRequires:  perl(CGI::Application)
 | 
			
		||||
BuildRequires:  perl(Config::Auto)
 | 
			
		||||
BuildRequires:  perl(Module::Build)
 | 
			
		||||
Requires:       perl(Carp)
 | 
			
		||||
Requires:       perl(CGI::Application)
 | 
			
		||||
Requires:       perl(Config::Auto)
 | 
			
		||||
Provides:       perl(CGI::Application::Plugin::ConfigAuto) = %{version}
 | 
			
		||||
%undefine       __perllib_provides
 | 
			
		||||
%{perl_requires}
 | 
			
		||||
 | 
			
		||||
%description
 | 
			
		||||
@@ -47,24 +47,20 @@ until it is actually needed. The Config::Auto package provides the
 | 
			
		||||
framework for this plugin.
 | 
			
		||||
 | 
			
		||||
%prep
 | 
			
		||||
%setup -q -n %{cpan_name}-%{version}
 | 
			
		||||
%autosetup  -n %{cpan_name}-%{cpan_version}
 | 
			
		||||
 | 
			
		||||
%build
 | 
			
		||||
%{__perl} Build.PL installdirs=vendor
 | 
			
		||||
./Build build flags=%{?_smp_mflags}
 | 
			
		||||
perl Build.PL --installdirs=vendor
 | 
			
		||||
./Build build --flags=%{?_smp_mflags}
 | 
			
		||||
 | 
			
		||||
%check
 | 
			
		||||
./Build test
 | 
			
		||||
 | 
			
		||||
%install
 | 
			
		||||
./Build install destdir=%{buildroot} create_packlist=0
 | 
			
		||||
./Build install --destdir=%{buildroot} --create_packlist=0
 | 
			
		||||
%perl_gen_filelist
 | 
			
		||||
 | 
			
		||||
%clean
 | 
			
		||||
%{__rm} -rf %{buildroot}
 | 
			
		||||
 | 
			
		||||
%files -f %{name}.files
 | 
			
		||||
%defattr(-,root,root,755)
 | 
			
		||||
%doc Changes README
 | 
			
		||||
 | 
			
		||||
%changelog
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user