From 0663c0762059bd49faa6a2d1fd3b5066006a04af Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Jan 10 2021 17:37:53 +0000 Subject: initial import (#1907089) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7edb01d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/python3-sys-0.5.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index 7ae3859..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-python3-sys - -The rust-python3-sys package diff --git a/rust-python3-sys.spec b/rust-python3-sys.spec new file mode 100644 index 0000000..7eb1677 --- /dev/null +++ b/rust-python3-sys.spec @@ -0,0 +1,216 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate python3-sys + +Name: rust-%{crate} +Version: 0.5.2 +Release: 1%{?dist} +Summary: FFI Declarations for Python 3 + +# Upstream license specification: Python-2.0 +License: Python + +URL: https://crates.io/crates/python3-sys +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +FFI Declarations for Python 3.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+extension-module-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+extension-module-devel %{_description} + +This package contains library source intended for building other packages +which use "extension-module" feature of "%{crate}" crate. + +%files -n %{name}+extension-module-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+link-mode-default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+link-mode-default-devel %{_description} + +This package contains library source intended for building other packages +which use "link-mode-default" feature of "%{crate}" crate. + +%files -n %{name}+link-mode-default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+link-mode-unresolved-static-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+link-mode-unresolved-static-devel %{_description} + +This package contains library source intended for building other packages +which use "link-mode-unresolved-static" feature of "%{crate}" crate. + +%files -n %{name}+link-mode-unresolved-static-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+pep-384-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+pep-384-devel %{_description} + +This package contains library source intended for building other packages +which use "pep-384" feature of "%{crate}" crate. + +%files -n %{name}+pep-384-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+python-3-devel +Summary: %{summary} +BuildArch: noarch +Requires: python3-devel >= 3.3 + +%description -n %{name}+python-3-devel %{_description} + +This package contains library source intended for building other packages +which use "python-3" feature of "%{crate}" crate. + +%files -n %{name}+python-3-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+python-3-4-devel +Summary: %{summary} +BuildArch: noarch +Requires: python3-devel >= 3.4 + +%description -n %{name}+python-3-4-devel %{_description} + +This package contains library source intended for building other packages +which use "python-3-4" feature of "%{crate}" crate. + +%files -n %{name}+python-3-4-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+python-3-5-devel +Summary: %{summary} +BuildArch: noarch +Requires: python3-devel >= 3.5 + +%description -n %{name}+python-3-5-devel %{_description} + +This package contains library source intended for building other packages +which use "python-3-5" feature of "%{crate}" crate. + +%files -n %{name}+python-3-5-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+python-3-6-devel +Summary: %{summary} +BuildArch: noarch +Requires: python3-devel >= 3.6 + +%description -n %{name}+python-3-6-devel %{_description} + +This package contains library source intended for building other packages +which use "python-3-6" feature of "%{crate}" crate. + +%files -n %{name}+python-3-6-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+python-3-7-devel +Summary: %{summary} +BuildArch: noarch +Requires: python3-devel >= 3.7 + +%description -n %{name}+python-3-7-devel %{_description} + +This package contains library source intended for building other packages +which use "python-3-7" feature of "%{crate}" crate. + +%files -n %{name}+python-3-7-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+python-3-8-devel +Summary: %{summary} +BuildArch: noarch +Requires: python3-devel >= 3.8 + +%description -n %{name}+python-3-8-devel %{_description} + +This package contains library source intended for building other packages +which use "python-3-8" feature of "%{crate}" crate. + +%files -n %{name}+python-3-8-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+python-3-9-devel +Summary: %{summary} +BuildArch: noarch +Requires: python3-devel >= 3.9 + +%description -n %{name}+python-3-9-devel %{_description} + +This package contains library source intended for building other packages +which use "python-3-9" feature of "%{crate}" crate. + +%files -n %{name}+python-3-9-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires +echo 'python3-devel >= 3.3' + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Thu Jan 07 2020 Fabio Valentini - 0.5.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..bc493ac --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (python3-sys-0.5.2.crate) = abcc7624b5c8b018f553c5971414a33974e759056b50a20883c98168e790b26b94287f111fa1e00c6c78841cc5cc1a7462262462e6a9e72e5991140b729d4046