Adapt to new packaging

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

@ -6,7 +6,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.3.3 Version: 0.3.3
Release: 1%{?dist} Release: 2%{?dist}
Summary: C expression parser and evaluator Summary: C expression parser and evaluator
# Upstream license specification: Apache-2.0/MIT # Upstream license specification: Apache-2.0/MIT
@ -17,25 +17,41 @@ 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(nom/default) >= 4.0.0 with crate(nom/default) < 5.0.0)
BuildRequires: ((crate(nom) >= 4.0.0 with crate(nom) < 5.0.0) with crate(nom/verbose-errors)) BuildRequires: (crate(nom/verbose-errors) >= 4.0.0 with crate(nom/verbose-errors) < 5.0.0)
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(clang-sys/default) >= 0.13.0 with crate(clang-sys/default) < 0.27.0)
BuildRequires: (crate(clang-sys) >= 0.13.0 with crate(clang-sys) < 0.27.0)
%endif %endif
%description %global _description \
%{summary}. A C expression parser and evaluator.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
C expression parser and evaluator.
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 LICENSE-MIT LICENSE-APACHE
%{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
@ -52,11 +68,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Sun Nov 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.3-2
- Adapt to new packaging
* Mon Oct 22 2018 Josh Stone <jistone@redhat.com> - 0.3.3-1 * Mon Oct 22 2018 Josh Stone <jistone@redhat.com> - 0.3.3-1
- Update to 0.3.3 - Update to 0.3.3

Loading…
Cancel
Save