Adapt to new packaging

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

@ -1,5 +1,5 @@
--- ansi_term-0.11.0/Cargo.toml 1969-12-31T16:00:00-08:00
+++ ansi_term-0.11.0/Cargo.toml 2018-03-26T13:36:58.050589-07:00
--- ansi_term-0.11.0/Cargo.toml 1970-01-01T01:00:00+01:00
+++ ansi_term-0.11.0/Cargo.toml 2018-10-27T11:57:10.039955+02:00
@@ -22,6 +22,3 @@
[lib]

@ -7,7 +7,7 @@
Name: rust-%{crate}
Version: 0.11.0
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Library for ANSI terminal colours and styles (bold, underline)
License: MIT
@ -15,24 +15,42 @@ URL: https://crates.io/crates/ansi_term
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
# Initial patched metadata
# * No winapi
Patch0: ansi_term-0.11.0-fix-metadata.diff
Patch0: ansi_term-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%description
%{summary}.
%global _description \
Library for ANSI terminal colours and styles (bold, underline).
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Library for ANSI terminal colours and styles (bold, underline).
%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 LICENCE
%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
%autosetup -n %{crate}-%{version} -p1
@ -49,12 +67,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license LICENCE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Sat Oct 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.0-4
- Adapt to new packaging
* Sun Oct 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.0-3
- Run tests in infrastructure

Loading…
Cancel
Save