To use systemd functions from perl (i.e. watchdog). OBS-URL: https://build.opensuse.org/request/show/1080141 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Systemd?expand=0&rev=1
69 lines
2.1 KiB
RPMSpec
69 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package perl-Linux-Systemd
|
|
#
|
|
# Copyright (c) 2023 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 Linux-Systemd
|
|
Name: perl-Linux-Systemd
|
|
Version: 1.201600
|
|
Release: 0
|
|
#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: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/I/IO/IOANR/%{cpan_name}-%{version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(ExtUtils::PkgConfig)
|
|
BuildRequires: perl(Module::Build) >= 0.280000
|
|
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
|
|
%{perl_requires}
|
|
# MANUAL BEGIN
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
# MANUAL END
|
|
|
|
%description
|
|
The following 'systemd' components are wrapped to some to degree.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
perl Build.PL installdirs=vendor optimize="%{optflags}"
|
|
./Build build flags=%{?_smp_mflags}
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README.md
|
|
%license LICENSE
|
|
|
|
%changelog
|