parent
f45a46c49a
commit
57c8956ff5
@ -0,0 +1 @@
|
||||
/zstd-safe-2.0.3+zstd.1.4.4.crate
|
@ -0,0 +1,130 @@
|
||||
# Generated by rust2rpm 12
|
||||
%bcond_without check
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global crate zstd-safe
|
||||
%global upstream_version 2.0.3+zstd.1.4.4
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 2.0.3
|
||||
Release: 1%{?dist}
|
||||
Summary: Safe low-level bindings for the zstd compression library
|
||||
|
||||
# Upstream license specification: MIT/Apache-2.0
|
||||
# license in next release
|
||||
License: MIT or ASL 2.0
|
||||
URL: https://crates.io/crates/zstd-safe
|
||||
Source: %{crates_source %{crate} %{upstream_version}}
|
||||
# Initial patched metadata
|
||||
# * Remove zstd version from version field
|
||||
# * Add pkg-config feature to build zstd-sys
|
||||
# * Remove bindgen feature which is the default now
|
||||
Patch0: zstd-safe-fix-metadata.diff
|
||||
|
||||
ExclusiveArch: %{rust_arches}
|
||||
%if %{__cargo_skip_build}
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
BuildRequires: rust-packaging
|
||||
|
||||
%global _description %{expand:
|
||||
Safe low-level bindings for the zstd compression library.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages
|
||||
which use "%{crate}" crate.
|
||||
|
||||
%files devel
|
||||
#%%license LICENSE
|
||||
%doc Readme.md
|
||||
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
||||
|
||||
%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_no_tilde}/Cargo.toml
|
||||
|
||||
%package -n %{name}+experimental-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+experimental-devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages
|
||||
which use "experimental" feature of "%{crate}" crate.
|
||||
|
||||
%files -n %{name}+experimental-devel
|
||||
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||||
|
||||
%package -n %{name}+legacy-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+legacy-devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages
|
||||
which use "legacy" feature of "%{crate}" crate.
|
||||
|
||||
%files -n %{name}+legacy-devel
|
||||
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||||
|
||||
%package -n %{name}+std-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+std-devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages
|
||||
which use "std" feature of "%{crate}" crate.
|
||||
|
||||
%files -n %{name}+std-devel
|
||||
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||||
|
||||
%package -n %{name}+zstdmt-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+zstdmt-devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages
|
||||
which use "zstdmt" feature of "%{crate}" crate.
|
||||
|
||||
%files -n %{name}+zstdmt-devel
|
||||
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{upstream_version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%generate_buildrequires
|
||||
%cargo_generate_buildrequires
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Dec 16 03:41:27 CET 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.3-1
|
||||
- Initial package
|
@ -0,0 +1 @@
|
||||
SHA512 (zstd-safe-2.0.3+zstd.1.4.4.crate) = 05f45aa3440e84e72f9a2bc647a5c1b146399dc5424767fc6371aadb8f48cab24dcac5fbd1c856b770c9c777b983382482d76ab8b10b99ae9569f5ffda852ae5
|
@ -0,0 +1,22 @@
|
||||
--- zstd-safe-2.0.3+zstd.1.4.4/Cargo.toml 2019-11-05T19:46:40+00:00
|
||||
+++ zstd-safe-2.0.3+zstd.1.4.4/Cargo.toml 2020-01-06T16:47:45.456547+00:00
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
[package]
|
||||
name = "zstd-safe"
|
||||
-version = "2.0.3+zstd.1.4.4"
|
||||
+version = "2.0.3"
|
||||
authors = ["Alexandre Bury <alexandre.bury@gmail.com>"]
|
||||
description = "Safe low-level bindings for the zstd compression library."
|
||||
readme = "Readme.md"
|
||||
@@ -26,9 +26,9 @@
|
||||
[dependencies.zstd-sys]
|
||||
version = "=1.4.15"
|
||||
default-features = false
|
||||
+features = ["pkgconfig"]
|
||||
|
||||
[features]
|
||||
-bindgen = ["zstd-sys/bindgen"]
|
||||
default = ["legacy"]
|
||||
experimental = ["zstd-sys/experimental"]
|
||||
legacy = ["zstd-sys/legacy"]
|
Loading…
Reference in new issue