Adapt to new packaging

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

@ -1,5 +1,5 @@
--- encoding-index-singlebyte-1.20141219.5/Cargo.toml 2015-04-14T03:31:38+02:00 --- encoding-index-singlebyte-1.20141219.5/Cargo.toml 2015-04-14T03:31:38+02:00
+++ encoding-index-singlebyte-1.20141219.5/Cargo.toml 2017-11-12T11:06:16.368556+01:00 +++ encoding-index-singlebyte-1.20141219.5/Cargo.toml 2018-11-03T14:57:58.240899+01:00
@@ -12,7 +12,6 @@ @@ -12,7 +12,6 @@
name = "encoding_index_singlebyte" name = "encoding_index_singlebyte"
path = "lib.rs" path = "lib.rs"

@ -7,9 +7,10 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 1.20141219.5 Version: 1.20141219.5
Release: 4%{?dist} Release: 5%{?dist}
Summary: Index tables for various single-byte character encodings Summary: Index tables for various single-byte character encodings
# Upstream license specification: CC0-1.0
# https://github.com/lifthrasiir/rust-encoding/issues/111 # https://github.com/lifthrasiir/rust-encoding/issues/111
License: CC0 License: CC0
URL: https://crates.io/crates/encoding-index-singlebyte URL: https://crates.io/crates/encoding-index-singlebyte
@ -17,28 +18,43 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
# Initial patched metadata # Initial patched metadata
# * No paths # * No paths
# * Make dev-dependency as dev one # * Make dev-dependency as dev one
Patch0: encoding-index-singlebyte-1.20141219.5-fix-metadata.diff Patch0: encoding-index-singlebyte-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(encoding_index_tests/default) >= 0.1.4 with crate(encoding_index_tests/default) < 0.2.0)
BuildRequires: (crate(encoding_index_tests) >= 0.1.4 with crate(encoding_index_tests) < 0.2.0)
%endif %endif
%description %global _description \
%{summary}. Index tables for various single-byte character encodings.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Index tables for various single-byte character encodings.
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
%{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
@ -55,10 +71,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Sat Nov 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.20141219.5-5
- Adapt to new packaging
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.20141219.5-4 * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.20141219.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save