76 lines
2.5 KiB
RPMSpec
76 lines
2.5 KiB
RPMSpec
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%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: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/I/IO/IOANR/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
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
|
|
%{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}-%{cpan_version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -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
|