From 7a962d33114c90264c19d17d4dcbc44403718160e5cbd9a396d23f1e21a74c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Tue, 6 Aug 2024 20:37:21 +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-XML-OverHTTP?expand=0&rev=3 --- perl-XML-OverHTTP.spec | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/perl-XML-OverHTTP.spec b/perl-XML-OverHTTP.spec index 169ba9b..2def75e 100644 --- a/perl-XML-OverHTTP.spec +++ b/perl-XML-OverHTTP.spec @@ -1,7 +1,7 @@ # # spec file for package perl-XML-OverHTTP # -# Copyright (c) 2019 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,18 +16,18 @@ # -Name: perl-XML-OverHTTP -Version: 0.08 -Release: 0 %define cpan_name XML-OverHTTP -Summary: Base class for XML over HTTP-styled web service interface +Name: perl-XML-OverHTTP +Version: 0.80.0 +Release: 0 +# 0.08 -> normalize -> 0.80.0 +%define cpan_version 0.08 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/K/KA/KAWASAKI/%{cpan_name}-%{version}.tar.gz +Summary: Base class for XML over HTTP-styled web service interface +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/K/KA/KAWASAKI/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(CGI) @@ -35,13 +35,16 @@ BuildRequires: perl(Class::Accessor::Chained::Fast) BuildRequires: perl(Class::Accessor::Fast) BuildRequires: perl(Data::Page) BuildRequires: perl(Data::Pageset) -BuildRequires: perl(XML::TreePP) >= 0.33 +BuildRequires: perl(XML::TreePP) >= 0.330 Requires: perl(CGI) Requires: perl(Class::Accessor::Chained::Fast) Requires: perl(Class::Accessor::Fast) Requires: perl(Data::Page) Requires: perl(Data::Pageset) -Requires: perl(XML::TreePP) >= 0.33 +Requires: perl(XML::TreePP) >= 0.330 +Provides: perl(XML::OverHTTP) = %{version} +Provides: perl(XML::OverHTTP::Default) +%undefine __perllib_provides %{perl_requires} %description @@ -50,12 +53,13 @@ module authors can easily write own interface module for XML over HTTP-styled web service. %prep -%setup -q -n %{cpan_name}-%{version} -find . -type f ! -path "*/t/*" ! -name "*.pl" ! -name "*.sh" -print0 | xargs -0 chmod 644 +%autosetup -n %{cpan_name}-%{cpan_version} + +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -66,7 +70,6 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes make-dist.sh README %changelog