From ced44e2e85f07d5a208e042a4dfce4f82f948437 Mon Sep 17 00:00:00 2001 From: Gris Ge Date: Tue, 23 Aug 2022 14:50:30 +0800 Subject: [PATCH] Add back the rust-crate sub-rpms Signed-off-by: Gris Ge --- nmstate.spec | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/nmstate.spec b/nmstate.spec index 4658c35..f6546dc 100644 --- a/nmstate.spec +++ b/nmstate.spec @@ -89,6 +89,22 @@ Obsoletes: nmstate-plugin-ovsdb < 2.0-1 %description -n python3-%{libname} This package contains the Python 3 library for Nmstate. +%package -n rust-%{name}-devel +Summary: Rust crate of nmstate +BuildArch: noarch + +%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 + +%description -n rust-%{name}+default-devel +This package contains library source intended for building other packages +which use "%{name}" crate with default feature. + %prep gpg2 --import --import-options import-export,import-minimal \ %{SOURCE2} > ./gpgkey-mantainers.gpg @@ -154,5 +170,12 @@ popd %files static %{_libdir}/libnmstate.a +%files -n rust-%{name}-devel +%license LICENSE +%{cargo_registry}/%{name}-%{version}/ + +%files -n rust-%{name}+default-devel +%ghost %{cargo_registry}/%{name}-%{version}/Cargo.toml + %changelog %autochangelog