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-crc32fast/rust-crc32fast.spec

98 lines
2.6 KiB

6 years ago
# Generated by rust2rpm
# * Tests are run in infrastructure
%bcond_with check
6 years ago
%global debug_package %{nil}
%global crate crc32fast
Name: rust-%{crate}
Version: 1.2.0
Release: 1%{?dist}
6 years ago
Summary: Fast, SIMD-accelerated CRC32 (IEEE) checksum computation
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/crc32fast
Source: %{crates_source}
6 years ago
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: (crate(cfg-if/default) >= 0.1.0 with crate(cfg-if/default) < 0.2.0)
%if %{with check}
BuildRequires: (crate(bencher/default) >= 0.1.0 with crate(bencher/default) < 0.2.0)
BuildRequires: (crate(quickcheck) >= 0.6.0 with crate(quickcheck) < 0.7.0)
BuildRequires: (crate(rand/default) >= 0.4.0 with crate(rand/default) < 0.5.0)
%endif
%global _description \
Fast, SIMD-accelerated CRC32 (IEEE) checksum computation.
%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-APACHE LICENSE-MIT
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%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}/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}/Cargo.toml
6 years ago
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
6 years ago
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Tue Mar 05 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.0-1
- Update to 1.2.0
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Dec 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.2-2
- Run tests in infrastructure
6 years ago
* Mon Dec 03 2018 Josh Stone <jistone@redhat.com> - 1.1.2-1
- Initial package