Adapt to new packaging

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

@ -1,5 +1,5 @@
--- directories-1.0.1/Cargo.toml 1970-01-01T01:00:00+01:00 --- directories-1.0.2/Cargo.toml 1970-01-01T01:00:00+01:00
+++ directories-1.0.1/Cargo.toml 2018-09-03T09:09:38.486287+02:00 +++ directories-1.0.2/Cargo.toml 2018-11-03T14:21:31.364214+01:00
@@ -27,6 +27,3 @@ @@ -27,6 +27,3 @@
version = "0.1.5" version = "0.1.5"
[target."cfg(unix)".dependencies.libc] [target."cfg(unix)".dependencies.libc]

@ -1,12 +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 crate directories %global crate directories
Name: rust-%{crate} Name: rust-%{crate}
Version: 1.0.2 Version: 1.0.2
Release: 1%{?dist} Release: 2%{?dist}
Summary: Library that provides platform-specific standard locations of directories Summary: Library that provides platform-specific standard locations of directories
# Upstream license specification: MIT OR Apache-2.0 # Upstream license specification: MIT OR Apache-2.0
@ -20,29 +21,45 @@ Patch0: directories-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0)
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(bencher/default) >= 0.1.5 with crate(bencher/default) < 0.2.0)
BuildRequires: (crate(bencher) >= 0.1.5 with crate(bencher) < 0.2.0)
%endif %endif
%description %global _description \
%{summary}. A tiny mid-level library that provides platform-specific standard locations of\
directories for config, cache and other data on Linux, Windows and macOS by\
leveraging the mechanisms defined by the XDG base/user directory specifications\
on Linux, the Known Folder API on Windows, and the Standard Directory\
guidelines on macOS.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
A tiny mid-level library that provides platform-specific standard locations of
directories for config, cache and other data on Linux, Windows and macOS by
leveraging the mechanisms defined by the XDG base/user directory specifications
on Linux, the Known Folder API on Windows, and the Standard Directory
guidelines on macOS.
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 "%{crate}" crate.
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.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
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -59,12 +76,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Sat Nov 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.2-2
- Adapt to new packaging
* Thu Sep 27 2018 Josh Stone <jistone@redhat.com> - 1.0.2-1 * Thu Sep 27 2018 Josh Stone <jistone@redhat.com> - 1.0.2-1
- Update to 1.0.2 - Update to 1.0.2

@ -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-directories
Loading…
Cancel
Save