parent
618ba62ed9
commit
8acbd43e36
@ -0,0 +1 @@
|
|||||||
|
/onig_sys-68.2.0.crate
|
@ -0,0 +1,12 @@
|
|||||||
|
diff -uNr onig_sys-68.2.0.orig/build.rs onig_sys-68.2.0/build.rs
|
||||||
|
--- onig_sys-68.2.0.orig/build.rs 2018-07-29 18:29:19.000000000 +0200
|
||||||
|
+++ onig_sys-68.2.0/build.rs 2018-09-03 08:36:08.969948474 +0200
|
||||||
|
@@ -139,7 +139,7 @@
|
||||||
|
|
||||||
|
pub fn main() {
|
||||||
|
let link_type = link_type_override();
|
||||||
|
- let require_pkg_config = env_var_bool("RUSTONIG_SYSTEM_LIBONIG").unwrap_or(false);
|
||||||
|
+ let require_pkg_config = env_var_bool("RUSTONIG_SYSTEM_LIBONIG").unwrap_or(true);
|
||||||
|
|
||||||
|
if require_pkg_config || link_type == Some(LinkType::Dynamic) {
|
||||||
|
let mut conf = Config::new();
|
@ -0,0 +1,74 @@
|
|||||||
|
# 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.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Raw rust bindings to the oniguruma library
|
||||||
|
|
||||||
|
# https://github.com/rust-onig/rust-onig/issues/89
|
||||||
|
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
|
||||||
|
%{cargo_registry}/%{crate}-%{version}/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Sep 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 68.2.0-1
|
||||||
|
- Initial package
|
Loading…
Reference in new issue