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.
81 lines
2.2 KiB
81 lines
2.2 KiB
# Generated by rust2rpm
|
|
%bcond_without check
|
|
%global debug_package %{nil}
|
|
|
|
%global crate nom
|
|
|
|
Name: rust-%{crate}
|
|
Version: 3.2.1
|
|
Release: 5%{?dist}
|
|
Summary: Byte-oriented, zero-copy, parser combinators library
|
|
|
|
License: MIT
|
|
URL: https://crates.io/crates/nom
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
# Initial patched metadata
|
|
# * Bump memchr to 2, https://github.com/Geal/nom/commit/38830cb40888ca10975e6446e133a830fe8f9604
|
|
# * compiler_error is nightly
|
|
# * Bump lazy_static to 1, https://github.com/Geal/nom/pull/631
|
|
# * Bump regex to 1, https://github.com/Geal/nom/commit/5b55b60b7e69391c8a9eed704c4aec9c197cdf8b
|
|
Patch0: nom-3.2.1-fix-metadata.diff
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
# [dependencies]
|
|
BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0)
|
|
BuildRequires: (crate(memchr) >= 2.0.0 with crate(memchr) < 3.0.0)
|
|
BuildRequires: (crate(regex) >= 1.0.0 with crate(regex) < 2.0.0)
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%package devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description devel
|
|
A byte-oriented, zero-copy, parser combinators library.
|
|
|
|
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
|
|
# https://github.com/Geal/nom/issues/609
|
|
sed -i -e "/fn seeking_consumer/i #[ignore]" src/stream.rs
|
|
rm -vf tests/mp4.rs
|
|
%cargo_test
|
|
%endif
|
|
|
|
%files devel
|
|
%license LICENSE
|
|
%doc CHANGELOG.md
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
%changelog
|
|
* Thu Jun 14 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.2.1-5
|
|
- Bump regex to 1
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.2.1-3
|
|
- Rebuild for rust-packaging v5
|
|
|
|
* Thu Nov 30 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.2.1-2
|
|
- Bump lazy_static to 1
|
|
|
|
* Sat Nov 18 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.2.1-1
|
|
- Initial package
|