From 9ea13b52cc3a824c33149639b495dc80cd16f7b6 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 3 Nov 2018 14:56:25 +0100 Subject: [PATCH] Adapt to new packaging Signed-off-by: Igor Gnatenko --- ...=> encoding-index-korean-fix-metadata.diff | 2 +- rust-encoding-index-korean.spec | 40 +++++++++++++------ 2 files changed, 29 insertions(+), 13 deletions(-) rename encoding-index-korean-1.20141219.5-fix-metadata.diff => encoding-index-korean-fix-metadata.diff (79%) diff --git a/encoding-index-korean-1.20141219.5-fix-metadata.diff b/encoding-index-korean-fix-metadata.diff similarity index 79% rename from encoding-index-korean-1.20141219.5-fix-metadata.diff rename to encoding-index-korean-fix-metadata.diff index c5d9340..fcfc22a 100644 --- a/encoding-index-korean-1.20141219.5-fix-metadata.diff +++ b/encoding-index-korean-fix-metadata.diff @@ -1,5 +1,5 @@ --- encoding-index-korean-1.20141219.5/Cargo.toml 2015-04-14T03:31:07+02:00 -+++ encoding-index-korean-1.20141219.5/Cargo.toml 2017-11-12T11:00:43.125164+01:00 ++++ encoding-index-korean-1.20141219.5/Cargo.toml 2018-11-03T14:55:49.015692+01:00 @@ -12,7 +12,6 @@ name = "encoding_index_korean" path = "lib.rs" diff --git a/rust-encoding-index-korean.spec b/rust-encoding-index-korean.spec index d956e87..02e8d96 100644 --- a/rust-encoding-index-korean.spec +++ b/rust-encoding-index-korean.spec @@ -7,9 +7,10 @@ Name: rust-%{crate} Version: 1.20141219.5 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Index tables for Korean character encodings +# Upstream license specification: CC0-1.0 # https://github.com/lifthrasiir/rust-encoding/issues/111 License: CC0 URL: https://crates.io/crates/encoding-index-korean @@ -17,28 +18,43 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ # Initial patched metadata # * No paths # * Make dev-dependency as dev one -Patch0: encoding-index-korean-1.20141219.5-fix-metadata.diff +Patch0: encoding-index-korean-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(encoding_index_tests) >= 0.1.4 with crate(encoding_index_tests) < 0.2.0) +BuildRequires: (crate(encoding_index_tests/default) >= 0.1.4 with crate(encoding_index_tests/default) < 0.2.0) %endif -%description -%{summary}. +%global _description \ +Index tables for Korean character encodings. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Index tables for Korean character encodings. +%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 +%{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 %autosetup -n %{crate}-%{version} -p1 @@ -55,10 +71,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Nov 03 2018 Igor Gnatenko - 1.20141219.5-5 +- Adapt to new packaging + * Sat Jul 14 2018 Fedora Release Engineering - 1.20141219.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild