Adapt to new packaging

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

@ -1,5 +1,5 @@
# Generated by rust2rpm # Generated by rust2rpm
# Tests are run in infrastructure # * Tests are run in infrastructure
%bcond_with check %bcond_with check
%global debug_package %{nil} %global debug_package %{nil}
@ -7,9 +7,10 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.5.13 Version: 0.5.13
Release: 1%{?dist} Release: 2%{?dist}
Summary: Logging implementation for `log` which is configured via environment variable Summary: Logging implementation for `log` which is configured via environment variable
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0 License: MIT or ASL 2.0
URL: https://crates.io/crates/env_logger URL: https://crates.io/crates/env_logger
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
@ -17,26 +18,56 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(atty/default) >= 0.2.5 with crate(atty/default) < 0.3.0)
BuildRequires: (crate(atty) >= 0.2.5 with crate(atty) < 0.3.0) BuildRequires: (crate(humantime/default) >= 1.1.0 with crate(humantime/default) < 2.0.0)
BuildRequires: (crate(humantime) >= 1.1.0 with crate(humantime) < 2.0.0) BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0)
BuildRequires: ((crate(log) >= 0.4.0 with crate(log) < 0.5.0) with crate(log/std)) BuildRequires: (crate(log/std) >= 0.4.0 with crate(log/std) < 0.5.0)
BuildRequires: (crate(regex) >= 1.0.3 with crate(regex) < 2.0.0) BuildRequires: (crate(regex/default) >= 1.0.3 with crate(regex/default) < 2.0.0)
BuildRequires: (crate(termcolor) >= 1.0.0 with crate(termcolor) < 2.0.0) BuildRequires: (crate(termcolor/default) >= 1.0.0 with crate(termcolor/default) < 2.0.0)
%global _description \
A logging implementation for `log` which is configured via an environment\
variable.
%description %description %{_description}
%{summary}.
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
A logging implementation for `log` which is configured via an environment
variable. This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE-MIT LICENSE-APACHE
%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 This package contains library source intended for building other packages
which use %{crate} from crates.io. which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+regex-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+regex-devel %{_description}
This package contains library source intended for building other packages
which use "regex" feature of "%{crate}" crate.
%files -n %{name}+regex-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -53,12 +84,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Tue Oct 30 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.13-2
- Adapt to new packaging
* Thu Aug 30 2018 Josh Stone <jistone@redhat.com> - 0.5.13-1 * Thu Aug 30 2018 Josh Stone <jistone@redhat.com> - 0.5.13-1
- Update to 0.5.13 - Update to 0.5.13

Loading…
Cancel
Save