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-POE-Component-Client-Ident?expand=0&rev=6
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-POE-Component-Client-Ident
|
||||
#
|
||||
# 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,20 +16,21 @@
|
||||
#
|
||||
|
||||
|
||||
Name: perl-POE-Component-Client-Ident
|
||||
Version: 1.16
|
||||
Release: 0
|
||||
%define cpan_name POE-Component-Client-Ident
|
||||
Summary: Component that provides non-blocking ident lookups to your sessions
|
||||
Name: perl-POE-Component-Client-Ident
|
||||
Version: 1.160.0
|
||||
Release: 0
|
||||
# 1.16 -> normalize -> 1.160.0
|
||||
%define cpan_version 1.16
|
||||
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/B/BI/BINGOS/%{cpan_name}-%{version}.tar.gz
|
||||
Summary: Component that provides non-blocking ident lookups to your sessions
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
||||
BuildRequires: perl(POE) >= 0.38
|
||||
BuildRequires: perl(POE::Filter::Line)
|
||||
BuildRequires: perl(POE::Wheel::ReadWrite)
|
||||
@@ -39,6 +40,10 @@ Requires: perl(POE) >= 0.38
|
||||
Requires: perl(POE::Filter::Line)
|
||||
Requires: perl(POE::Wheel::ReadWrite)
|
||||
Requires: perl(POE::Wheel::SocketFactory)
|
||||
Provides: perl(POE::Component::Client::Ident) = %{version}
|
||||
Provides: perl(POE::Component::Client::Ident::Agent) = %{version}
|
||||
Provides: perl(POE::Filter::Ident) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -51,11 +56,11 @@ POE::Component::Client::Ident::Agent sessions to perform the Ident queries
|
||||
and returns the appropriate responses to the requesting session.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
%build
|
||||
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
@@ -66,7 +71,6 @@ make test
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
%license LICENSE
|
||||
|
||||
|
Reference in New Issue
Block a user