Adapt to new packaging

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

@ -1,5 +1,5 @@
--- encoding_rs-0.8.10/Cargo.toml 1970-01-01T01:00:00+01:00
+++ encoding_rs-0.8.10/Cargo.toml 2018-10-07T11:34:29.893481+02:00
+++ encoding_rs-0.8.10/Cargo.toml 2018-10-28T02:08:19.986694+01:00
@@ -22,6 +22,7 @@
categories = ["text-processing", "encoding", "web-programming", "email"]
license = "MIT/Apache-2.0"

@ -1,5 +1,5 @@
# Generated by rust2rpm
# Tests are run in infrastructure
# * Tests are run in infrastructure
%bcond_with check
%global debug_package %{nil}
@ -7,7 +7,7 @@
Name: rust-%{crate}
Version: 0.8.10
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Gecko-oriented implementation of the Encoding Standard
# Upstream license specification: MIT/Apache-2.0
@ -22,28 +22,92 @@ Patch0: encoding_rs-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(cfg-if) >= 0.1.0 with crate(cfg-if) < 0.2.0)
BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0)
BuildRequires: (crate(cfg-if/default) >= 0.1.0 with crate(cfg-if/default) < 0.2.0)
BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
%if %{with check}
# [dev-dependencies]
BuildRequires: (crate(bincode) >= 0.8.0 with crate(bincode) < 0.9.0)
BuildRequires: (crate(serde_derive) >= 1.0.0 with crate(serde_derive) < 2.0.0)
BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0)
BuildRequires: (crate(bincode/default) >= 0.8.0 with crate(bincode/default) < 0.9.0)
BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0)
BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0)
%endif
%description
%{summary}.
%global _description \
A Gecko-oriented implementation of the Encoding Standard.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
A Gecko-oriented implementation of the Encoding Standard.
%description devel %{_description}
This package contains library source intended for building other packages
which use %{crate} from crates.io.
which use "%{crate}" crate.
%files devel
%license COPYRIGHT LICENSE-MIT LICENSE-APACHE
%doc README.md CONTRIBUTING.md Ideas.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}+less-slow-big5-hanzi-encode-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+less-slow-big5-hanzi-encode-devel %{_description}
This package contains library source intended for building other packages
which use "less-slow-big5-hanzi-encode" feature of "%{crate}" crate.
%files -n %{name}+less-slow-big5-hanzi-encode-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+less-slow-gb-hanzi-encode-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+less-slow-gb-hanzi-encode-devel %{_description}
This package contains library source intended for building other packages
which use "less-slow-gb-hanzi-encode" feature of "%{crate}" crate.
%files -n %{name}+less-slow-gb-hanzi-encode-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+less-slow-kanji-encode-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+less-slow-kanji-encode-devel %{_description}
This package contains library source intended for building other packages
which use "less-slow-kanji-encode" feature of "%{crate}" crate.
%files -n %{name}+less-slow-kanji-encode-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+serde-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde-devel %{_description}
This package contains library source intended for building other packages
which use "serde" feature of "%{crate}" crate.
%files -n %{name}+serde-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
@ -60,12 +124,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license COPYRIGHT LICENSE-MIT LICENSE-APACHE
%doc README.md CONTRIBUTING.md Ideas.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Sun Oct 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.10-2
- Adapt to new packaging
* Sun Oct 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.10-1
- Update to 0.8.10

Loading…
Cancel
Save