|
|
@ -1,11 +1,11 @@
|
|
|
|
# Generated by rust2rpm 22
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate clang-sys
|
|
|
|
%global crate clang-sys
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-clang-sys
|
|
|
|
Name: rust-clang-sys
|
|
|
|
Version: 1.4.0
|
|
|
|
Version: 1.8.1
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Rust bindings for libclang
|
|
|
|
Summary: Rust bindings for libclang
|
|
|
|
|
|
|
|
|
|
|
@ -13,12 +13,11 @@ License: Apache-2.0
|
|
|
|
URL: https://crates.io/crates/clang-sys
|
|
|
|
URL: https://crates.io/crates/clang-sys
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# * exclude files that are only useful for upstream development
|
|
|
|
# * relax tempfile dev-dependency to allow building with 3.7+
|
|
|
|
Patch: clang-sys-fix-metadata.diff
|
|
|
|
Patch: clang-sys-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
BuildRequires: clang-devel >= 3.5
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Rust bindings for libclang.}
|
|
|
|
Rust bindings for libclang.}
|
|
|
@ -131,6 +130,45 @@ use the "clang_15_0" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+clang_15_0-devel
|
|
|
|
%files -n %{name}+clang_15_0-devel
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+clang_16_0-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
Requires: clang-devel >= 16.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+clang_16_0-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
|
|
|
use the "clang_16_0" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+clang_16_0-devel
|
|
|
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+clang_17_0-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
Requires: clang-devel >= 17.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+clang_17_0-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
|
|
|
use the "clang_17_0" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+clang_17_0-devel
|
|
|
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+clang_18_0-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
Requires: clang-devel >= 18.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+clang_18_0-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
|
|
|
use the "clang_18_0" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+clang_18_0-devel
|
|
|
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+clang_3_5-devel
|
|
|
|
%package -n %{name}+clang_3_5-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
@ -274,6 +312,18 @@ use the "clang_9_0" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+clang_9_0-devel
|
|
|
|
%files -n %{name}+clang_9_0-devel
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+libcpp-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+libcpp-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
|
|
|
use the "libcpp" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+libcpp-devel
|
|
|
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+libloading-devel
|
|
|
|
%package -n %{name}+libloading-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
@ -289,6 +339,7 @@ use the "libloading" feature of the "%{crate}" crate.
|
|
|
|
%package -n %{name}+runtime-devel
|
|
|
|
%package -n %{name}+runtime-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
Requires: clang-libs
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+runtime-devel %{_description}
|
|
|
|
%description -n %{name}+runtime-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
@ -311,12 +362,11 @@ use the "static" feature of the "%{crate}" crate.
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
echo 'clang-devel >= 3.5'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|