You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.5 KiB
66 lines
1.5 KiB
# Generated by rust2rpm
|
|
%bcond_without check
|
|
%global debug_package %{nil}
|
|
|
|
%global crate cexpr
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.3.0
|
|
Release: 1%{?dist}
|
|
Summary: C expression parser and evaluator
|
|
|
|
# Upstream license specification: Apache-2.0/MIT
|
|
License: ASL 2.0 or MIT
|
|
URL: https://crates.io/crates/cexpr
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
# Initial patched metadata
|
|
# * Bump clang-sys to 0.24 and fix tests
|
|
Patch0: cexpr-fix-metadata.diff
|
|
Patch0001: 0001-bump-clang-sys-to-0.24.patch
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
# [dependencies]
|
|
BuildRequires: ((crate(nom) >= 4.0.0 with crate(nom) < 5.0.0) with crate(nom/verbose-errors))
|
|
%if %{with check}
|
|
# [dev-dependencies]
|
|
BuildRequires: (crate(clang-sys) >= 0.24.0 with crate(clang-sys) < 0.25.0)
|
|
%endif
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%package devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description devel
|
|
C expression parser and evaluator.
|
|
|
|
This package contains library source intended for building other packages
|
|
which use %{crate} from crates.io.
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
%cargo_prep
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%files devel
|
|
%license LICENSE-MIT LICENSE-APACHE
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
%changelog
|
|
* Thu Oct 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.0-1
|
|
- Initial package
|