fix: maturin (#427)

This commit is contained in:
madomado
2023-05-11 12:08:02 +08:00
committed by GitHub
parent 5b1be68b81
commit e79e04e07c
+161 -29
View File
@@ -1,20 +1,20 @@
# Generated by rust2rpm 23
# Generated by rust2rpm 24
%global crate maturin
Name: rust-maturin
Version: 0.15.1
Release: 1%{?dist}
Release: %autorelease
Summary: Build and publish crates with pyo3, rust-cpython and cffi bindings as well as rust binaries as python packages
License: MIT OR Apache-2.0
URL: https://crates.io/crates/maturin
Source: %{crates_source}
BuildRequires: pkgconfig anda-srpm-macros rust-packaging >= 23
BuildRequires: pkgconfig anda-srpm-macros cargo-rpm-macros >= 24
%global _description %{expand:
Build and publish crates with pyo3, rust-cpython and cffi bindings as well as
rust binaries as python packages.}
Build and publish crates with pyo3, rust-cpython and cffi bindings as
well as rust binaries as python packages.}
%description %{_description}
@@ -72,6 +72,42 @@ use the "bytesize" feature of the "%{crate}" crate.
%files -n %{name}+bytesize-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+cargo-xwin-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+cargo-xwin-devel %{_description}
This package contains library source intended for building other packages which
use the "cargo-xwin" feature of the "%{crate}" crate.
%files -n %{name}+cargo-xwin-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+cargo-zigbuild-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+cargo-zigbuild-devel %{_description}
This package contains library source intended for building other packages which
use the "cargo-zigbuild" feature of the "%{crate}" crate.
%files -n %{name}+cargo-zigbuild-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+cli-completion-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+cli-completion-devel %{_description}
This package contains library source intended for building other packages which
use the "cli-completion" feature of the "%{crate}" crate.
%files -n %{name}+cli-completion-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+configparser-devel
Summary: %{summary}
BuildArch: noarch
@@ -84,6 +120,42 @@ use the "configparser" feature of the "%{crate}" crate.
%files -n %{name}+configparser-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+console-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+console-devel %{_description}
This package contains library source intended for building other packages which
use the "console" feature of the "%{crate}" crate.
%files -n %{name}+console-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+cross-compile-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+cross-compile-devel %{_description}
This package contains library source intended for building other packages which
use the "cross-compile" feature of the "%{crate}" crate.
%files -n %{name}+cross-compile-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+dialoguer-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+dialoguer-devel %{_description}
This package contains library source intended for building other packages which
use the "dialoguer" feature of the "%{crate}" crate.
%files -n %{name}+dialoguer-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+faster-tests-devel
Summary: %{summary}
BuildArch: noarch
@@ -96,6 +168,18 @@ use the "faster-tests" feature of the "%{crate}" crate.
%files -n %{name}+faster-tests-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}+human-panic-devel
Summary: %{summary}
BuildArch: noarch
@@ -132,6 +216,18 @@ use the "log" feature of the "%{crate}" crate.
%files -n %{name}+log-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+minijinja-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+minijinja-devel %{_description}
This package contains library source intended for building other packages which
use the "minijinja" feature of the "%{crate}" crate.
%files -n %{name}+minijinja-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+multipart-devel
Summary: %{summary}
BuildArch: noarch
@@ -156,18 +252,6 @@ use the "native-tls" feature of the "%{crate}" crate.
%files -n %{name}+native-tls-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+native-tls-crate-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+native-tls-crate-devel %{_description}
This package contains library source intended for building other packages which
use the "native-tls-crate" feature of the "%{crate}" crate.
%files -n %{name}+native-tls-crate-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+password-storage-devel
Summary: %{summary}
BuildArch: noarch
@@ -180,18 +264,6 @@ use the "password-storage" feature of the "%{crate}" crate.
%files -n %{name}+password-storage-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+rpassword-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+rpassword-devel %{_description}
This package contains library source intended for building other packages which
use the "rpassword" feature of the "%{crate}" crate.
%files -n %{name}+rpassword-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+rustls-devel
Summary: %{summary}
BuildArch: noarch
@@ -204,6 +276,18 @@ use the "rustls" feature of the "%{crate}" crate.
%files -n %{name}+rustls-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+scaffolding-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+scaffolding-devel %{_description}
This package contains library source intended for building other packages which
use the "scaffolding" feature of the "%{crate}" crate.
%files -n %{name}+scaffolding-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+tracing-subscriber-devel
Summary: %{summary}
BuildArch: noarch
@@ -240,6 +324,54 @@ use the "ureq" feature of the "%{crate}" crate.
%files -n %{name}+ureq-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+url-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+url-devel %{_description}
This package contains library source intended for building other packages which
use the "url" feature of the "%{crate}" crate.
%files -n %{name}+url-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+wild-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+wild-devel %{_description}
This package contains library source intended for building other packages which
use the "wild" feature of the "%{crate}" crate.
%files -n %{name}+wild-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+xwin-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+xwin-devel %{_description}
This package contains library source intended for building other packages which
use the "xwin" feature of the "%{crate}" crate.
%files -n %{name}+xwin-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+zig-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+zig-devel %{_description}
This package contains library source intended for building other packages which
use the "zig" feature of the "%{crate}" crate.
%files -n %{name}+zig-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep_online