Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2022-06-29 12:41:12 +08:00
parent 23530cdc43
commit 1e1eb1c696

View File

@ -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 <python-maint@redhat.com> - 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