|
|
@ -1,4 +1,4 @@
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
@ -13,12 +13,14 @@ License: MIT
|
|
|
|
URL: https://crates.io/crates/onig_sys
|
|
|
|
URL: https://crates.io/crates/onig_sys
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# * bump bindgen build-dependency from 0.59 to 0.63
|
|
|
|
# * bump bindgen build-dependency from 0.59 to 0.69
|
|
|
|
|
|
|
|
# * remove reference to readme file that is not included in published crates
|
|
|
|
Patch: onig_sys-fix-metadata.diff
|
|
|
|
Patch: onig_sys-fix-metadata.diff
|
|
|
|
# * unconditionally use bindgen and dynamic linking with pkg-config
|
|
|
|
# * unconditionally use bindgen and dynamic linking with pkg-config
|
|
|
|
Patch: 0001-Unconditionally-use-bindgen-and-dynamic-linking-with.patch
|
|
|
|
Patch1: 0001-Unconditionally-use-bindgen-and-dynamic-linking-with.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(oniguruma) >= 6.8.0
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
The `onig_sys` crate contains raw rust bindings to the oniguruma
|
|
|
|
The `onig_sys` crate contains raw rust bindings to the oniguruma
|
|
|
@ -104,14 +106,13 @@ use the "print-debug" feature of the "%{crate}" crate.
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
|
|
|
%cargo_prep
|
|
|
|
# remove bundled oniguruma sources
|
|
|
|
# remove bundled oniguruma sources
|
|
|
|
rm -r oniguruma/
|
|
|
|
rm -r oniguruma/
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
echo 'pkgconfig(oniguruma) >= 6.8.0'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|