File perl-Linux-Systemd.spec of Package perl-Linux-Systemd

# spec file for package perl-Linux-Systemd
# 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

%define cpan_name Linux-Systemd
Name:           perl-Linux-Systemd
Version:        1.201.600
Release:        0
%define cpan_version 1.201600
#Upstream:  This is free software, licensed under: The GNU Lesser General Public License, Version 2.1, February 1999
License:        LGPL-2.1-only
Summary:        Bindings for systemd APIs
URL:  {cpan_name}
Source1:        cpanspec.yml
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(ExtUtils::PkgConfig)
BuildRequires:  perl(Module::Build) >= 0.28
BuildRequires:  perl(Moo)
BuildRequires:  perl(Test::CheckDeps) >= 0.010
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::More) >= 0.94
BuildRequires:  perl(strictures) >= 2
Requires:       perl(Moo)
Requires:       perl(strictures) >= 2
Provides:       perl(Linux::Systemd) = %{version}
Provides:       perl(Linux::Systemd::Daemon) = %{version}
Provides:       perl(Linux::Systemd::Journal::Read) = %{version}
Provides:       perl(Linux::Systemd::Journal::Write) = %{version}
%undefine       __perllib_provides
BuildRequires:  pkgconfig(libsystemd)

The following 'systemd' components are wrapped to some to degree.

%autosetup  -n %{cpan_name}-%{cpan_version}

find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644

perl Build.PL --installdirs=vendor optimize="%{optflags}"
./Build build --flags=%{?_smp_mflags}

./Build test

./Build install --destdir=%{buildroot} --create_packlist=0

%files -f %{name}.files
%doc Changes
%license LICENSE

openSUSE Build Service is sponsored by