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

@ -1,12 +1,8 @@
--- libz-sys-1.0.25/Cargo.toml 1970-01-01T01:00:00+01:00 --- libz-sys-1.0.25/Cargo.toml 1970-01-01T00:00:00+00:00
+++ libz-sys-1.0.25/Cargo.toml 2018-11-04T17:39:46.882431+01:00 +++ libz-sys-1.0.25/Cargo.toml 2019-06-20T10:34:11.327023+00:00
@@ -28,9 +28,3 @@ @@ -32,5 +32,3 @@
[features]
[build-dependencies.pkg-config] asm = []
version = "0.3.9" static = []
-
-[features]
-asm = []
-static = []
-[target."cfg(target_env = \"msvc\")".build-dependencies.vcpkg] -[target."cfg(target_env = \"msvc\")".build-dependencies.vcpkg]
-version = "0.2" -version = "0.2"

@ -1,33 +1,31 @@
# Generated by rust2rpm # Generated by rust2rpm 10
%bcond_with check %bcond_without check
%global debug_package %{nil} %global debug_package %{nil}
%global crate libz-sys %global crate libz-sys
Name: rust-%{crate} Name: rust-%{crate}
Version: 1.0.25 Version: 1.0.25
Release: 4%{?dist} Release: 5%{?dist}
Summary: Bindings to the system libz library (also known as zlib) Summary: Bindings to the system libz library (also known as zlib)
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0 License: MIT or ASL 2.0
URL: https://crates.io/crates/libz-sys URL: https://crates.io/crates/libz-sys
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Source: %{crates_source}
# Initial patched metadata # Initial patched metadata
# * the asm and static features are only for the bundled lib
# * No MSVC # * No MSVC
Patch0: libz-sys-fix-metadata.diff Patch0: libz-sys-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging BuildRequires: rust-packaging
BuildRequires: (crate(cc/default) >= 1.0.18 with crate(cc/default) < 2.0.0)
BuildRequires: (crate(libc/default) >= 0.2.43 with crate(libc/default) < 0.3.0)
BuildRequires: (crate(pkg-config/default) >= 0.3.9 with crate(pkg-config/default) < 0.4.0)
BuildRequires: pkgconfig(zlib)
%global _description \ %global _description %{expand:
Bindings to the system libz library (also known as zlib). Bindings to the system libz library (also known as zlib).}
%description %{_description} %description %{_description}
@ -59,11 +57,15 @@ which use "default" feature of "%{crate}" crate.
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1
# No bundled libs # No bundled libs
rm -vrf src/zlib/ rm -vrf src/zlib/
%cargo_prep %cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
echo 'pkgconfig(zlib)'
%build %build
%cargo_build %cargo_build
@ -76,6 +78,9 @@ rm -vrf src/zlib/
%endif %endif
%changelog %changelog
* Thu Jun 20 12:34:11 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.25-5
- Regenerate
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.25-4 * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.25-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_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-libz-sys
Loading…
Cancel
Save