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-bindgen/rust-bindgen.spec

342 lines
10 KiB

5 years ago
# Generated by rust2rpm 13
%bcond_without check
%global crate bindgen
Name: rust-%{crate}
5 years ago
Version: 0.54.0
4 years ago
Release: 3%{?dist}
Summary: Automatically generates Rust FFI bindings to C and C++ libraries
# Upstream license specification: BSD-3-Clause
License: BSD
URL: https://crates.io/crates/bindgen
6 years ago
Source: %{crates_source}
# Initial patched metadata
# * No "runtime" feature by default. We can afford linking directly to libclang
# and rebuild it for each SONAME change. This just makes it better integrated
# in distribution context.
4 years ago
# * Bump which from 3.0 to 4.0
Patch0: bindgen-fix-metadata.diff
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Automatically generates Rust FFI bindings to C and C++ libraries.}
%description %{_description}
%if ! %{__cargo_skip_build}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%doc README.md
%{_bindir}/bindgen
%endif
%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
5 years ago
%license LICENSE
%doc README.md
5 years ago
%{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
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+clap-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+clap-devel %{_description}
This package contains library source intended for building other packages
which use "clap" feature of "%{crate}" crate.
%files -n %{name}+clap-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+env_logger-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+env_logger-devel %{_description}
This package contains library source intended for building other packages
which use "env_logger" feature of "%{crate}" crate.
%files -n %{name}+env_logger-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+log-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+log-devel %{_description}
This package contains library source intended for building other packages
which use "log" feature of "%{crate}" crate.
%files -n %{name}+log-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+logging-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+logging-devel %{_description}
This package contains library source intended for building other packages
which use "logging" feature of "%{crate}" crate.
%files -n %{name}+logging-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 "runtime" feature of "%{crate}" crate.
%files -n %{name}+runtime-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
6 years ago
%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 "static" feature of "%{crate}" crate.
%files -n %{name}+static-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
6 years ago
%package -n %{name}+testing_only_docs-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+testing_only_docs-devel %{_description}
This package contains library source intended for building other packages
which use "testing_only_docs" feature of "%{crate}" crate.
%files -n %{name}+testing_only_docs-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+testing_only_extra_assertions-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+testing_only_extra_assertions-devel %{_description}
This package contains library source intended for building other packages
which use "testing_only_extra_assertions" feature of "%{crate}" crate.
%files -n %{name}+testing_only_extra_assertions-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+testing_only_libclang_3_8-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+testing_only_libclang_3_8-devel %{_description}
This package contains library source intended for building other packages
which use "testing_only_libclang_3_8" feature of "%{crate}" crate.
%files -n %{name}+testing_only_libclang_3_8-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+testing_only_libclang_3_9-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+testing_only_libclang_3_9-devel %{_description}
This package contains library source intended for building other packages
which use "testing_only_libclang_3_9" feature of "%{crate}" crate.
%files -n %{name}+testing_only_libclang_3_9-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+testing_only_libclang_4-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+testing_only_libclang_4-devel %{_description}
This package contains library source intended for building other packages
which use "testing_only_libclang_4" feature of "%{crate}" crate.
%files -n %{name}+testing_only_libclang_4-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+testing_only_libclang_5-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+testing_only_libclang_5-devel %{_description}
This package contains library source intended for building other packages
which use "testing_only_libclang_5" feature of "%{crate}" crate.
%files -n %{name}+testing_only_libclang_5-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+testing_only_libclang_9-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+testing_only_libclang_9-devel %{_description}
This package contains library source intended for building other packages
which use "testing_only_libclang_9" feature of "%{crate}" crate.
%files -n %{name}+testing_only_libclang_9-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+which-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+which-devel %{_description}
This package contains library source intended for building other packages
which use "which" feature of "%{crate}" crate.
%files -n %{name}+which-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+which-rustfmt-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+which-rustfmt-devel %{_description}
This package contains library source intended for building other packages
which use "which-rustfmt" feature of "%{crate}" crate.
%files -n %{name}+which-rustfmt-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
6 years ago
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
6 years ago
%cargo_test
%endif
%changelog
4 years ago
* Fri Sep 18 2020 Fabio Valentini <decathorpe@gmail.com> - 0.54.0-3
- Bump to which 4.
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.54.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5 years ago
* Sat May 30 2020 Josh Stone <jistone@redhat.com> - 0.54.0-1
- Update to 0.54.0
* Thu May 14 08:11:52 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.53.2-2
- Link with libclang instead of runtime detection
5 years ago
* Tue Mar 10 2020 Josh Stone <jistone@redhat.com> - 0.53.2-1
- Update to 0.53.2
* Thu Mar 05 2020 Josh Stone <jistone@redhat.com> - 0.53.1-2
- Bump to clang-sys 0.29
5 years ago
* Thu Feb 27 2020 Josh Stone <jistone@redhat.com> - 0.53.1-1
- Update to 0.53.1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.52.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Dec 05 14:57:26 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.52.0-1
- Update to 0.52.0
* Wed Jul 31 18:31:15 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.51.0-1
- Release 0.51.0
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.49.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed May 15 08:38:03 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.49.0-3
- Update hashbrown to 0.3
* Sun Apr 14 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.49.0-2
- Rebuilt for hashbrown 0.2.0
6 years ago
* Wed Mar 27 2019 Josh Stone <jistone@redhat.com> - 0.49.0-1
- Update to 0.49.0
6 years ago
* Sat Mar 16 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.48.1-1
- Update to 0.48.1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.47.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6 years ago
* Tue Jan 22 2019 Josh Stone <jistone@redhat.com> - 0.47.0-1
- Update to 0.47.0
6 years ago
* Mon Jan 14 2019 Josh Stone <jistone@redhat.com> - 0.46.0-1
- Update to 0.46.0
6 years ago
* Sat Nov 10 2018 Josh Stone <jistone@redhat.com> - 0.43.1-1
- Update to 0.43.1
* Sun Nov 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.43.0-2
- Adapt to new packaging
6 years ago
* Mon Oct 22 2018 Josh Stone <jistone@redhat.com> - 0.43.0-1
- Update to 0.43.0
6 years ago
* Thu Oct 11 2018 Josh Stone <jistone@redhat.com> - 0.42.2-1
- Update to 0.42.2
6 years ago
* Mon Oct 08 2018 Josh Stone <jistone@redhat.com> - 0.42.1-1
- Update to 0.42.1
* Thu Oct 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.42.0-1
- Initial package