|
|
|
# Generated by rust2rpm
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
%global onig_min 6.8.0
|
|
|
|
|
|
|
|
%global crate onig_sys
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 68.2.1
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Raw rust bindings to the oniguruma library
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://crates.io/crates/onig_sys
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
# Use system onig by default
|
|
|
|
Patch0: rust-onig_sys-use-system-onig.diff
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
# [dependencies]
|
|
|
|
BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0)
|
|
|
|
# [build-dependencies]
|
|
|
|
BuildRequires: (crate(cc) >= 1.0.18 with crate(cc) < 2.0.0)
|
|
|
|
BuildRequires: (crate(pkg-config) >= 0.3.0 with crate(pkg-config) < 0.4.0)
|
|
|
|
BuildRequires: pkgconfig(oniguruma) >= %{onig_min}
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Requires: pkgconfig(oniguruma) >= %{onig_min}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The 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.
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
which use %{crate} from crates.io.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
rm -vrf oniguruma/
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license LICENSE.md
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Wed Sep 05 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 68.2.1-1
|
|
|
|
- Update to 68.2.1
|
|
|
|
|
|
|
|
* Mon Sep 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 68.2.0-1
|
|
|
|
- Initial package
|