Adapt to new packaging

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

@ -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 zoneinfo_compiled %global crate zoneinfo_compiled
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.4.7 Version: 0.4.7
Release: 4%{?dist} Release: 5%{?dist}
Summary: Library for parsing compiled zoneinfo files Summary: Library for parsing compiled zoneinfo files
# https://github.com/rust-datetime/zoneinfo-compiled/issues/1 # https://github.com/rust-datetime/zoneinfo-compiled/issues/1
@ -15,27 +16,43 @@ URL: https://crates.io/crates/zoneinfo_compiled
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
# Initial patched metadata # Initial patched metadata
# * Bump byteorder to 1, https://github.com/rust-datetime/zoneinfo-compiled/pull/2 # * Bump byteorder to 1, https://github.com/rust-datetime/zoneinfo-compiled/pull/2
Patch0: zoneinfo_compiled-0.4.7-fix-metadata.diff Patch0: zoneinfo_compiled-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(byteorder/default) >= 1.0.0 with crate(byteorder/default) < 2.0.0)
BuildRequires: (crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0) BuildRequires: (crate(datetime/default) >= 0.4.7 with crate(datetime/default) < 0.5.0)
BuildRequires: (crate(datetime) >= 0.4.7 with crate(datetime) < 0.5.0)
%description %global _description \
%{summary}. Library for parsing compiled zoneinfo files.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Library for parsing compiled zoneinfo files.
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
%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
@ -52,11 +69,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Wed Nov 14 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.7-5
- Adapt to new packaging
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.7-4 * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

@ -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-zoneinfo_compiled

@ -1,5 +1,5 @@
--- zoneinfo_compiled-0.4.7/Cargo.toml 1970-01-01T01:00:00+01:00 --- zoneinfo_compiled-0.4.7/Cargo.toml 1970-01-01T01:00:00+01:00
+++ zoneinfo_compiled-0.4.7/Cargo.toml 2017-11-27T13:38:36.405587+01:00 +++ zoneinfo_compiled-0.4.7/Cargo.toml 2018-11-14T14:01:50.354846+01:00
@@ -25,4 +25,4 @@ @@ -25,4 +25,4 @@
version = "0.4.7" version = "0.4.7"
Loading…
Cancel
Save