Adapt to new packaging

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

@ -1,5 +1,5 @@
--- grep-cli-0.1.1/Cargo.toml 1970-01-01T01:00:00+01:00
+++ grep-cli-0.1.1/Cargo.toml 2018-09-08T14:18:08.427586+02:00
+++ grep-cli-0.1.1/Cargo.toml 2018-10-28T02:54:00.778015+02:00
@@ -41,5 +41,3 @@
[dependencies.termcolor]

@ -7,7 +7,7 @@
Name: rust-%{crate}
Version: 0.1.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Utilities for search oriented command line applications
# Upstream license specification: Unlicense/MIT
@ -21,27 +21,44 @@ Patch0: grep-cli-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(atty) >= 0.2.11 with crate(atty) < 0.3.0)
BuildRequires: (crate(globset) >= 0.4.2 with crate(globset) < 0.5.0)
BuildRequires: (crate(lazy_static) >= 1.1.0 with crate(lazy_static) < 2.0.0)
BuildRequires: (crate(log) >= 0.4.5 with crate(log) < 0.5.0)
BuildRequires: (crate(regex) >= 1.0.5 with crate(regex) < 2.0.0)
BuildRequires: (crate(same-file) >= 1.0.3 with crate(same-file) < 2.0.0)
BuildRequires: (crate(termcolor) >= 1.0.3 with crate(termcolor) < 2.0.0)
%description
%{summary}.
BuildRequires: (crate(atty/default) >= 0.2.11 with crate(atty/default) < 0.3.0)
BuildRequires: (crate(globset/default) >= 0.4.2 with crate(globset/default) < 0.5.0)
BuildRequires: (crate(lazy_static/default) >= 1.1.0 with crate(lazy_static/default) < 2.0.0)
BuildRequires: (crate(log/default) >= 0.4.5 with crate(log/default) < 0.5.0)
BuildRequires: (crate(regex/default) >= 1.0.5 with crate(regex/default) < 2.0.0)
BuildRequires: (crate(same-file/default) >= 1.0.3 with crate(same-file/default) < 2.0.0)
BuildRequires: (crate(termcolor/default) >= 1.0.3 with crate(termcolor/default) < 2.0.0)
%global _description \
Utilities for search oriented command line applications.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Utilities for search oriented command line applications.
%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 UNLICENSE LICENSE-MIT
%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
@ -58,12 +75,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license UNLICENSE LICENSE-MIT
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Sun Oct 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.1-3
- Adapt to new packaging
* Sun Oct 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.1-2
- Run tests in infrastructure

Loading…
Cancel
Save