## START: Set by rpmautospec %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by rust2rpm 17 %bcond_without check %global debug_package %{nil} %global crate onig_sys Name: rust-%{crate} Version: 69.7.0 Release: %autorelease 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 # * Bump bindgen to 0.58: https://github.com/rust-onig/rust-onig/pull/157 # * Mark 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 ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: `onig_sys` crate contains raw rust bindings to the oniguruma library. This crate exposes a set of unsafe functions which can then be used by other crates to create safe wrappers around Oniguruma. You probably don't want to link to this crate directly; instead check out the `onig` crate.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(oniguruma) >= 6.8.0 %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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_no_tilde}/Cargo.toml %package -n %{name}+generate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate-devel %{_description} This package contains library source intended for building other packages which use "generate" feature of "%{crate}" crate. %files -n %{name}+generate-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+posix-api-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+posix-api-devel %{_description} This package contains library source intended for building other packages which use "posix-api" feature of "%{crate}" crate. %files -n %{name}+posix-api-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+print-debug-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+print-debug-devel %{_description} This package contains library source intended for building other packages which use "print-debug" feature of "%{crate}" crate. %files -n %{name}+print-debug-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 rm -vrf oniguruma/ %cargo_prep %generate_buildrequires %cargo_generate_buildrequires echo 'pkgconfig(oniguruma) >= 6.8.0' %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sat Jul 17 2021 Robert-André Mauchin 69.7.0-1 - Uncommitted changes * Wed Mar 31 2021 Robert-André Mauchin 69.6.0-3 - Bump bindgen to 0.57 * Wed Jan 27 2021 Fedora Release Engineering 69.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Nov 29 2020 Fabio Valentini 69.6.0-1 - update to version 69.6.0 * Wed Sep 23 2020 Fabio Valentini 69.5.1-1 - update to version 69.5.1 * Wed Jul 29 2020 Fedora Release Engineering 69.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat May 30 2020 Josh Stone 69.5.0-3 - Bump to bindgen 0.54. * Sat May 23 2020 Igor Raits 69.5.0-2 - Always require bindgen * Sat May 16 2020 Igor Raits 69.5.0-1 - Update to 69.5.0 * Fri Feb 28 2020 Josh Stone 69.2.0-6 - Bump bindgen to 0.53. * Thu Jan 30 2020 Fedora Release Engineering 69.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Dec 10 2019 Josh Stone 69.2.0-3 - Bump bindgen to 0.52. * Thu Sep 05 2019 Igor Gnatenko 69.2.0-2 - Update bindgen to 0.51 * Thu Sep 05 2019 Igor Gnatenko 69.2.0-1 - Update to 69.2.0 * Fri Jul 26 2019 Fedora Release Engineering 69.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Jun 22 2019 Igor Gnatenko 69.1.0-4 - Remove unneeded files * Sat Jun 22 2019 Igor Gnatenko 69.1.0-3 - Regenerate * Sat Feb 02 2019 Fedora Release Engineering 69.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jan 12 2019 Igor Gnatenko 69.1.0-1 - Update to 69.1.0 * Sun Nov 04 2018 Igor Gnatenko 69.0.0-3 - rust2rpm.conf * Sat Nov 03 2018 Igor Gnatenko 69.0.0-2 - Adapt to new packaging * Sat Sep 08 2018 Igor Gnatenko 69.0.0-1 - Update to 69.0.0 * Wed Sep 05 2018 Igor Gnatenko 68.2.1-1 - Update to 68.2.1 * Mon Sep 03 2018 Igor Gnatenko 68.2.0-1 - initial import