You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-clang-sys/rust-clang-sys.spec

308 lines
9.0 KiB

# Generated by rust2rpm 20
%bcond_without check
%global debug_package %{nil}
%global crate clang-sys
Name: rust-%{crate}
Version: 1.3.1
Release: %autorelease
Summary: Rust bindings for libclang
# Upstream license specification: Apache-2.0
License: ASL 2.0
URL: https://crates.io/crates/clang-sys
Source: %{crates_source}
# Initial patched metadata
# * exclude unnecessary files
Patch0: clang-sys-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
5 years ago
%global _description %{expand:
Rust bindings for libclang.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license LICENSE.txt
%doc CHANGELOG.md README.md
5 years ago
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 3.5
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_10_0-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 10.0
%description -n %{name}+clang_10_0-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_10_0" feature of the "%{crate}" crate.
%files -n %{name}+clang_10_0-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_11_0-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 11.0
%description -n %{name}+clang_11_0-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_11_0" feature of the "%{crate}" crate.
%files -n %{name}+clang_11_0-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_12_0-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 12.0
%description -n %{name}+clang_12_0-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_12_0" feature of the "%{crate}" crate.
%files -n %{name}+clang_12_0-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_13_0-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 13.0
%description -n %{name}+clang_13_0-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_13_0" feature of the "%{crate}" crate.
%files -n %{name}+clang_13_0-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_3_5-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 3.5
%description -n %{name}+clang_3_5-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_3_5" feature of the "%{crate}" crate.
%files -n %{name}+clang_3_5-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_3_6-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 3.6
%description -n %{name}+clang_3_6-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_3_6" feature of the "%{crate}" crate.
%files -n %{name}+clang_3_6-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_3_7-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 3.7
%description -n %{name}+clang_3_7-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_3_7" feature of the "%{crate}" crate.
%files -n %{name}+clang_3_7-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_3_8-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 3.8
%description -n %{name}+clang_3_8-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_3_8" feature of the "%{crate}" crate.
%files -n %{name}+clang_3_8-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_3_9-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 3.9
%description -n %{name}+clang_3_9-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_3_9" feature of the "%{crate}" crate.
%files -n %{name}+clang_3_9-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_4_0-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 4.0
%description -n %{name}+clang_4_0-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_4_0" feature of the "%{crate}" crate.
%files -n %{name}+clang_4_0-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_5_0-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 5.0
%description -n %{name}+clang_5_0-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_5_0" feature of the "%{crate}" crate.
%files -n %{name}+clang_5_0-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_6_0-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 6.0
%description -n %{name}+clang_6_0-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_6_0" feature of the "%{crate}" crate.
%files -n %{name}+clang_6_0-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_7_0-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 7.0
%description -n %{name}+clang_7_0-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_7_0" feature of the "%{crate}" crate.
%files -n %{name}+clang_7_0-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_8_0-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 8.0
%description -n %{name}+clang_8_0-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_8_0" feature of the "%{crate}" crate.
%files -n %{name}+clang_8_0-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clang_9_0-devel
Summary: %{summary}
BuildArch: noarch
Requires: clang-devel >= 9.0
5 years ago
%description -n %{name}+clang_9_0-devel %{_description}
This package contains library source intended for building other packages which
use the "clang_9_0" feature of the "%{crate}" crate.
5 years ago
%files -n %{name}+clang_9_0-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+libloading-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+libloading-devel %{_description}
This package contains library source intended for building other packages which
use the "libloading" feature of the "%{crate}" crate.
%files -n %{name}+libloading-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+runtime-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+runtime-devel %{_description}
This package contains library source intended for building other packages which
use the "runtime" feature of the "%{crate}" crate.
%files -n %{name}+runtime-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+static-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+static-devel %{_description}
This package contains library source intended for building other packages which
use the "static" feature of the "%{crate}" crate.
%files -n %{name}+static-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
5 years ago
%generate_buildrequires
%cargo_generate_buildrequires
echo 'clang-devel >= 3.5'
5 years ago
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog