# Generated by rust2rpm 13 %bcond_without check %global debug_package %{nil} %global crate bzip2-sys Name: rust-%{crate} Version: 0.1.9+1.0.8 Release: 3%{?dist} Summary: Bindings to libbzip2 for bzip2 compression and decompression exposed as Reader/Writer streams # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/bzip2-sys Source: %{crates_source} ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging BuildRequires: pkgconfig(bzip2) %global _description %{expand: Bindings to libbzip2 for bzip2 compression and decompression exposed as Reader/Writer streams.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(bzip2) %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel # license texts currently only available for bzip2-rs, # not for bzip2-rs/bzip2-sys # see https://github.com/alexcrichton/bzip2-rs/pull/59 %{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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 # remove the bundled copy to make sure we're linking against the system lib rm -vr bzip2-1.0.8 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Wed Jul 29 2020 Fedora Release Engineering - 0.1.9+1.0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Jun 27 2020 Michel Alexandre Salim - 0.1.9+1.0.8-2 - devel should also pull in pkgconfig(bzip2) * Sun Jun 14 2020 Michel Alexandre Salim - 0.1.9+1.0.8-1 - Update to 0.1.9 - add link to PR for license texts * Sat May 23 13:16:34 PDT 2020 Michel Alexandre Salim - 0.1.8+1.0.8-1 - Initial package