2024-08-08 19:40:05 +00:00
committed by Git OBS Bridge
parent a226c30475
commit 81fff174b1

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Data-Message # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 %define cpan_name Data-Message
Summary: parse and build header-and-body messages (kinda like email) Name: perl-Data-Message
License: Artistic-1.0 or GPL-1.0+ Version: 1.104.0
Group: Development/Libraries/Perl Release: 0
Url: http://search.cpan.org/dist/Data-Message/ # 1.104 -> normalize -> 1.104.0
Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz %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 BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Email::Simple) >= 1.92 BuildRequires: perl(Email::Simple) >= 1.92
BuildRequires: perl(Test::More) >= 0.96 BuildRequires: perl(Test::More) >= 0.96
Requires: perl(Email::Simple) >= 1.92 Requires: perl(Email::Simple) >= 1.92
Provides: perl(Data::Message) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %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, 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 this module inherits from it. Changes to the interface are only prevelant
in options provided to the constructor 'new()'. For any other interface 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 Because 'Data::Message' is a subclass of 'Email::Simple', its mixins will
work with this package. For example, you may use 'Email::Simple::Creator' work with this package. For example, you may use 'Email::Simple::Creator'
to aid in the creation of 'Data::Message' objects from scratch. to aid in the creation of 'Data::Message' objects from scratch.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} %make_build
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install
@@ -69,7 +71,7 @@ to aid in the creation of 'Data::Message' objects from scratch.
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %doc Changes README
%doc Changes LICENSE README %license LICENSE
%changelog %changelog