From e86e508cf233bb8a4a0d32bcd96619f9e575f162bc748808ec51a29ec98ec8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Sat, 20 Jul 2024 19:55:02 +0000 Subject: [PATCH] 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-Dancer-Plugin-Database?expand=0&rev=13 --- perl-Dancer-Plugin-Database.spec | 41 ++++++++++++++++---------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/perl-Dancer-Plugin-Database.spec b/perl-Dancer-Plugin-Database.spec index 580b8a1..1c79a15 100644 --- a/perl-Dancer-Plugin-Database.spec +++ b/perl-Dancer-Plugin-Database.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Dancer-Plugin-Database # -# Copyright (c) 2016 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 @@ -12,28 +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-Dancer-Plugin-Database -Version: 2.13 -Release: 0 %define cpan_name Dancer-Plugin-Database -Summary: Easy Database Connections for Dancer Applications -License: Artistic-1.0 or GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Dancer-Plugin-Database/ -Source0: http://www.cpan.org/authors/id/B/BI/BIGPRESH/%{cpan_name}-%{version}.tar.gz +Name: perl-Dancer-Plugin-Database +Version: 2.130.0 +Release: 0 +# 2.13 -> normalize -> 2.130.0 +%define cpan_version 2.13 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Easy database connections for Dancer applications +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Dancer) >= 1.3099 -BuildRequires: perl(Dancer::Plugin::Database::Core) >= 0.16 -Requires: perl(Dancer) >= 1.3099 -Requires: perl(Dancer::Plugin::Database::Core) >= 0.16 +BuildRequires: perl(Dancer) >= 1.309.900 +BuildRequires: perl(Dancer::Plugin::Database::Core) >= 0.160 +Requires: perl(Dancer) >= 1.309.900 +Requires: perl(Dancer::Plugin::Database::Core) >= 0.160 +Provides: perl(Dancer::Plugin::Database) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -61,14 +63,14 @@ S Trout for pointing out the previous lack of thread safety. Inspiration was drawn from DBIx::Connector.) %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install @@ -76,7 +78,6 @@ was drawn from DBIx::Connector.) %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes README %changelog