Adapt to new packaging

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent ecf0521ee4
commit ad6a26ef9e
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,6 +1,14 @@
--- bytecount-0.3.2/Cargo.toml 1970-01-01T01:00:00+01:00 --- bytecount-0.3.2/Cargo.toml 1970-01-01T01:00:00+01:00
+++ bytecount-0.3.2/Cargo.toml 2018-08-10T14:18:26.466722+02:00 +++ bytecount-0.3.2/Cargo.toml 2018-10-28T02:02:14.813005+01:00
@@ -26,9 +26,6 @@ @@ -19,6 +19,7 @@
categories = ["algorithms", "no-std"]
license = "Apache-2.0/MIT"
repository = "https://github.com/llogiq/bytecount"
+exclude = ["/.travis.yml", "/appveyor.yml"]
[lib]
bench = false
@@ -26,9 +27,6 @@
[[bench]] [[bench]]
name = "bench" name = "bench"
harness = false harness = false
@ -10,7 +18,7 @@
[dev-dependencies.criterion] [dev-dependencies.criterion]
version = "0.2.4" version = "0.2.4"
@@ -39,9 +36,7 @@ @@ -39,9 +37,7 @@
version = "0.4" version = "0.4"
[features] [features]

@ -7,39 +7,58 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.3.2 Version: 0.3.2
Release: 1%{?dist} Release: 2%{?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
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 Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
# Initial patched metadata # Initial patched metadata
# * No simd # * No simd
Patch0: bytecount-0.3.2-fix-metadata.diff # * Exclude CI files, https://github.com/llogiq/bytecount/pull/47
Patch0: bytecount-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(criterion/default) >= 0.2.4 with crate(criterion/default) < 0.3.0)
BuildRequires: (crate(criterion) >= 0.2.4 with crate(criterion) < 0.3.0) BuildRequires: (crate(quickcheck/default) >= 0.6.0 with crate(quickcheck/default) < 0.7.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)
BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0)
%endif %endif
%description %global _description \
%{summary}. Count occurrences of a given byte, or the number of UTF-8 code points,\
in a byte slice, fast.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Count occurrences of a given byte, or the number of UTF-8 code points, in a
byte slice, fast.
This package contains library source intended for building other packages This package contains library source intended for building other packages
which use %{crate} from crates.io. which use "%{crate}" crate.
%files devel
%license LICENSE.Apache2 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
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -56,13 +75,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE.Apache2 LICENSE.MIT
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml
%changelog %changelog
* Sun Oct 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.2-2
- Adapt to new packaging
* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.2-1 * Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.2-1
- Update to 0.3.2 - Update to 0.3.2

Loading…
Cancel
Save