|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 1;
|
|
|
|
|
release_number = 2;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
%define libname libnmstate
|
|
|
|
|
|
|
|
|
|
Name: nmstate
|
|
|
|
|
Version: 2.2.35
|
|
|
|
|
Version: 2.2.38
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Declarative network manager API
|
|
|
|
|
License: Apache-2.0 AND LGPL-2.1-or-later
|
|
|
|
@ -21,37 +21,13 @@ Source0: %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.g
|
|
|
|
|
Source1: %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz.asc
|
|
|
|
|
Source2: https://nmstate.io/nmstate.gpg
|
|
|
|
|
Source3: %{url}/releases/download/v%{version}/%{srcname}-vendor-%{version}.tar.xz
|
|
|
|
|
Requires: (nmstate-libs%{?_isa} = %{version}-%{release} if nmstate-libs)
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
BuildRequires: rust-toolset
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
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(chrono/default) >= 0.4 with crate(chrono/default) < 0.5)
|
|
|
|
|
BuildRequires: (crate(env_logger/default) >= 0.10 with crate(env_logger/default) < 0.11)
|
|
|
|
|
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(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/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_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/v5) >= 1.1 with crate(uuid/v5) < 2.0)
|
|
|
|
|
BuildRequires: (crate(zbus/default) >= 1.9 with crate(zbus/default) < 2.0)
|
|
|
|
|
BuildRequires: (crate(zvariant/default) >= 2.10 with crate(zvariant/default) < 3.0)
|
|
|
|
|
BuildRequires: (crate(nix/default) >= 0.26 with crate(nix/default) < 0.27)
|
|
|
|
|
BuildRequires: (crate(toml/default) >= 0.8 with crate(toml/default) < 0.9)
|
|
|
|
|
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)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Nmstate is a library with an accompanying command line tool that manages host
|
|
|
|
@ -110,57 +86,6 @@ License: Apache-2.0
|
|
|
|
|
%description -n python3-%{libname}
|
|
|
|
|
This package contains the Python 3 library for Nmstate.
|
|
|
|
|
|
|
|
|
|
%if ! 0%{?rhel}
|
|
|
|
|
%package -n rust-%{name}-devel
|
|
|
|
|
Summary: Rust crate of nmstate
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
|
|
|
|
|
%description -n rust-%{name}-devel
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "%{name}" crate.
|
|
|
|
|
|
|
|
|
|
%package -n rust-%{name}+default-devel
|
|
|
|
|
Summary: Rust crate of nmstate with default feature
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
|
|
|
|
|
%description -n rust-%{name}+default-devel
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "%{name}" crate with default feature.
|
|
|
|
|
|
|
|
|
|
%package -n rust-%{name}+gen_conf-devel
|
|
|
|
|
Summary: Rust crate of nmstate with default feature
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
|
|
|
|
|
%description -n rust-%{name}+gen_conf-devel
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "%{name}" crate with gen_conf feature.
|
|
|
|
|
|
|
|
|
|
%package -n rust-%{name}+query_apply-devel
|
|
|
|
|
Summary: Rust crate of nmstate with query_apply feature
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2161128
|
|
|
|
|
Requires: (crate(nispor/default) >= 1.2.12 with crate(nispor/default) < 2.0)
|
|
|
|
|
Requires: (crate(nix/default) >= 0.24 with crate(nix/default) < 0.25)
|
|
|
|
|
Requires: (crate(zbus/default) >= 1.9 with crate(zbus/default) < 2.0)
|
|
|
|
|
|
|
|
|
|
%description -n rust-%{name}+query_apply-devel
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
gpg2 --import --import-options import-export,import-minimal \
|
|
|
|
|
%{SOURCE2} > ./gpgkey-mantainers.gpg
|
|
|
|
@ -202,16 +127,6 @@ pushd rust/src/python
|
|
|
|
|
%py3_install
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
%cargo_install
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE.dependencies
|
|
|
|
@ -244,29 +159,20 @@ popd
|
|
|
|
|
%files static
|
|
|
|
|
%{_libdir}/libnmstate.a
|
|
|
|
|
|
|
|
|
|
%if ! 0%{?rhel}
|
|
|
|
|
%files -n rust-%{name}-devel
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{cargo_registry}/%{name}-%{version}/
|
|
|
|
|
|
|
|
|
|
%files -n rust-%{name}+default-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{name}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%files -n rust-%{name}+gen_conf-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{name}-%{version}/Cargo.toml
|
|
|
|
|
%changelog
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.2.38-2
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
|
|
|
|
|
%files -n rust-%{name}+query_apply-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{name}-%{version}/Cargo.toml
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.2.38-1
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
%files -n rust-%{name}+gen_revert-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{name}-%{version}/Cargo.toml
|
|
|
|
|
%endif
|
|
|
|
|
* Thu Oct 24 2024 Gris Ge <fge@redhat.com> - 2.2.38-1
|
|
|
|
|
- Upgrade to 2.2.38
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.2.35-1
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
* Tue Sep 24 2024 Gris Ge <fge@redhat.com> - 2.2.36-1
|
|
|
|
|
- Upgrade to 2.2.36
|
|
|
|
|
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Thu Aug 22 2024 Gris Ge <fge@redhat.com> - 2.2.35-1
|
|
|
|
|
- Upgrade to 2.2.35
|
|
|
|
|
|
|
|
|
|