WIP
Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
parent
23530cdc43
commit
1e1eb1c696
30
nmstate.spec
30
nmstate.spec
@ -80,6 +80,22 @@ Obsoletes: nmstate-plugin-ovsdb < 2.0-1
|
|||||||
%description -n python3-%{libname}
|
%description -n python3-%{libname}
|
||||||
This package contains the Python 3 library for Nmstate.
|
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
|
%prep
|
||||||
gpg2 --import --import-options import-export,import-minimal \
|
gpg2 --import --import-options import-export,import-minimal \
|
||||||
%{SOURCE2} > ./gpgkey-mantainers.gpg
|
%{SOURCE2} > ./gpgkey-mantainers.gpg
|
||||||
@ -112,6 +128,10 @@ pushd rust/src/python
|
|||||||
%py3_install
|
%py3_install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
pushd rust/src/lib
|
||||||
|
%cargo_install
|
||||||
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%doc examples/
|
%doc examples/
|
||||||
@ -133,8 +153,12 @@ popd
|
|||||||
%{python3_sitelib}/%{libname}
|
%{python3_sitelib}/%{libname}
|
||||||
%{python3_sitelib}/%{srcname}-*.egg-info/
|
%{python3_sitelib}/%{srcname}-*.egg-info/
|
||||||
|
|
||||||
%changelog
|
%files -n rust-%{name}-devel
|
||||||
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 2.1.0-2
|
%license LICENSE
|
||||||
- Rebuilt for Python 3.11
|
%{cargo_registry}/%{name}-%{version}/
|
||||||
|
|
||||||
|
%files -n rust-%{name}+default-devel
|
||||||
|
%ghost %{cargo_registry}/%{name}-%{version}/Cargo.toml
|
||||||
|
|
||||||
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
Loading…
Reference in New Issue
Block a user