parent
b69257fd0b
commit
8754ab980c
@ -0,0 +1 @@
|
||||
/pcre2-sys-0.1.1.crate
|
@ -0,0 +1,64 @@
|
||||
# Generated by rust2rpm
|
||||
%bcond_without check
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global crate pcre2-sys
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 0.1.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Low level bindings to PCRE2
|
||||
|
||||
# Upstream license specification: Unlicense/MIT
|
||||
License: Unlicense or MIT
|
||||
URL: https://crates.io/crates/pcre2-sys
|
||||
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
||||
|
||||
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.0 with crate(cc) < 2.0.0)
|
||||
BuildRequires: (crate(pkg-config) >= 0.3.13 with crate(pkg-config) < 0.4.0)
|
||||
BuildRequires: pkgconfig(libpcre2-8)
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: %{summary}
|
||||
Requires: pkgconfig(libpcre2-8)
|
||||
BuildArch: noarch
|
||||
|
||||
%description devel
|
||||
Low level bindings to PCRE2.
|
||||
|
||||
This package contains library source intended for building other packages
|
||||
which use %{crate} from crates.io.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
rm -vrf pcre2
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%license UNLICENSE LICENSE-MIT COPYING
|
||||
%doc README.md
|
||||
%{cargo_registry}/%{crate}-%{version}/
|
||||
|
||||
%changelog
|
||||
* Sat Sep 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.1-1
|
||||
- Initial package
|
Loading…
Reference in new issue