- 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-Linux-Systemd?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 12 17:02:32 UTC 2024 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Normalize CPAN version
|
||||
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 18 12:26:16 UTC 2023 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Linux-Systemd
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# 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
|
||||
@@ -18,18 +18,19 @@
|
||||
|
||||
%define cpan_name Linux-Systemd
|
||||
Name: perl-Linux-Systemd
|
||||
Version: 1.201600
|
||||
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}-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/I/IO/IOANR/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(ExtUtils::PkgConfig)
|
||||
BuildRequires: perl(Module::Build) >= 0.280000
|
||||
BuildRequires: perl(Module::Build) >= 0.28
|
||||
BuildRequires: perl(Moo)
|
||||
BuildRequires: perl(Test::CheckDeps) >= 0.010
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
@@ -37,6 +38,11 @@ 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)
|
||||
@@ -46,19 +52,19 @@ BuildRequires: pkgconfig(libsystemd)
|
||||
The following 'systemd' components are wrapped to some to degree.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
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}
|
||||
perl Build.PL --installdirs=vendor optimize="%{optflags}"
|
||||
./Build build --flags=%{?_smp_mflags}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%install
|
||||
./Build install destdir=%{buildroot} create_packlist=0
|
||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
|
Reference in New Issue
Block a user