You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-flate2/rust-flate2.spec

190 lines
5.2 KiB

# Generated by rust2rpm 18
%bcond_without check
%global debug_package %{nil}
%global crate flate2
Name: rust-%{crate}
Version: 1.0.21
Release: %autorelease
Summary: DEFLATE compression and decompression exposed as Read/BufRead/Write streams
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/flate2
Source: %{crates_source}
# Initial patched metadata
# * No wasm32
# * No cloudflare-zlib-sys
# * No zlib-ng support in libz-sys
Patch0: flate2-fix-metadata.diff
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
DEFLATE compression and decompression exposed as Read/BufRead/Write streams.
Supports miniz_oxide, miniz.c, and multiple zlib implementations. Supports
zlib, gzip, and raw deflate streams.}
%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-MIT LICENSE-APACHE
%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}+any_zlib-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+any_zlib-devel %{_description}
This package contains library source intended for building other packages
which use "any_zlib" feature of "%{crate}" crate.
%files -n %{name}+any_zlib-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+futures-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+futures-devel %{_description}
This package contains library source intended for building other packages
which use "futures" feature of "%{crate}" crate.
%files -n %{name}+futures-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+libz-sys-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+libz-sys-devel %{_description}
This package contains library source intended for building other packages
which use "libz-sys" feature of "%{crate}" crate.
%files -n %{name}+libz-sys-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+miniz-sys-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+miniz-sys-devel %{_description}
This package contains library source intended for building other packages
which use "miniz-sys" feature of "%{crate}" crate.
%files -n %{name}+miniz-sys-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+miniz_oxide-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+miniz_oxide-devel %{_description}
This package contains library source intended for building other packages
which use "miniz_oxide" feature of "%{crate}" crate.
%files -n %{name}+miniz_oxide-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+rust_backend-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+rust_backend-devel %{_description}
This package contains library source intended for building other packages
which use "rust_backend" feature of "%{crate}" crate.
%files -n %{name}+rust_backend-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+tokio-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+tokio-devel %{_description}
This package contains library source intended for building other packages
which use "tokio" feature of "%{crate}" crate.
%files -n %{name}+tokio-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+tokio-io-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+tokio-io-devel %{_description}
This package contains library source intended for building other packages
which use "tokio-io" feature of "%{crate}" crate.
%files -n %{name}+tokio-io-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+zlib-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+zlib-devel %{_description}
This package contains library source intended for building other packages
which use "zlib" feature of "%{crate}" crate.
%files -n %{name}+zlib-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog