Adapt to new packaging

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent 3ceda7224d
commit 7b765f0d95
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,14 +1,13 @@
# Generated by rust2rpm
%bcond_without check
# * Tests are run in infrastructure
%bcond_with check
%global debug_package %{nil}
%global onig_min 6.8.0
%global crate onig_sys
Name: rust-%{crate}
Version: 69.0.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Raw rust bindings to the oniguruma library
License: MIT
@ -20,32 +19,70 @@ 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.0 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}
BuildRequires: (crate(cc/default) >= 1.0.0 with crate(cc/default) < 2.0.0)
BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
BuildRequires: (crate(pkg-config/default) >= 0.3.0 with crate(pkg-config/default) < 0.4.0)
BuildRequires: pkgconfig(oniguruma) >= 6.8.0
%global _description \
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;\
instead check out the `onig` crate.
%description
%{summary}.
%description %{_description}
%package devel
Summary: %{summary}
Requires: pkgconfig(oniguruma) >= %{onig_min}
BuildArch: noarch
Requires: pkgconfig(oniguruma) >= 6.8.0
%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.
%description devel %{_description}
You probably don't want to link to this crate directly;
instead check out the `onig` crate.
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE.md
%{cargo_registry}/%{crate}-%{version}/
%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}/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}/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 %{crate} from crates.io.
which use "print-debug" feature of "%{crate}" crate.
%files -n %{name}+print-debug-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
@ -63,11 +100,10 @@ rm -vrf oniguruma/
%cargo_test
%endif
%files devel
%license LICENSE.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Sat Nov 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 69.0.0-2
- Adapt to new packaging
* Sat Sep 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 69.0.0-1
- Update to 69.0.0

@ -0,0 +1,5 @@
---
standard-inventory-qcow2:
qemu:
# `cargo test` usually eats more than 1G.
m: 4G

@ -0,0 +1,13 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
repositories:
- repo: "https://src.fedoraproject.org/tests/rust.git"
dest: rust
tests:
- rust/cargo-test
environment:
pkg: rust-onig_sys
Loading…
Cancel
Save