|
|
|
@ -1,29 +1,26 @@
|
|
|
|
|
# Generated by rust2rpm 21
|
|
|
|
|
# Generated by rust2rpm 23
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate pyo3
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.15.2
|
|
|
|
|
Name: rust-pyo3
|
|
|
|
|
Version: 0.16.6
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Bindings to Python interpreter
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: Apache-2.0
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
URL: https://crates.io/crates/pyo3
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * bump dependencies (MSRV 1.41 is not relevant for Fedora):
|
|
|
|
|
# - bump indoc from 0.3.6 to 1.0.3
|
|
|
|
|
# - bump paste from 0.1.18 to 1.0
|
|
|
|
|
# * relax exact versions for optional indexmap dependency
|
|
|
|
|
# * relax exact versions for bitflags, clap, and half dev-dependencies
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
# * relax indexmap dependency to allow versions ^1.8
|
|
|
|
|
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
|
|
|
|
|
# * drop unused benchmark definitions from Cargo.toml
|
|
|
|
|
Patch0: pyo3-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
# * drop send_wrapper and widestring dev-dependencies (not packaged yet)
|
|
|
|
|
# * drop MSVC- and MinGW-only features
|
|
|
|
|
Patch: pyo3-fix-metadata.diff
|
|
|
|
|
# * skip the single doctest that depends on send_wrapper
|
|
|
|
|
Patch: 0001-ignore-doctest-with-missing-send_wrapper-dependency.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
@ -43,14 +40,16 @@ use the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license %{crate_instdir}/LICENSE
|
|
|
|
|
%doc %{crate_instdir}/Architecture.md
|
|
|
|
|
%doc %{crate_instdir}/CHANGELOG.md
|
|
|
|
|
%doc %{crate_instdir}/Code-of-Conduct.md
|
|
|
|
|
%doc %{crate_instdir}/Contributing.md
|
|
|
|
|
%doc %{crate_instdir}/README.md
|
|
|
|
|
%{crate_instdir}/
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: python3-devel >= 3.6
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
|
|
|
|
|
@ -84,23 +83,9 @@ use the "abi3-py310" feature of the "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+abi3-py310-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+abi3-py36-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: python3-devel >= 3.6
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+abi3-py36-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "abi3-py36" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+abi3-py36-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+abi3-py37-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: python3-devel >= 3.7
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+abi3-py37-devel %{_description}
|
|
|
|
|
|
|
|
|
@ -113,7 +98,6 @@ use the "abi3-py37" feature of the "%{crate}" crate.
|
|
|
|
|
%package -n %{name}+abi3-py38-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: python3-devel >= 3.8
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+abi3-py38-devel %{_description}
|
|
|
|
|
|
|
|
|
@ -126,7 +110,6 @@ use the "abi3-py38" feature of the "%{crate}" crate.
|
|
|
|
|
%package -n %{name}+abi3-py39-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: python3-devel >= 3.9
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+abi3-py39-devel %{_description}
|
|
|
|
|
|
|
|
|
@ -184,6 +167,18 @@ use the "eyre" feature of the "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+eyre-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+full-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+full-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "full" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+full-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+hashbrown-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -292,28 +287,28 @@ use the "num-complex" feature of the "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+num-complex-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+paste-devel
|
|
|
|
|
%package -n %{name}+pyo3-macros-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+paste-devel %{_description}
|
|
|
|
|
%description -n %{name}+pyo3-macros-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "paste" feature of the "%{crate}" crate.
|
|
|
|
|
use the "pyo3-macros" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+paste-devel
|
|
|
|
|
%files -n %{name}+pyo3-macros-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+pyo3-macros-devel
|
|
|
|
|
%package -n %{name}+pyproto-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+pyo3-macros-devel %{_description}
|
|
|
|
|
%description -n %{name}+pyproto-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "pyo3-macros" feature of the "%{crate}" crate.
|
|
|
|
|
use the "pyproto" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+pyo3-macros-devel
|
|
|
|
|
%files -n %{name}+pyproto-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+serde-devel
|
|
|
|
@ -344,12 +339,14 @@ use the "unindent" feature of the "%{crate}" crate.
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
# drop broken trybuild ui tests
|
|
|
|
|
rm tests/test_compile_error.rs
|
|
|
|
|
# drop the tests for which dependencies were removed
|
|
|
|
|
rm tests/test_pep_587.rs
|
|
|
|
|
rm tests/ui/send_wrapper.rs
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
# unit tests require optional dependencies
|
|
|
|
|
%cargo_generate_buildrequires -a
|
|
|
|
|
echo 'python3-devel >= 3.6'
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cargo_build
|
|
|
|
|