Blame rust-python3-sys.spec

2b922a9
# Generated by rust2rpm 23
0663c07
%bcond_without check
0663c07
%global debug_package %{nil}
0663c07
0663c07
%global crate python3-sys
0663c07
2b922a9
Name:           rust-python3-sys
2b922a9
Version:        0.7.1
77f17fd
Release:        %autorelease
0663c07
Summary:        FFI Declarations for Python 3
0663c07
2b922a9
License:        Python-2.0
0663c07
URL:            https://crates.io/crates/python3-sys
0663c07
Source:         %{crates_source}
0663c07
12566a2
BuildRequires:  rust-packaging >= 21
0663c07
0663c07
%global _description %{expand:
0663c07
FFI Declarations for Python 3.}
0663c07
0663c07
%description %{_description}
0663c07
0663c07
%package        devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
0663c07
%description    devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "%{crate}" crate.
0663c07
0663c07
%files          devel
12566a2
%license %{crate_instdir}/LICENSE
12566a2
%doc %{crate_instdir}/README.md
12566a2
%{crate_instdir}/
0663c07
0663c07
%package     -n %{name}+default-devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
0663c07
%description -n %{name}+default-devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "default" feature of the "%{crate}" crate.
0663c07
0663c07
%files       -n %{name}+default-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
0663c07
0663c07
%package     -n %{name}+extension-module-devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
0663c07
%description -n %{name}+extension-module-devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "extension-module" feature of the "%{crate}" crate.
0663c07
0663c07
%files       -n %{name}+extension-module-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
0663c07
0663c07
%package     -n %{name}+link-mode-default-devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
0663c07
%description -n %{name}+link-mode-default-devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "link-mode-default" feature of the "%{crate}" crate.
0663c07
0663c07
%files       -n %{name}+link-mode-default-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
0663c07
0663c07
%package     -n %{name}+link-mode-unresolved-static-devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
0663c07
%description -n %{name}+link-mode-unresolved-static-devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "link-mode-unresolved-static" feature of the "%{crate}" crate.
0663c07
0663c07
%files       -n %{name}+link-mode-unresolved-static-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
0663c07
0663c07
%package     -n %{name}+pep-384-devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
0663c07
%description -n %{name}+pep-384-devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "pep-384" feature of the "%{crate}" crate.
0663c07
0663c07
%files       -n %{name}+pep-384-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
0663c07
0663c07
%package     -n %{name}+python-3-devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
Requires:       python3-devel >= 3.3
0663c07
0663c07
%description -n %{name}+python-3-devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "python-3" feature of the "%{crate}" crate.
0663c07
0663c07
%files       -n %{name}+python-3-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
12566a2
12566a2
%package     -n %{name}+python-3-10-devel
12566a2
Summary:        %{summary}
12566a2
BuildArch:      noarch
12566a2
Requires:       python3-devel >= 3.10
12566a2
12566a2
%description -n %{name}+python-3-10-devel %{_description}
12566a2
12566a2
This package contains library source intended for building other packages which
12566a2
use the "python-3-10" feature of the "%{crate}" crate.
12566a2
12566a2
%files       -n %{name}+python-3-10-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
0663c07
2b922a9
%package     -n %{name}+python-3-11-devel
2b922a9
Summary:        %{summary}
2b922a9
BuildArch:      noarch
2b922a9
Requires:       python3-devel >= 3.11
2b922a9
2b922a9
%description -n %{name}+python-3-11-devel %{_description}
2b922a9
2b922a9
This package contains library source intended for building other packages which
2b922a9
use the "python-3-11" feature of the "%{crate}" crate.
2b922a9
2b922a9
%files       -n %{name}+python-3-11-devel
2b922a9
%ghost %{crate_instdir}/Cargo.toml
2b922a9
0663c07
%package     -n %{name}+python-3-4-devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
Requires:       python3-devel >= 3.4
0663c07
0663c07
%description -n %{name}+python-3-4-devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "python-3-4" feature of the "%{crate}" crate.
0663c07
0663c07
%files       -n %{name}+python-3-4-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
0663c07
0663c07
%package     -n %{name}+python-3-5-devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
Requires:       python3-devel >= 3.5
0663c07
0663c07
%description -n %{name}+python-3-5-devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "python-3-5" feature of the "%{crate}" crate.
0663c07
0663c07
%files       -n %{name}+python-3-5-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
0663c07
0663c07
%package     -n %{name}+python-3-6-devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
Requires:       python3-devel >= 3.6
0663c07
0663c07
%description -n %{name}+python-3-6-devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "python-3-6" feature of the "%{crate}" crate.
0663c07
0663c07
%files       -n %{name}+python-3-6-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
0663c07
0663c07
%package     -n %{name}+python-3-7-devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
Requires:       python3-devel >= 3.7
0663c07
0663c07
%description -n %{name}+python-3-7-devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "python-3-7" feature of the "%{crate}" crate.
0663c07
0663c07
%files       -n %{name}+python-3-7-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
0663c07
0663c07
%package     -n %{name}+python-3-8-devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
Requires:       python3-devel >= 3.8
0663c07
0663c07
%description -n %{name}+python-3-8-devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "python-3-8" feature of the "%{crate}" crate.
0663c07
0663c07
%files       -n %{name}+python-3-8-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
0663c07
0663c07
%package     -n %{name}+python-3-9-devel
0663c07
Summary:        %{summary}
0663c07
BuildArch:      noarch
0663c07
Requires:       python3-devel >= 3.9
0663c07
0663c07
%description -n %{name}+python-3-9-devel %{_description}
0663c07
12566a2
This package contains library source intended for building other packages which
12566a2
use the "python-3-9" feature of the "%{crate}" crate.
0663c07
0663c07
%files       -n %{name}+python-3-9-devel
12566a2
%ghost %{crate_instdir}/Cargo.toml
0663c07
0663c07
%prep
0663c07
%autosetup -n %{crate}-%{version_no_tilde} -p1
0663c07
%cargo_prep
12566a2
# remove executable bit from all files
12566a2
find -type f -executable -exec chmod -x {} +
0663c07
0663c07
%generate_buildrequires
0663c07
%cargo_generate_buildrequires
0663c07
echo 'python3-devel >= 3.3'
0663c07
0663c07
%build
0663c07
%cargo_build
0663c07
0663c07
%install
0663c07
%cargo_install
0663c07
0663c07
%if %{with check}
0663c07
%check
0663c07
%cargo_test
0663c07
%endif
0663c07
0663c07
%changelog
77f17fd
%autochangelog