Initial import

epel9
Michel Alexandre Salim 5 years ago
parent 0207f89487
commit b930d4562d

1
.gitignore vendored

@ -0,0 +1 @@
/bzip2-sys-0.1.9+1.0.8.crate

@ -0,0 +1,84 @@
# 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: 1%{?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
%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
* Sun Jun 14 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 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 <salimma@fedoraproject.org> - 0.1.8+1.0.8-1
- Initial package

@ -0,0 +1 @@
SHA512 (bzip2-sys-0.1.9+1.0.8.crate) = 069ff0c16f61f6c2b58fbbe11896130c666960926dc12a08e5db64073625b02f4e9628da52cc46fb2ef11ac8ac4268c735d6f37378e9eed1e2b258d5cd235145
Loading…
Cancel
Save