Blame rust-zstd-safe.spec

8fd60ad
# Generated by rust2rpm 13
57c8956
%bcond_without check
57c8956
%global debug_package %{nil}
57c8956
57c8956
%global crate zstd-safe
f79e72c
%global upstream_version 2.0.5+zstd.1.4.5
57c8956
57c8956
Name:           rust-%{crate}
f79e72c
Version:        2.0.5
970664a
Release:        2%{?dist}
57c8956
Summary:        Safe low-level bindings for the zstd compression library
57c8956
57c8956
# Upstream license specification: MIT/Apache-2.0
57c8956
License:        MIT or ASL 2.0
57c8956
URL:            https://crates.io/crates/zstd-safe
57c8956
Source:         %{crates_source %{crate} %{upstream_version}}
57c8956
# Initial patched metadata
57c8956
# * Remove zstd version from version field
57c8956
# * Add pkg-config feature to build zstd-sys
57c8956
# * Remove bindgen feature which is the default now
57c8956
Patch0:         zstd-safe-fix-metadata.diff
57c8956
57c8956
ExclusiveArch:  %{rust_arches}
57c8956
%if %{__cargo_skip_build}
57c8956
BuildArch:      noarch
57c8956
%endif
57c8956
57c8956
BuildRequires:  rust-packaging
57c8956
57c8956
%global _description %{expand:
57c8956
Safe low-level bindings for the zstd compression library.}
57c8956
57c8956
%description %{_description}
57c8956
57c8956
%package        devel
57c8956
Summary:        %{summary}
57c8956
BuildArch:      noarch
57c8956
57c8956
%description    devel %{_description}
57c8956
57c8956
This package contains library source intended for building other packages
57c8956
which use "%{crate}" crate.
57c8956
57c8956
%files          devel
8fd60ad
%license LICENSE
57c8956
%doc Readme.md
57c8956
%{cargo_registry}/%{crate}-%{version_no_tilde}/
57c8956
57c8956
%package     -n %{name}+default-devel
57c8956
Summary:        %{summary}
57c8956
BuildArch:      noarch
57c8956
57c8956
%description -n %{name}+default-devel %{_description}
57c8956
57c8956
This package contains library source intended for building other packages
57c8956
which use "default" feature of "%{crate}" crate.
57c8956
57c8956
%files       -n %{name}+default-devel
57c8956
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
57c8956
57c8956
%package     -n %{name}+experimental-devel
57c8956
Summary:        %{summary}
57c8956
BuildArch:      noarch
57c8956
57c8956
%description -n %{name}+experimental-devel %{_description}
57c8956
57c8956
This package contains library source intended for building other packages
57c8956
which use "experimental" feature of "%{crate}" crate.
57c8956
57c8956
%files       -n %{name}+experimental-devel
57c8956
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
57c8956
57c8956
%package     -n %{name}+legacy-devel
57c8956
Summary:        %{summary}
57c8956
BuildArch:      noarch
57c8956
57c8956
%description -n %{name}+legacy-devel %{_description}
57c8956
57c8956
This package contains library source intended for building other packages
57c8956
which use "legacy" feature of "%{crate}" crate.
57c8956
57c8956
%files       -n %{name}+legacy-devel
57c8956
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
57c8956
57c8956
%package     -n %{name}+std-devel
57c8956
Summary:        %{summary}
57c8956
BuildArch:      noarch
57c8956
57c8956
%description -n %{name}+std-devel %{_description}
57c8956
57c8956
This package contains library source intended for building other packages
57c8956
which use "std" feature of "%{crate}" crate.
57c8956
57c8956
%files       -n %{name}+std-devel
57c8956
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
57c8956
57c8956
%package     -n %{name}+zstdmt-devel
57c8956
Summary:        %{summary}
57c8956
BuildArch:      noarch
57c8956
57c8956
%description -n %{name}+zstdmt-devel %{_description}
57c8956
57c8956
This package contains library source intended for building other packages
57c8956
which use "zstdmt" feature of "%{crate}" crate.
57c8956
57c8956
%files       -n %{name}+zstdmt-devel
57c8956
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
57c8956
57c8956
%prep
57c8956
%autosetup -n %{crate}-%{upstream_version} -p1
57c8956
%cargo_prep
57c8956
57c8956
%generate_buildrequires
57c8956
%cargo_generate_buildrequires
57c8956
57c8956
%build
57c8956
%cargo_build
57c8956
57c8956
%install
57c8956
%cargo_install
57c8956
57c8956
%if %{with check}
57c8956
%check
57c8956
%cargo_test
57c8956
%endif
57c8956
57c8956
%changelog
970664a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-2
970664a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
970664a
f79e72c
* Fri Jun 19 2020 Josh Stone <jistone@redhat.com> - 2.0.5-1
f79e72c
- Update to 2.0.5+zstd.1.4.5
f79e72c
8fd60ad
* Sat Jun 06 2020 Josh Stone <jistone@redhat.com> - 2.0.4-1
8fd60ad
- Update to 2.0.4+zstd.1.4.5
8fd60ad
ff7289d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-2
ff7289d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ff7289d
57c8956
* Mon Dec 16 03:41:27 CET 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.3-1
57c8956
- Initial package