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 # Generated by rust2rpm
%bcond_without check # * Tests are run in infrastructure
%bcond_with check
%global debug_package %{nil} %global debug_package %{nil}
%global onig_min 6.8.0
%global crate onig_sys %global crate onig_sys
Name: rust-%{crate} Name: rust-%{crate}
Version: 69.0.0 Version: 69.0.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: Raw rust bindings to the oniguruma library Summary: Raw rust bindings to the oniguruma library
License: MIT License: MIT
@ -20,32 +19,70 @@ Patch0: rust-onig_sys-use-system-onig.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(cc/default) >= 1.0.0 with crate(cc/default) < 2.0.0)
BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
# [build-dependencies] BuildRequires: (crate(pkg-config/default) >= 0.3.0 with crate(pkg-config/default) < 0.4.0)
BuildRequires: (crate(cc) >= 1.0.0 with crate(cc) < 2.0.0) BuildRequires: pkgconfig(oniguruma) >= 6.8.0
BuildRequires: (crate(pkg-config) >= 0.3.0 with crate(pkg-config) < 0.4.0)
BuildRequires: pkgconfig(oniguruma) >= %{onig_min} %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 %description %{_description}
%{summary}.
%package devel %package devel
Summary: %{summary} Summary: %{summary}
Requires: pkgconfig(oniguruma) >= %{onig_min}
BuildArch: noarch BuildArch: noarch
Requires: pkgconfig(oniguruma) >= 6.8.0
%description devel %description devel %{_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; This package contains library source intended for building other packages
instead check out the `onig` crate. 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 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 %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -63,11 +100,10 @@ rm -vrf oniguruma/
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %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 * Sat Sep 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 69.0.0-1
- Update to 69.0.0 - 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