diff --git a/onig_sys-fix-metadata.diff b/onig_sys-fix-metadata.diff new file mode 100644 index 0000000..fa6d4df --- /dev/null +++ b/onig_sys-fix-metadata.diff @@ -0,0 +1,18 @@ +--- onig_sys-69.5.0/Cargo.toml 2020-05-16T10:47:58+00:00 ++++ onig_sys-69.5.0/Cargo.toml 2020-05-23T20:37:42.152270+00:00 +@@ -25,7 +25,6 @@ + [build-dependencies.bindgen] + version = "0.53" + features = ["runtime"] +-optional = true + + [build-dependencies.cc] + version = "1.0" +@@ -35,6 +34,6 @@ + + [features] + default = ["generate"] +-generate = ["bindgen"] ++generate = [] + posix-api = [] + print-debug = [] diff --git a/rust-onig_sys.spec b/rust-onig_sys.spec index 58bac02..96aa993 100644 --- a/rust-onig_sys.spec +++ b/rust-onig_sys.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 15 %bcond_without check %global debug_package %{nil} @@ -6,13 +6,16 @@ Name: rust-%{crate} Version: 69.5.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Raw rust bindings to the oniguruma library # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/onig_sys Source: %{crates_source} +# Initial patched metadata +# * Make bindgen as non-optional dep (for next patch) +Patch0: onig_sys-fix-metadata.diff # Always use system onig Patch0001: 0001-Always-use-system-onig.patch @@ -58,18 +61,6 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+bindgen-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+bindgen-devel %{_description} - -This package contains library source intended for building other packages -which use "bindgen" feature of "%{crate}" crate. - -%files -n %{name}+bindgen-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %package -n %{name}+generate-devel Summary: %{summary} BuildArch: noarch @@ -127,6 +118,9 @@ echo 'pkgconfig(oniguruma) >= 6.8.0' %endif %changelog +* Sat May 23 22:37:42 CEST 2020 Igor Raits - 69.5.0-2 +- Always require bindgen + * Thu Feb 27 2020 Josh Stone - 69.2.0-4 - Bump bindgen to 0.53.