Upgrade to 1.2.7
Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
parent
d700ec7c93
commit
c5379f9c64
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@
|
|||||||
/nispor-1.2.2.tar.gz
|
/nispor-1.2.2.tar.gz
|
||||||
/nispor-1.2.3.tar.gz
|
/nispor-1.2.3.tar.gz
|
||||||
/nispor-1.2.5.tar.gz
|
/nispor-1.2.5.tar.gz
|
||||||
|
/nispor-1.2.7.tar.gz
|
||||||
|
@ -1,42 +0,0 @@
|
|||||||
From 174f76ddb7961ffe00c6379bd149f5d7ee6c2390 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Gris Ge <fge@redhat.com>
|
|
||||||
Date: Tue, 12 Apr 2022 20:33:08 +0800
|
|
||||||
Subject: [PATCH] drop the need of serde_derive
|
|
||||||
|
|
||||||
Signed-off-by: Gris Ge <fge@redhat.com>
|
|
||||||
---
|
|
||||||
src/cli/Cargo.toml | 3 +--
|
|
||||||
src/cli/npc.rs | 2 +-
|
|
||||||
2 files changed, 2 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/cli/Cargo.toml b/src/cli/Cargo.toml
|
|
||||||
index 645e49c..b945b58 100644
|
|
||||||
--- a/src/cli/Cargo.toml
|
|
||||||
+++ b/src/cli/Cargo.toml
|
|
||||||
@@ -16,9 +16,8 @@ name = "npc"
|
|
||||||
path = "npc.rs"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
-serde = "1.0"
|
|
||||||
serde_json = "1.0"
|
|
||||||
-serde_derive = "1.0"
|
|
||||||
+serde = { version = "1.0.136", features = ["derive"] }
|
|
||||||
clap = { version = "3.1.2", features = ["cargo"] }
|
|
||||||
nispor = { path = "../lib", version="1.2.5" }
|
|
||||||
serde_yaml = "0.8"
|
|
||||||
diff --git a/src/cli/npc.rs b/src/cli/npc.rs
|
|
||||||
index a2b4f70..9f004d0 100644
|
|
||||||
--- a/src/cli/npc.rs
|
|
||||||
+++ b/src/cli/npc.rs
|
|
||||||
@@ -17,7 +17,7 @@ use nispor::{
|
|
||||||
Iface, IfaceConf, IfaceState, IfaceType, NetConf, NetState, NisporError,
|
|
||||||
Route, RouteRule,
|
|
||||||
};
|
|
||||||
-use serde_derive::Serialize;
|
|
||||||
+use serde::Serialize;
|
|
||||||
use std::collections::HashMap;
|
|
||||||
use std::fmt;
|
|
||||||
use std::io::{stderr, stdout, Write};
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
13
fix_tokio_dep.patch
Normal file
13
fix_tokio_dep.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/lib/Cargo.toml b/src/lib/Cargo.toml
|
||||||
|
index 60400ff..6d27cae 100644
|
||||||
|
--- a/src/lib/Cargo.toml
|
||||||
|
+++ b/src/lib/Cargo.toml
|
||||||
|
@@ -23,7 +23,7 @@ netlink-packet-route = "0.12.0"
|
||||||
|
netlink-sys = "0.8.3"
|
||||||
|
netlink-packet-utils = "0.5.1"
|
||||||
|
ethtool = "0.2.2"
|
||||||
|
-tokio = { version = "1.19.2", features = ["macros", "rt"] }
|
||||||
|
+tokio = { version = "1.18", features = ["macros", "rt"] }
|
||||||
|
futures = "0.3.21"
|
||||||
|
libc = "0.2.126"
|
||||||
|
log = "0.4.17"
|
22
nispor.spec
22
nispor.spec
@ -2,13 +2,13 @@
|
|||||||
%bcond_with check
|
%bcond_with check
|
||||||
|
|
||||||
Name: nispor
|
Name: nispor
|
||||||
Version: 1.2.5
|
Version: 1.2.7
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Unified interface for Linux network state querying
|
Summary: Unified interface for Linux network state querying
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/nispor/nispor
|
URL: https://github.com/nispor/nispor
|
||||||
Source: https://github.com/nispor/nispor/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/nispor/nispor/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Patch0: 0001-drop-the-need-of-serde_derive.patch
|
Patch0: fix_tokio_dep.patch
|
||||||
ExclusiveArch: %{rust_arches}
|
ExclusiveArch: %{rust_arches}
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
@ -21,14 +21,15 @@ BuildRequires: patchelf
|
|||||||
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(rtnetlink/default) >= 0.9.1 with crate(rtnetlink/default) < 0.10.0)
|
BuildRequires: (crate(rtnetlink/default) >= 0.10.0 with crate(rtnetlink/default) < 0.11.0)
|
||||||
BuildRequires: (crate(netlink-packet-route/default) >= 0.11.0 with crate(netlink-packet-route/default) < 0.12.0)
|
BuildRequires: (crate(netlink-packet-route/default) >= 0.12.0 with crate(netlink-packet-route/default) < 0.13.0)
|
||||||
BuildRequires: (crate(netlink-packet-utils/default) >= 0.5.1 with crate(netlink-packet-utils/default) < 0.6.0)
|
BuildRequires: (crate(netlink-packet-utils/default) >= 0.5.1 with crate(netlink-packet-utils/default) < 0.6.0)
|
||||||
BuildRequires: (crate(netlink-sys/default) >= 0.8.2 with crate(netlink-sys/default) < 0.9.0)
|
BuildRequires: (crate(netlink-sys/default) >= 0.8.3 with crate(netlink-sys/default) < 0.9.0)
|
||||||
BuildRequires: (crate(ethtool/default) >= 0.2.2 with crate(ethtool/default) < 0.3.0)
|
BuildRequires: (crate(ethtool/default) >= 0.2.2 with crate(ethtool/default) < 0.3.0)
|
||||||
BuildRequires: (crate(tokio/macros) >= 1.17 with crate(tokio/macros) < 2.0)
|
BuildRequires: (crate(mptcp-pm/default) >= 0.1.1 with crate(mptcp-pm/default) < 0.2.0)
|
||||||
BuildRequires: (crate(tokio/rt) >= 1.17 with crate(tokio/rt) < 2.0)
|
BuildRequires: (crate(tokio/macros) >= 1.18 with crate(tokio/macros) < 2.0)
|
||||||
BuildRequires: (crate(libc/default) >= 0.2.117 with crate(libc/default) < 0.3.0)
|
BuildRequires: (crate(tokio/rt) >= 1.18 with crate(tokio/rt) < 2.0)
|
||||||
|
BuildRequires: (crate(libc/default) >= 0.2.126 with crate(libc/default) < 0.3.0)
|
||||||
BuildRequires: (crate(clap/default) >= 3.1.2 with crate(clap/default) < 4.0)
|
BuildRequires: (crate(clap/default) >= 3.1.2 with crate(clap/default) < 4.0)
|
||||||
BuildRequires: (crate(clap/cargo) >= 3.1.2 with crate(clap/cargo) < 4.0)
|
BuildRequires: (crate(clap/cargo) >= 3.1.2 with crate(clap/cargo) < 4.0)
|
||||||
BuildRequires: (crate(serde_yaml/default) >= 0.8 with crate(serde_yaml/default) < 0.9)
|
BuildRequires: (crate(serde_yaml/default) >= 0.8 with crate(serde_yaml/default) < 0.9)
|
||||||
@ -131,7 +132,4 @@ patchelf --set-soname libnispor.so.1 \
|
|||||||
%ghost %{cargo_registry}/%{name}-%{version_no_tilde}/Cargo.toml
|
%ghost %{cargo_registry}/%{name}-%{version_no_tilde}/Cargo.toml
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 1.2.5-2
|
|
||||||
- Rebuilt for Python 3.11
|
|
||||||
|
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (nispor-1.2.5.tar.gz) = c74ad63b945f0ae14a8388c0ae4049ffc57f64694b8925ba6c92cef08210ead489a55af3a2d3ba1b50290de7668bc8e9f5b72cc8ad8272bc9cdd8b47da38b8f6
|
SHA512 (nispor-1.2.7.tar.gz) = 397a946c09802d736eb8cfdf177c759c46f64cedf9685161694eab638d939924fcb412b5de27690b76ced421b64dfdad9c623508ef2a3603ba8ac020fa463fb3
|
||||||
|
Loading…
Reference in New Issue
Block a user