Adapt to new packaging

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

@ -1,10 +1,7 @@
--- net2-0.2.33/Cargo.toml 1970-01-01T01:00:00+01:00 --- net2-0.2.33/Cargo.toml 1970-01-01T01:00:00+01:00
+++ net2-0.2.33/Cargo.toml 2018-06-29T00:21:26.955021+02:00 +++ net2-0.2.33/Cargo.toml 2018-11-11T13:44:38.254464+01:00
@@ -26,9 +26,5 @@ @@ -29,6 +29,3 @@
[features] nightly = []
default = ["duration"]
duration = []
-nightly = []
[target."cfg(any(target_os=\"redox\", unix))".dependencies.libc] [target."cfg(any(target_os=\"redox\", unix))".dependencies.libc]
version = "0.2.42" version = "0.2.42"
-[target."cfg(windows)".dependencies.winapi] -[target."cfg(windows)".dependencies.winapi]

@ -6,36 +6,65 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.2.33 Version: 0.2.33
Release: 2%{?dist} Release: 3%{?dist}
Summary: Extensions to the standard library's networking types as proposed in RFC 1158 Summary: Extensions to the standard library's networking types as proposed in RFC 1158
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0 License: MIT or ASL 2.0
URL: https://crates.io/crates/net2 URL: https://crates.io/crates/net2
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
# * No windows # * No windows
# * No nightly Patch0: net2-fix-metadata.diff
Patch0: net2-0.2.33-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(cfg-if/default) >= 0.1.0 with crate(cfg-if/default) < 0.2.0)
BuildRequires: (crate(cfg-if) >= 0.1.0 with crate(cfg-if) < 0.2.0) BuildRequires: (crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0)
BuildRequires: (crate(libc) >= 0.2.42 with crate(libc) < 0.3.0)
%description %global _description \
%{summary}. Extensions to the standard library's networking types as proposed in RFC 1158.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Extensions to the standard library's networking types as proposed in RFC 1158.
This package contains library source intended for building other packages
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 This package contains library source intended for building other packages
which use %{crate} from crates.io. which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+duration-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+duration-devel %{_description}
This package contains library source intended for building other packages
which use "duration" feature of "%{crate}" crate.
%files -n %{name}+duration-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -52,13 +81,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}/
%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml
%changelog %changelog
* Sun Nov 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.33-3
- Adapt to new packaging
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.33-2 * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.33-2
- 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-net2
Loading…
Cancel
Save