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 1970-01-01T01:00:00+01:00
+++ ansi_term-0.11.0/Cargo.toml 2018-03-26T13:36:58.050589-07:00 +++ ansi_term-0.11.0/Cargo.toml 2018-10-27T11:57:10.039955+02:00
@@ -22,6 +22,3 @@ @@ -22,6 +22,3 @@
[lib] [lib]

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

Loading…
Cancel
Save