diff --git a/python-rpds-py.spec b/python-rpds-py.spec index 456d27c..4afaa5d 100644 --- a/python-rpds-py.spec +++ b/python-rpds-py.spec @@ -35,7 +35,7 @@ Summary: %{summary} %prep -%autosetup -p1 -n %{modname}-%{version} +%autosetup -p1 -n %{modname}-%{version} %{?rhel:-a1} # Fix line terminations dos2unix README* LICENSE* *.pyi @@ -43,7 +43,7 @@ dos2unix README* LICENSE* *.pyi # Fix for bad requirements dependency sed -r -i 's/^file:/# &/' tests/requirements.in -%cargo_prep %{?rhel:-V 1} +%cargo_prep %{?rhel:-v vendor} rm -f Cargo.lock @@ -58,6 +58,9 @@ rm -f Cargo.lock export RUSTFLAGS='%{build_rustflags}' %cargo_license_summary %{cargo_license} > LICENSES.dependencies +%if %{defined rhel} +%cargo_vendor_manifest +%endif %pyproject_wheel @@ -73,6 +76,9 @@ export RUSTFLAGS='%{build_rustflags}' %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE LICENSES.dependencies +%if %{defined rhel} +%license cargo-vendor.txt +%endif %doc README.rst