|
|
@ -1,42 +1,44 @@
|
|
|
|
# Generated by rust2rpm
|
|
|
|
# Generated by rust2rpm 10
|
|
|
|
# * Tests are run in infrastructure
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_with check
|
|
|
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate onig_sys
|
|
|
|
%global crate onig_sys
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 69.1.0
|
|
|
|
Version: 69.1.0
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: Raw rust bindings to the oniguruma library
|
|
|
|
Summary: Raw rust bindings to the oniguruma library
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
# Upstream license specification: MIT
|
|
|
|
|
|
|
|
# * Since we bundle oniguruma for time being, it is BSD
|
|
|
|
|
|
|
|
License: MIT and BSD
|
|
|
|
URL: https://crates.io/crates/onig_sys
|
|
|
|
URL: https://crates.io/crates/onig_sys
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Use system onig by default
|
|
|
|
# Use system onig by default
|
|
|
|
Patch0: rust-onig_sys-use-system-onig.diff
|
|
|
|
# * This is utterly broken with 6.9.2, https://github.com/rust-onig/rust-onig/issues/103
|
|
|
|
|
|
|
|
#Patch0: rust-onig_sys-use-system-onig.diff
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: (crate(cc/default) >= 1.0.0 with crate(cc/default) < 2.0.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(pkg-config/default) >= 0.3.0 with crate(pkg-config/default) < 0.4.0)
|
|
|
|
%global _description %{expand:
|
|
|
|
BuildRequires: pkgconfig(oniguruma) >= 6.8.0
|
|
|
|
`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
|
|
|
|
%global _description \
|
|
|
|
to create safe wrappers around Oniguruma.
|
|
|
|
The `onig_sys` crate contains raw rust bindings to the oniguruma library.\
|
|
|
|
You probably don't want to link to
|
|
|
|
This crate exposes a set of unsafe functions which can then\
|
|
|
|
this crate directly; instead check out the `onig` crate.}
|
|
|
|
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}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: pkgconfig(oniguruma) >= 6.8.0
|
|
|
|
#Requires: pkgconfig(oniguruma) >= 6.8.0
|
|
|
|
|
|
|
|
Provides: bundled(oniguruma) = 6.9.1
|
|
|
|
|
|
|
|
|
|
|
|
%description devel %{_description}
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
@ -84,10 +86,15 @@ which use "print-debug" feature of "%{crate}" crate.
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
rm -vrf oniguruma/
|
|
|
|
#rm -vrf oniguruma/
|
|
|
|
|
|
|
|
find oniguruma/ -type f -executable -exec chmod -x {} \+
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
#echo 'pkgconfig(oniguruma) >= 6.8.0'
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
|
|
|
@ -100,6 +107,9 @@ rm -vrf oniguruma/
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Jun 23 00:12:31 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 69.1.0-3
|
|
|
|
|
|
|
|
- Regenerate
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 69.1.0-2
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 69.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|