From 81fff174b1be9ef07f12f57681caef4f2933b059f56ee3048a71adec7b8bf7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Thu, 8 Aug 2024 19:40:05 +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-Data-Message?expand=0&rev=5 --- perl-Data-Message.spec | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/perl-Data-Message.spec b/perl-Data-Message.spec index dd6b471..a2f8fd3 100644 --- a/perl-Data-Message.spec +++ b/perl-Data-Message.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Data-Message # -# Copyright (c) 2015 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,26 +12,28 @@ # 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-Data-Message -Version: 1.104 -Release: 0 %define cpan_name Data-Message -Summary: parse and build header-and-body messages (kinda like email) -License: Artistic-1.0 or GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Data-Message/ -Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz +Name: perl-Data-Message +Version: 1.104.0 +Release: 0 +# 1.104 -> normalize -> 1.104.0 +%define cpan_version 1.104 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Parse and build header-and-body messages (kinda like email) +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{cpan_version}.tar.gz BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Email::Simple) >= 1.92 BuildRequires: perl(Test::More) >= 0.96 Requires: perl(Email::Simple) >= 1.92 +Provides: perl(Data::Message) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -47,21 +49,21 @@ a header of key/value pairs followed by an *optional* body. Because 'Email::Simple' is so good at parsing this format, and so fast, this module inherits from it. Changes to the interface are only prevelant in options provided to the constructor 'new()'. For any other interface -usage documentation, please see the Email::Simple manpage. +usage documentation, please see Email::Simple. Because 'Data::Message' is a subclass of 'Email::Simple', its mixins will work with this package. For example, you may use 'Email::Simple::Creator' to aid in the creation of 'Data::Message' objects from scratch. %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 @@ -69,7 +71,7 @@ to aid in the creation of 'Data::Message' objects from scratch. %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc Changes LICENSE README +%doc Changes README +%license LICENSE %changelog