Files
perl-POE-Session-AttributeB…/perl-POE-Session-AttributeBased.spec
2025-08-12 18:16:42 +02:00

67 lines
2.0 KiB
RPMSpec

#
# spec file for package perl-POE-Session-AttributeBased
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name POE-Session-AttributeBased
Name: perl-POE-Session-AttributeBased
Version: 0.100.0
Release: 0
# 0.10 -> normalize -> 0.100.0
%define cpan_version 0.10
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: POE::Session syntax sweetener
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/C/CF/CFEDDE/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(POE)
BuildRequires: perl(POE::Session)
Requires: perl(POE)
Requires: perl(POE::Session)
Provides: perl(DB)
Provides: perl(POE::Session::AttributeBased) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
Provides an attribute handler that does some bookkeeping for state
handlers. There have been a few of these classes for POE. This is probably
the most minimal. It supports only the inline attribute syntax. but that
seems sufficient for cranking up a POE session.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog