Update to 0.6.7

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent 833750efbb
commit 33199fafde
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

1
.gitignore vendored

@ -6,3 +6,4 @@
/cbindgen-0.6.3.crate /cbindgen-0.6.3.crate
/cbindgen-0.6.4.crate /cbindgen-0.6.4.crate
/cbindgen-0.6.6.crate /cbindgen-0.6.6.crate
/cbindgen-0.6.7.crate

@ -4,7 +4,7 @@
%global crate cbindgen %global crate cbindgen
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.6.6 Version: 0.6.7
Release: 1%{?dist} Release: 1%{?dist}
Summary: Tool for generating C bindings to Rust code Summary: Tool for generating C bindings to Rust code
@ -19,23 +19,30 @@ Patch1: cbindgen-test-release.patch
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(clap/default) >= 2.0.0 with crate(clap/default) < 3.0.0)
BuildRequires: (crate(clap) >= 2.0.0 with crate(clap) < 3.0.0) BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0)
BuildRequires: (crate(log) >= 0.4.0 with crate(log) < 0.5.0) BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
BuildRequires: ((crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) with crate(serde/derive)) BuildRequires: (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0)
BuildRequires: crate(serde_derive) = 1.0.58 BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0)
BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0) BuildRequires: (crate(syn/clone-impls) >= 0.14.0 with crate(syn/clone-impls) < 0.15.0)
BuildRequires: ((crate(syn) >= 0.14.0 with crate(syn) < 0.15.0) with crate(syn/clone-impls) with crate(syn/derive) with crate(syn/extra-traits) with crate(syn/full) with crate(syn/parsing) with crate(syn/printing)) BuildRequires: (crate(syn/derive) >= 0.14.0 with crate(syn/derive) < 0.15.0)
BuildRequires: (crate(tempfile) >= 3.0.0 with crate(tempfile) < 4.0.0) BuildRequires: (crate(syn/extra-traits) >= 0.14.0 with crate(syn/extra-traits) < 0.15.0)
BuildRequires: (crate(toml) >= 0.4.0 with crate(toml) < 0.5.0) BuildRequires: (crate(syn/full) >= 0.14.0 with crate(syn/full) < 0.15.0)
BuildRequires: (crate(syn/parsing) >= 0.14.0 with crate(syn/parsing) < 0.15.0)
BuildRequires: (crate(syn/printing) >= 0.14.0 with crate(syn/printing) < 0.15.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: crate(serde_derive/default) = 1.0.58
BuildRequires: /usr/bin/pathfix.py BuildRequires: /usr/bin/pathfix.py
%if %{with check} %if %{with check}
BuildRequires: python3 BuildRequires: python3
BuildRequires: gcc-c++ BuildRequires: gcc-c++
%endif %endif
%description %global _description \
%{summary}. A tool for generating C bindings to Rust code.
%description %{_description}
%package -n %{crate} %package -n %{crate}
Summary: %{summary} Summary: %{summary}
@ -43,15 +50,36 @@ Summary: %{summary}
%description -n %{crate} %description -n %{crate}
%{summary}. %{summary}.
%files -n %{crate}
%license LICENSE
%doc README.md
%{_bindir}/cbindgen
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
A tool for generating C bindings to Rust code.
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 This package contains library source intended for building other packages
which use %{crate} from crates.io. which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -70,17 +98,10 @@ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" test.py
./test.py -v ./test.py -v
%endif %endif
%files -n %{crate}
%license LICENSE
%doc README.md
%{_bindir}/cbindgen
%files devel
%license LICENSE
%doc ARCHITECTURE.md CONTRIBUTING.md README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Fri Nov 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.7-1
- Adapt to new packaging
* Mon Oct 22 2018 Josh Stone <jistone@redhat.com> - 0.6.6-1 * Mon Oct 22 2018 Josh Stone <jistone@redhat.com> - 0.6.6-1
- Update to 0.6.6 - Update to 0.6.6

@ -1 +1 @@
SHA512 (cbindgen-0.6.6.crate) = d51d17765d705424dead65e4240c52fe93da731d5ac1cc76fe79e2eb68a42c26a7de58b08149cccd6806ee5bb189df8c15c3a532a5f857a65c2fd69c656d7137 SHA512 (cbindgen-0.6.7.crate) = 1a2a3f2055b0527b878b78834e6c802a171ed5f3494ff4819622f8244821d9a1b23d34d0c9370bee10a9f334cdbdfac43cb513f61bd49d57614f66825cd78030

Loading…
Cancel
Save