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.
161 lines
4.9 KiB
161 lines
4.9 KiB
# Generated by rust2rpm
|
|
%bcond_without check
|
|
|
|
%global crate cbindgen
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.8.0
|
|
Release: 1%{?dist}
|
|
Summary: Tool for generating C bindings to Rust code
|
|
|
|
# Upstream license specification: MPL-2.0
|
|
License: MPLv2.0
|
|
URL: https://crates.io/crates/cbindgen
|
|
Source: %{crates_source}
|
|
|
|
# Run tests with the release binaries
|
|
Patch1: cbindgen-test-release.patch
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
BuildRequires: (crate(clap/default) >= 2.0.0 with crate(clap/default) < 3.0.0)
|
|
BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0)
|
|
BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
|
|
BuildRequires: (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0)
|
|
BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0)
|
|
BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0)
|
|
BuildRequires: (crate(syn/clone-impls) >= 0.15.0 with crate(syn/clone-impls) < 0.16.0)
|
|
BuildRequires: (crate(syn/derive) >= 0.15.0 with crate(syn/derive) < 0.16.0)
|
|
BuildRequires: (crate(syn/extra-traits) >= 0.15.0 with crate(syn/extra-traits) < 0.16.0)
|
|
BuildRequires: (crate(syn/full) >= 0.15.0 with crate(syn/full) < 0.16.0)
|
|
BuildRequires: (crate(syn/parsing) >= 0.15.0 with crate(syn/parsing) < 0.16.0)
|
|
BuildRequires: (crate(syn/printing) >= 0.15.0 with crate(syn/printing) < 0.16.0)
|
|
BuildRequires: (crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0)
|
|
BuildRequires: (crate(toml/default) >= 0.4.0 with crate(toml/default) < 0.5.0)
|
|
BuildRequires: /usr/bin/pathfix.py
|
|
%if %{with check}
|
|
BuildRequires: python3
|
|
BuildRequires: gcc-c++
|
|
%endif
|
|
|
|
%global _description \
|
|
A tool for generating C bindings to Rust code.
|
|
|
|
%description %{_description}
|
|
|
|
%package -n %{crate}
|
|
Summary: %{summary}
|
|
|
|
%description -n %{crate}
|
|
%{summary}.
|
|
|
|
%files -n %{crate}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/cbindgen
|
|
|
|
%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 ARCHITECTURE.md CONTRIBUTING.md README.md
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
%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}/Cargo.toml
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
%cargo_prep
|
|
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" test.py
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
./test.py -v
|
|
%endif
|
|
|
|
%changelog
|
|
* Thu Feb 21 2019 Josh Stone <jistone@redhat.com> - 0.8.0-1
|
|
- Update to 0.8.0
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Sat Jan 26 2019 Josh Stone <jistone@redhat.com> - 0.7.1-1
|
|
- Update to 0.7.1
|
|
|
|
* Thu Jan 24 2019 Josh Stone <jistone@redhat.com> - 0.7.0-1
|
|
- Update to 0.7.0
|
|
|
|
* Mon Jan 07 2019 Josh Stone <jistone@redhat.com> - 0.6.8-1
|
|
- Update to 0.6.8
|
|
|
|
* Fri Nov 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.7-1
|
|
- Update to 0.6.7
|
|
|
|
* Mon Oct 22 2018 Josh Stone <jistone@redhat.com> - 0.6.6-1
|
|
- Update to 0.6.6
|
|
|
|
* Thu Oct 04 2018 Josh Stone <jistone@redhat.com> - 0.6.4-1
|
|
- Update to 0.6.4
|
|
|
|
* Sat Sep 15 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.3-2
|
|
- Add cbindgen back
|
|
|
|
* Wed Sep 05 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.3-1
|
|
- Update to 0.6.3
|
|
|
|
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.1-3
|
|
- Drop cbindgen executable
|
|
|
|
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.1-2
|
|
- Rebuild to trigger tests
|
|
|
|
* Thu Jul 26 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.1-1
|
|
- Update to 0.6.1
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Thu Feb 01 2018 Josh Stone <jistone@redhat.com> - 0.4.3-1
|
|
- Update to 0.4.3
|
|
|
|
* Tue Jan 30 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.2-1
|
|
- Update to 0.4.2
|
|
|
|
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.0-2
|
|
- Rebuild for rust-packaging v5
|
|
|
|
* Fri Jan 05 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.0-1
|
|
- Update to 0.4.0
|
|
|
|
* Mon Jan 01 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.3-1
|
|
- Initial package
|