From 3fd9def4c9b7aacb1ac00397104fe8ec9953222f Mon Sep 17 00:00:00 2001 From: Gris Ge Date: Mon, 31 Oct 2022 17:16:29 +0800 Subject: [PATCH] Add feature sub package Signed-off-by: Gris Ge --- nmstate.spec | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/nmstate.spec b/nmstate.spec index 2715e58..faaf165 100644 --- a/nmstate.spec +++ b/nmstate.spec @@ -3,7 +3,7 @@ Name: nmstate Version: 2.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Declarative network manager API License: LGPLv2+ URL: https://github.com/%{srcname}/%{srcname} @@ -105,6 +105,22 @@ BuildArch: noarch 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 + +%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 default feature +BuildArch: noarch + +%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. + %prep gpg2 --import --import-options import-export,import-minimal \ %{SOURCE2} > ./gpgkey-mantainers.gpg @@ -177,5 +193,11 @@ popd %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 + +%files -n rust-%{name}+query_apply-devel +%ghost %{cargo_registry}/%{name}-%{version}/Cargo.toml + %changelog %autochangelog