Mageia Bugzilla – Attachment 10899 Details for
Bug 24610
rust-cbindgen, tool for generating C bindings to Rust code, needed to build Thunderbird 66.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec file to build rust-cbindgen
rust-cbindgen.spec (text/plain), 2.95 KB, created by
Kristoffer Grundström
on 2019-04-02 15:23:31 CEST
(
hide
)
Description:
Proposal spec file to build rust-cbindgen
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2019-04-02 15:23:31 CEST
Size:
2.95 KB
patch
obsolete
>Name: cbindgen >Version: 0.8.2 >Release: %mkrel 1 >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: https://github.com/eqrion/cbindgen/archive/%{name}-%{version}.tar.gz ># Run tests with the release binaries >Patch1: cbindgen-test-release.patch >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(proc-macro2/default) >= 0.4.0 with crate(proc-macro2/default) < 0.5.0) >BuildRequires: (crate(quote/default) >= 0.6.0 with crate(quote/default) < 0.7.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/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_no_tilde} -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
Name: cbindgen Version: 0.8.2 Release: %mkrel 1 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: https://github.com/eqrion/cbindgen/archive/%{name}-%{version}.tar.gz # Run tests with the release binaries Patch1: cbindgen-test-release.patch 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(proc-macro2/default) >= 0.4.0 with crate(proc-macro2/default) < 0.5.0) BuildRequires: (crate(quote/default) >= 0.6.0 with crate(quote/default) < 0.7.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/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_no_tilde} -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
View Attachment As Raw
Actions:
View
Attachments on
bug 24610
: 10899 |
10900
|
10901