|
|
@ -6,31 +6,30 @@
|
|
|
|
%global crate bytecount
|
|
|
|
%global crate bytecount
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.3.2
|
|
|
|
Version: 0.5.0
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Count occurrences of a byte, or the UTF-8 code points, in a byte slice, fast
|
|
|
|
Summary: Count occurrences of a byte, or the UTF-8 code points, in a byte slice, fast
|
|
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: Apache-2.0/MIT
|
|
|
|
# Upstream license specification: Apache-2.0/MIT
|
|
|
|
License: ASL 2.0 or MIT
|
|
|
|
License: ASL 2.0 or MIT
|
|
|
|
URL: https://crates.io/crates/bytecount
|
|
|
|
URL: https://crates.io/crates/bytecount
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Initial patched metadata
|
|
|
|
# Initial patched metadata
|
|
|
|
# * No simd
|
|
|
|
# * No simd
|
|
|
|
# * Exclude CI files, https://github.com/llogiq/bytecount/pull/47
|
|
|
|
|
|
|
|
Patch0: bytecount-fix-metadata.diff
|
|
|
|
Patch0: bytecount-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
BuildRequires: (crate(criterion/default) >= 0.2.4 with crate(criterion/default) < 0.3.0)
|
|
|
|
BuildRequires: (crate(criterion) >= 0.2.7 with crate(criterion) < 0.3.0)
|
|
|
|
BuildRequires: (crate(quickcheck/default) >= 0.6.0 with crate(quickcheck/default) < 0.7.0)
|
|
|
|
BuildRequires: (crate(quickcheck/default) >= 0.8.0 with crate(quickcheck/default) < 0.9.0)
|
|
|
|
BuildRequires: (crate(rand/default) >= 0.4.0 with crate(rand/default) < 0.5.0)
|
|
|
|
BuildRequires: (crate(rand/default) >= 0.6.0 with crate(rand/default) < 0.7.0)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
%global _description \
|
|
|
|
Count occurrences of a given byte, or the number of UTF-8 code points,\
|
|
|
|
Count occurrences of a given byte, or the number of UTF-8 code points, in a\
|
|
|
|
in a byte slice, fast.
|
|
|
|
byte slice, fast.
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
@ -60,8 +59,32 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+html_report-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+html_report-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
|
|
|
which use "html_report" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+html_report-devel
|
|
|
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+runtime-dispatch-simd-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+runtime-dispatch-simd-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
|
|
|
which use "runtime-dispatch-simd" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+runtime-dispatch-simd-devel
|
|
|
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -76,6 +99,9 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Feb 10 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.0-1
|
|
|
|
|
|
|
|
- Update to 0.5.0
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-3
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|