File perl-SPVM-Sys.spec of Package perl-SPVM-Sys
#
# spec file for package perl-SPVM-Sys
#
# Copyright (c) 2025 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 SPVM-Sys
Name: perl-SPVM-Sys
Version: 0.532
Release: 0
License: MIT
Summary: System Calls for File IO, Sockets, Time, Process, Signals, Users
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/K/KI/KIMOTO/%{cpan_name}-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(SPVM) >= 0.990042
BuildRequires: perl(SPVM::Errno) >= 0.06
BuildRequires: perl(SPVM::Resource::SocketUtil) >= 1.002
Requires: perl(SPVM) >= 0.990042
Requires: perl(SPVM::Errno) >= 0.06
Requires: perl(SPVM::Resource::SocketUtil) >= 1.002
%{perl_requires}
%description
System Calls for File IO, Sockets, Time, Process, Signals, Users
%prep
%autosetup -n %{cpan_name}-%{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 OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes development.txt README.md
%license LICENSE
%changelog