diff --git a/nmstate.spec b/nmstate.spec index 7ff2616..e64d3a9 100644 --- a/nmstate.spec +++ b/nmstate.spec @@ -80,6 +80,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 @@ -112,6 +128,10 @@ pushd rust/src/python %py3_install popd +pushd rust/src/lib +%cargo_install +popd + %files %doc README.md %doc examples/ @@ -133,8 +153,12 @@ popd %{python3_sitelib}/%{libname} %{python3_sitelib}/%{srcname}-*.egg-info/ -%changelog -* Tue Jun 14 2022 Python Maint - 2.1.0-2 -- Rebuilt for Python 3.11 +%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