Compare commits
16 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ef65e41f0 | ||
|
|
d1ba2ff0d6 | ||
|
|
fb08639a45 | ||
|
|
3f25d994cd | ||
|
|
7e48b2a7bc |
||
|
|
c55df1dbb2 | ||
|
|
87aa1a9b35 | ||
|
|
935d9bec0a | ||
|
|
2fed631962 | ||
|
|
73d1470463 | ||
|
|
a391429e5b | ||
|
|
4ad172aa24 | ||
|
|
31e2596490 | ||
|
|
d6f81e29e9 | ||
|
|
667c70b468 | ||
|
|
ab09719edb |
7 changed files with 74 additions and 158 deletions
66
.gitignore
vendored
66
.gitignore
vendored
|
|
@ -100,72 +100,6 @@
|
||||||
/nmstate-2.2.13.tar.gz
|
/nmstate-2.2.13.tar.gz
|
||||||
/nmstate-2.2.13.tar.gz.asc
|
/nmstate-2.2.13.tar.gz.asc
|
||||||
/nmstate-vendor-2.2.13.tar.xz
|
/nmstate-vendor-2.2.13.tar.xz
|
||||||
/nmstate-2.2.14.tar.gz
|
|
||||||
/nmstate-2.2.14.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.14.tar.xz
|
|
||||||
/nmstate-2.2.15.tar.gz
|
/nmstate-2.2.15.tar.gz
|
||||||
/nmstate-2.2.15.tar.gz.asc
|
/nmstate-2.2.15.tar.gz.asc
|
||||||
/nmstate-vendor-2.2.15.tar.xz
|
/nmstate-vendor-2.2.15.tar.xz
|
||||||
/nmstate-2.2.21.tar.gz
|
|
||||||
/nmstate-2.2.21.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.21.tar.xz
|
|
||||||
/nmstate-2.2.26.tar.gz
|
|
||||||
/nmstate-2.2.26.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.26.tar.xz
|
|
||||||
/nmstate-2.2.33.tar.gz
|
|
||||||
/nmstate-2.2.33.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.33.tar.xz
|
|
||||||
/nmstate-2.2.34.tar.gz
|
|
||||||
/nmstate-2.2.34.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.34.tar.xz
|
|
||||||
/nmstate-2.2.35.tar.gz
|
|
||||||
/nmstate-2.2.35.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.35.tar.xz
|
|
||||||
/nmstate-2.2.39.tar.gz
|
|
||||||
/nmstate-2.2.39.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.39.tar.xz
|
|
||||||
/nmstate-2.2.40.tar.gz
|
|
||||||
/nmstate-2.2.40.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.40.tar.xz
|
|
||||||
/nmstate-2.2.41.tar.gz
|
|
||||||
/nmstate-2.2.41.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.41.tar.xz
|
|
||||||
/nmstate-2.2.42.tar.gz
|
|
||||||
/nmstate-2.2.42.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.42.tar.xz
|
|
||||||
/nmstate-2.2.43.tar.gz
|
|
||||||
/nmstate-2.2.43.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.43.tar.xz
|
|
||||||
/nmstate-2.2.44.tar.gz
|
|
||||||
/nmstate-2.2.44.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.44.tar.xz
|
|
||||||
/nmstate-2.2.45.tar.gz
|
|
||||||
/nmstate-2.2.45.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.45.tar.xz
|
|
||||||
/nmstate-2.2.46.tar.gz
|
|
||||||
/nmstate-2.2.46.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.46.tar.xz
|
|
||||||
/nmstate-2.2.47.tar.gz
|
|
||||||
/nmstate-2.2.47.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.47.tar.xz
|
|
||||||
/nmstate-2.2.48.tar.gz
|
|
||||||
/nmstate-2.2.48.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.48.tar.xz
|
|
||||||
/nmstate-2.2.49.tar.gz
|
|
||||||
/nmstate-2.2.49.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.49.tar.xz
|
|
||||||
/nmstate-2.2.50.tar.gz
|
|
||||||
/nmstate-2.2.50.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.50.tar.xz
|
|
||||||
/nmstate-2.2.52.tar.gz
|
|
||||||
/nmstate-2.2.52.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.52.tar.xz
|
|
||||||
/nmstate-2.2.54.tar.gz
|
|
||||||
/nmstate-2.2.54.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.54.tar.xz
|
|
||||||
/nmstate-2.2.55.tar.gz
|
|
||||||
/nmstate-2.2.55.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.55.tar.xz
|
|
||||||
/nmstate-2.2.57.tar.gz
|
|
||||||
/nmstate-2.2.57.tar.gz.asc
|
|
||||||
/nmstate-vendor-2.2.57.tar.xz
|
|
||||||
|
|
|
||||||
33
0001-Workaround-for-Fedora-rust-packaging.patch
Normal file
33
0001-Workaround-for-Fedora-rust-packaging.patch
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
From a78d7610a7a3adc4cd80433bdded7d37e738eb12 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gris Ge <fge@redhat.com>
|
||||||
|
Date: Mon, 16 Jan 2023 11:56:16 +0800
|
||||||
|
Subject: [PATCH] Workaround for Fedora rust packaging
|
||||||
|
|
||||||
|
Signed-off-by: Gris Ge <fge@redhat.com>
|
||||||
|
---
|
||||||
|
rust/src/lib/Cargo.toml | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/rust/src/lib/Cargo.toml b/rust/src/lib/Cargo.toml
|
||||||
|
index 801b3e33..67c7f3dd 100644
|
||||||
|
--- a/rust/src/lib/Cargo.toml
|
||||||
|
+++ b/rust/src/lib/Cargo.toml
|
||||||
|
@@ -9,7 +9,7 @@ documentation = "https://nmstate.io"
|
||||||
|
repository = "https://github.com/nmstate/nmstate"
|
||||||
|
keywords = ["network", "linux"]
|
||||||
|
categories = ["network-programming", "os::linux-apis"]
|
||||||
|
-rust-version = "1.58"
|
||||||
|
+rust-version = "1.60"
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
@@ -62,5 +62,5 @@ serde_yaml = "0.9"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["query_apply", "gen_conf"]
|
||||||
|
-query_apply = ["nispor", "nix", "zbus"]
|
||||||
|
+query_apply = ["dep:nispor", "dep:nix", "dep:zbus"]
|
||||||
|
gen_conf = []
|
||||||
|
--
|
||||||
|
2.39.0
|
||||||
|
|
||||||
|
|
@ -1,10 +1,3 @@
|
||||||
# nmstate
|
# nmstate
|
||||||
|
|
||||||
The nmstate package
|
The nmstate package
|
||||||
|
|
||||||
## Bundle update with rust-netlink and nispor
|
|
||||||
|
|
||||||
When certain nmstate update requires new release of rust-netlink or nispor,
|
|
||||||
please check this document on correct procedure:
|
|
||||||
|
|
||||||
https://docs.fedoraproject.org/en-US/package-maintainers/Package_Update_Guide/#multiple_packages
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
This repository is maintained by packit.
|
This repository is maintained by packit.
|
||||||
https://packit.dev/
|
https://packit.dev/
|
||||||
The file was generated using packit 1.12.0.post1.dev13+gd51655c23.
|
The file was generated using packit 0.79.0.post2+g93f33d9.
|
||||||
|
|
|
||||||
108
nmstate.spec
108
nmstate.spec
|
|
@ -2,19 +2,22 @@
|
||||||
%define libname libnmstate
|
%define libname libnmstate
|
||||||
|
|
||||||
Name: nmstate
|
Name: nmstate
|
||||||
Version: 2.2.57
|
Version: 2.2.15
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Declarative network manager API
|
Summary: Declarative network manager API
|
||||||
License: Apache-2.0 AND LGPL-2.1-or-later
|
License: LGPLv2+
|
||||||
URL: https://github.com/%{srcname}/%{srcname}
|
URL: https://github.com/%{srcname}/%{srcname}
|
||||||
Source0: %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz
|
Source0: %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz
|
||||||
Source1: %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz.asc
|
Source1: %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz.asc
|
||||||
Source2: https://nmstate.io/nmstate.gpg
|
Source2: https://nmstate.io/nmstate.gpg
|
||||||
Source3: %{url}/releases/download/v%{version}/%{srcname}-vendor-%{version}.tar.xz
|
Source3: %{url}/releases/download/v%{version}/%{srcname}-vendor-%{version}.tar.xz
|
||||||
# Force nmstate-libs upgrade along with nmstate rpm when installed
|
# We use `dep: dep_name` to prevent rust packaging generate incorect dependency
|
||||||
# https://issues.redhat.com/browse/RHEL-52890
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2161128
|
||||||
Requires: (nmstate-libs%{?_isa} = %{version}-%{release} if nmstate-libs)
|
# but list Requires manually
|
||||||
|
Patch1: 0001-Workaround-for-Fedora-rust-packaging.patch
|
||||||
|
BuildRequires: patchelf
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: gnupg2
|
BuildRequires: gnupg2
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
|
|
@ -24,36 +27,23 @@ BuildRequires: rust-toolset
|
||||||
BuildRequires: rust-packaging
|
BuildRequires: rust-packaging
|
||||||
BuildRequires: (crate(clap/cargo) >= 3.1 with crate(clap/cargo) < 4.0)
|
BuildRequires: (crate(clap/cargo) >= 3.1 with crate(clap/cargo) < 4.0)
|
||||||
BuildRequires: (crate(clap/default) >= 3.1 with crate(clap/default) < 4.0)
|
BuildRequires: (crate(clap/default) >= 3.1 with crate(clap/default) < 4.0)
|
||||||
BuildRequires: (crate(time/std) >= 0.3 with crate(time/std) < 0.4)
|
BuildRequires: (crate(chrono/default) >= 0.4 with crate(chrono/default) < 0.5)
|
||||||
BuildRequires: (crate(time/formatting) >= 0.3 with crate(time/formatting) < 0.4)
|
BuildRequires: (crate(ctrlc/default) >= 3.2 with crate(ctrlc/default) < 4.0)
|
||||||
BuildRequires: (crate(time/parsing) >= 0.3 with crate(time/parsing) < 0.4)
|
BuildRequires: (crate(env_logger/default) >= 0.10 with crate(env_logger/default) < 0.11)
|
||||||
BuildRequires: (crate(env_logger/default) >= 0.11 with crate(env_logger/default) < 0.12)
|
|
||||||
BuildRequires: (crate(libc/default) >= 0.2 with crate(libc/default) < 0.3)
|
BuildRequires: (crate(libc/default) >= 0.2 with crate(libc/default) < 0.3)
|
||||||
BuildRequires: (crate(log/default) >= 0.4 with crate(log/default) < 0.5)
|
BuildRequires: (crate(log/default) >= 0.4 with crate(log/default) < 0.5)
|
||||||
BuildRequires: (crate(nispor/default) >= 1.2.27 with crate(nispor/default) < 2.0)
|
BuildRequires: (crate(nispor/default) >= 1.2.12 with crate(nispor/default) < 2.0)
|
||||||
BuildRequires: (crate(serde/default) >= 1.0 with crate(serde/default) < 2.0)
|
BuildRequires: (crate(serde/default) >= 1.0 with crate(serde/default) < 2.0)
|
||||||
BuildRequires: (crate(serde/derive) >= 1.0 with crate(serde/derive) < 2.0)
|
BuildRequires: (crate(serde/derive) >= 1.0 with crate(serde/derive) < 2.0)
|
||||||
BuildRequires: (crate(serde_json/default) >= 1.0 with crate(serde_json/default) < 2.0)
|
BuildRequires: (crate(serde_json/default) >= 1.0 with crate(serde_json/default) < 2.0)
|
||||||
BuildRequires: (crate(serde_yaml/default) >= 0.9 with crate(serde_yaml/default) < 1.0)
|
BuildRequires: (crate(serde_yaml/default) >= 0.9 with crate(serde_yaml/default) < 1.0)
|
||||||
BuildRequires: (crate(uuid/v4) >= 1.1 with crate(uuid/v4) < 2.0)
|
BuildRequires: (crate(uuid/v4) >= 1.1 with crate(uuid/v4) < 2.0)
|
||||||
BuildRequires: (crate(uuid/v5) >= 1.1 with crate(uuid/v5) < 2.0)
|
BuildRequires: (crate(uuid/v5) >= 1.1 with crate(uuid/v5) < 2.0)
|
||||||
BuildRequires: (crate(zbus/default) >= 5.1 with crate(zbus/default) < 6.0)
|
BuildRequires: (crate(zbus/default) >= 1.9 with crate(zbus/default) < 2.0)
|
||||||
BuildRequires: (crate(zvariant/default) >= 5.1 with crate(zvariant/default) < 6.0)
|
BuildRequires: (crate(zvariant/default) >= 2.10 with crate(zvariant/default) < 3.0)
|
||||||
BuildRequires: (crate(nix/default) >= 0.30 with crate(nix/default) < 0.31)
|
BuildRequires: (crate(nix/default) >= 0.26 with crate(nix/default) < 0.27)
|
||||||
BuildRequires: (crate(toml/default) >= 0.9 with crate(toml/default) < 1.0)
|
|
||||||
BuildRequires: (crate(tokio/default) >= 1.3 with crate(tokio/default) < 2.0)
|
|
||||||
BuildRequires: (crate(tokio/net) >= 1.3 with crate(tokio/net) < 2.0)
|
|
||||||
BuildRequires: (crate(tokio/rt) >= 1.3 with crate(tokio/rt) < 2.0)
|
|
||||||
BuildRequires: (crate(tokio/signal) >= 1.3 with crate(tokio/signal) < 2.0)
|
|
||||||
BuildRequires: (crate(tokio/time) >= 1.3 with crate(tokio/time) < 2.0)
|
|
||||||
BuildRequires: (crate(once_cell/default) >= 1.12 with crate(once_cell/default) < 2.0)
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%generate_buildrequires
|
|
||||||
pushd rust/src/python >/dev/null
|
|
||||||
%pyproject_buildrequires
|
|
||||||
popd >/dev/null
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Nmstate is a library with an accompanying command line tool that manages host
|
Nmstate is a library with an accompanying command line tool that manages host
|
||||||
networking settings in a declarative manner and aimed to satisfy enterprise
|
networking settings in a declarative manner and aimed to satisfy enterprise
|
||||||
|
|
@ -68,7 +58,7 @@ Summary: C binding of nmstate
|
||||||
Recommends: NetworkManager
|
Recommends: NetworkManager
|
||||||
# Avoid automatically generated profiles
|
# Avoid automatically generated profiles
|
||||||
Recommends: NetworkManager-config-server
|
Recommends: NetworkManager-config-server
|
||||||
License: Apache-2.0
|
License: ASL 2.0
|
||||||
|
|
||||||
%description libs
|
%description libs
|
||||||
C binding of nmstate.
|
C binding of nmstate.
|
||||||
|
|
@ -77,7 +67,7 @@ C binding of nmstate.
|
||||||
Summary: Development files for nmstate
|
Summary: Development files for nmstate
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
License: Apache-2.0
|
License: ASL 2.0
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Development files of nmstate C binding.
|
Development files of nmstate C binding.
|
||||||
|
|
@ -85,7 +75,6 @@ Development files of nmstate C binding.
|
||||||
%package static
|
%package static
|
||||||
Summary: Static development files for nmstate
|
Summary: Static development files for nmstate
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: Apache-2.0
|
|
||||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description static
|
%description static
|
||||||
|
|
@ -106,7 +95,6 @@ Suggests: NetworkManager-team
|
||||||
Provides: nmstate-plugin-ovsdb = %{version}-%{release}
|
Provides: nmstate-plugin-ovsdb = %{version}-%{release}
|
||||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
Obsoletes: nmstate-plugin-ovsdb < 2.0-1
|
Obsoletes: nmstate-plugin-ovsdb < 2.0-1
|
||||||
License: Apache-2.0
|
|
||||||
|
|
||||||
%description -n python3-%{libname}
|
%description -n python3-%{libname}
|
||||||
This package contains the Python 3 library for Nmstate.
|
This package contains the Python 3 library for Nmstate.
|
||||||
|
|
@ -115,7 +103,6 @@ This package contains the Python 3 library for Nmstate.
|
||||||
%package -n rust-%{name}-devel
|
%package -n rust-%{name}-devel
|
||||||
Summary: Rust crate of nmstate
|
Summary: Rust crate of nmstate
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
License: Apache-2.0
|
|
||||||
|
|
||||||
%description -n rust-%{name}-devel
|
%description -n rust-%{name}-devel
|
||||||
This package contains library source intended for building other packages
|
This package contains library source intended for building other packages
|
||||||
|
|
@ -124,7 +111,6 @@ which use "%{name}" crate.
|
||||||
%package -n rust-%{name}+default-devel
|
%package -n rust-%{name}+default-devel
|
||||||
Summary: Rust crate of nmstate with default feature
|
Summary: Rust crate of nmstate with default feature
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
License: Apache-2.0
|
|
||||||
|
|
||||||
%description -n rust-%{name}+default-devel
|
%description -n rust-%{name}+default-devel
|
||||||
This package contains library source intended for building other packages
|
This package contains library source intended for building other packages
|
||||||
|
|
@ -133,46 +119,34 @@ which use "%{name}" crate with default feature.
|
||||||
%package -n rust-%{name}+gen_conf-devel
|
%package -n rust-%{name}+gen_conf-devel
|
||||||
Summary: Rust crate of nmstate with default feature
|
Summary: Rust crate of nmstate with default feature
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
License: Apache-2.0
|
|
||||||
|
|
||||||
%description -n rust-%{name}+gen_conf-devel
|
%description -n rust-%{name}+gen_conf-devel
|
||||||
This package contains library source intended for building other packages
|
This package contains library source intended for building other packages
|
||||||
which use "%{name}" crate with gen_conf feature.
|
which use "%{name}" crate with gen_conf feature.
|
||||||
|
|
||||||
%package -n rust-%{name}+query_apply-devel
|
%package -n rust-%{name}+query_apply-devel
|
||||||
Summary: Rust crate of nmstate with query_apply feature
|
Summary: Rust crate of nmstate with default feature
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
License: Apache-2.0
|
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2161128
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2161128
|
||||||
Requires: (crate(nispor/default) >= 1.2.17 with crate(nispor/default) < 2.0)
|
Requires: (crate(nispor/default) >= 1.2.12 with crate(nispor/default) < 2.0)
|
||||||
Requires: (crate(nix/default) >= 0.26 with crate(nix/default) < 0.27)
|
Requires: (crate(nix/default) >= 0.24 with crate(nix/default) < 0.25)
|
||||||
Requires: (crate(zbus/default) >= 5.1 with crate(zbus/default) < 6.0)
|
Requires: (crate(zbus/default) >= 1.9 with crate(zbus/default) < 2.0)
|
||||||
|
|
||||||
%description -n rust-%{name}+query_apply-devel
|
%description -n rust-%{name}+query_apply-devel
|
||||||
This package contains library source intended for building other packages
|
This package contains library source intended for building other packages
|
||||||
which use "%{name}" crate with query_apply feature.
|
which use "%{name}" crate with query_apply feature.
|
||||||
|
|
||||||
%package -n rust-%{name}+gen_revert-devel
|
|
||||||
Summary: Rust crate of nmstate with gen_revert feature
|
|
||||||
BuildArch: noarch
|
|
||||||
License: Apache-2.0
|
|
||||||
|
|
||||||
%description -n rust-%{name}+gen_revert-devel
|
|
||||||
This package contains library source intended for building other packages
|
|
||||||
which use "%{name}" crate with gen_revert feature.
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
gpg2 --import --import-options import-export,import-minimal \
|
gpg2 --import --import-options import-export,import-minimal \
|
||||||
%{SOURCE2} > ./gpgkey-mantainers.gpg
|
%{SOURCE2} > ./gpgkey-mantainers.gpg
|
||||||
gpgv2 --keyring ./gpgkey-mantainers.gpg %{SOURCE1} %{SOURCE0}
|
gpgv2 --keyring ./gpgkey-mantainers.gpg %{SOURCE1} %{SOURCE0}
|
||||||
|
%autosetup -p1
|
||||||
%autosetup -n %{name}-%{version_no_tilde} -p1 %{?rhel:-a3}
|
|
||||||
|
|
||||||
pushd rust
|
pushd rust
|
||||||
|
rm .cargo/config.toml
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
mv ../vendor ./
|
%cargo_prep -V 3
|
||||||
%cargo_prep -v vendor
|
|
||||||
%else
|
%else
|
||||||
%cargo_prep
|
%cargo_prep
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -181,15 +155,10 @@ popd
|
||||||
%build
|
%build
|
||||||
pushd rust
|
pushd rust
|
||||||
%cargo_build
|
%cargo_build
|
||||||
%cargo_license_summary
|
|
||||||
%{cargo_license} > ../LICENSE.dependencies
|
|
||||||
%if 0%{?rhel}
|
|
||||||
%cargo_vendor_manifest
|
|
||||||
%endif
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd rust/src/python
|
pushd rust/src/python
|
||||||
%pyproject_wheel
|
%py3_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
@ -198,33 +167,25 @@ env SKIP_PYTHON_INSTALL=1 \
|
||||||
LIBDIR=%{_libdir} \
|
LIBDIR=%{_libdir} \
|
||||||
SYSCONFDIR=%{_sysconfdir} \
|
SYSCONFDIR=%{_sysconfdir} \
|
||||||
%make_install
|
%make_install
|
||||||
|
patchelf --set-soname libnmstate.so.2 \
|
||||||
|
%{buildroot}/%{_libdir}/libnmstate.so.%{version}
|
||||||
|
|
||||||
pushd rust/src/python
|
pushd rust/src/python
|
||||||
%pyproject_install
|
%py3_install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%if ! 0%{?rhel}
|
%if ! 0%{?rhel}
|
||||||
|
# cargo_install has problem on detecting library when running in workspace
|
||||||
|
# due to bug https://pagure.io/fedora-rust/cargo2rpm/issue/5
|
||||||
|
# Removing the workspace Cargo.toml will workaround this problem.
|
||||||
|
rm rust/Cargo.toml
|
||||||
pushd rust/src/lib
|
pushd rust/src/lib
|
||||||
# Fedora cargo2rpm has problem when working with worksace dependency
|
|
||||||
# https://pagure.io/fedora-rust/cargo2rpm/issue/13
|
|
||||||
# we use `cargo package` to generate the expanded Cargo.toml which
|
|
||||||
# is also the one used in crates.io
|
|
||||||
cargo package --frozen --no-verify --target-dir %{_tmppath}
|
|
||||||
tar xf %{_tmppath}/package/nmstate-%{version}.crate \
|
|
||||||
nmstate-%{version}/Cargo.toml
|
|
||||||
mv nmstate-%{version}/Cargo.toml ./Cargo.toml
|
|
||||||
# Remove worksapce Cargo.toml
|
|
||||||
rm ../../Cargo.toml
|
|
||||||
%cargo_install
|
%cargo_install
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE.dependencies
|
|
||||||
%if 0%{?rhel}
|
|
||||||
%license rust/cargo-vendor.txt
|
|
||||||
%endif
|
|
||||||
%doc examples/
|
%doc examples/
|
||||||
%{_mandir}/man8/nmstatectl.8*
|
%{_mandir}/man8/nmstatectl.8*
|
||||||
%{_mandir}/man8/nmstate-autoconf.8*
|
%{_mandir}/man8/nmstate-autoconf.8*
|
||||||
|
|
@ -246,7 +207,7 @@ popd
|
||||||
%files -n python3-%{libname}
|
%files -n python3-%{libname}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/%{libname}
|
%{python3_sitelib}/%{libname}
|
||||||
%{python3_sitelib}/%{srcname}-*.dist-info/
|
%{python3_sitelib}/%{srcname}-*.egg-info/
|
||||||
|
|
||||||
%files static
|
%files static
|
||||||
%{_libdir}/libnmstate.a
|
%{_libdir}/libnmstate.a
|
||||||
|
|
@ -264,9 +225,6 @@ popd
|
||||||
|
|
||||||
%files -n rust-%{name}+query_apply-devel
|
%files -n rust-%{name}+query_apply-devel
|
||||||
%ghost %{cargo_registry}/%{name}-%{version}/Cargo.toml
|
%ghost %{cargo_registry}/%{name}-%{version}/Cargo.toml
|
||||||
|
|
||||||
%files -n rust-%{name}+gen_revert-devel
|
|
||||||
%ghost %{cargo_registry}/%{name}-%{version}/Cargo.toml
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
|
||||||
8
sources
8
sources
|
|
@ -1,4 +1,4 @@
|
||||||
SHA512 (nmstate-2.2.57.tar.gz) = b203455ce70e8c2f0e0d67d0b57ded8da1a8a6492bc636412b4682d15453cdb694cf33b1c84498ab50e3a42a79d3a763ef3316943b356ccab5f858df03fd0a63
|
SHA512 (nmstate-2.2.15.tar.gz) = 692d2414352d6346d2cfd3f008d6cc36955ec328d574b5d94c536b8d5a9baa125ceaa5bf9b84632252df9fe5ef48409fdd3bd9296ff50d387b93b2dbe4963e9e
|
||||||
SHA512 (nmstate-2.2.57.tar.gz.asc) = 972de00f4b4e18410c5aa6a6d23606ceda496c18747f7ba95e6602f21f24f8b3eaffe1d3e82aaf3e529592989f12ce1198b40c8b83abb6b7d108666b56ec7359
|
SHA512 (nmstate-2.2.15.tar.gz.asc) = d5da10e6b14c43536ef88f1e38c7142e74d7a13b5d07af4e3a46ff50fed359f762ee737004ad5203a01f56704c70ccab3fe035c9cc215598d7025058834e9e8e
|
||||||
SHA512 (nmstate.gpg) = e465239bc2a037457c5cb105f69cb033c092708285689f906b5e40cae01e12629bec1cdee7eb6aa3a327e4fc93dfd5ce0e006b295fe5ced8df039f9098cef0bc
|
SHA512 (nmstate.gpg) = bfbf3620045f3c1f15eaf6877fd7407834a75d2650976f2327abd02ddb910aa34500f07a774dd17023c43dcba42a0ffc66f23cd6816fd9694acad2c5eed9e8d3
|
||||||
SHA512 (nmstate-vendor-2.2.57.tar.xz) = 88c69f1f20367acd858b25bb0e834ae7b21b4291d90b0ed62dd33c9a427f845b98fa56ba6b8d4228bc6c807f2293d77f4cd6ed7a568e6ceff19c875ef3bea6dd
|
SHA512 (nmstate-vendor-2.2.15.tar.xz) = f20c2ff65c27bcf2dac0e1acb4dc4a55b76787d3532c0385a2aa5105d32b01c875b1a0024f79a8e696dea1dac0d430ee3a57b8d5ee7f2bb26c97765681319681
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
TMP_FILE=$(mktemp /tmp/nmstate.XXXXXX.yaml)
|
TMP_FILE=$(mktemp /tmp/nmstate.XXXXXX.yaml)
|
||||||
|
|
||||||
nmstatectl show > $TMP_FILE
|
nmstatectl show > $TMP_FILE 2>/dev/null
|
||||||
|
|
||||||
cat $TMP_FILE
|
nmstatectl set $TMP_FILE 2>/dev/null
|
||||||
|
|
||||||
nmstatectl set $TMP_FILE 2>&1
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue