|
|
|
# Generated by rust2rpm
|
|
|
|
# Tests are run in infrastructure
|
|
|
|
%bcond_with check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
%global crate memchr
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 2.1.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Safe interface to memchr
|
|
|
|
|
|
|
|
# Upstream license specification: Unlicense/MIT
|
|
|
|
License: Unlicense or MIT
|
|
|
|
URL: https://crates.io/crates/memchr
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
# [dependencies]
|
|
|
|
BuildRequires: (crate(cfg-if) >= 0.1.5 with crate(cfg-if) < 0.2.0)
|
|
|
|
BuildRequires: (crate(libc) >= 0.2.18 with crate(libc) < 0.3.0)
|
|
|
|
# [build-dependencies]
|
|
|
|
BuildRequires: (crate(version_check) >= 0.1.4 with crate(version_check) < 0.2.0)
|
|
|
|
%if %{with check}
|
|
|
|
# [dev-dependencies]
|
|
|
|
BuildRequires: (crate(quickcheck) >= 0.7.0 with crate(quickcheck) < 0.8.0)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Safe interface to memchr.
|
|
|
|
|
|
|
|
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 UNLICENSE LICENSE-MIT COPYING
|
|
|
|
%doc README.md
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
%exclude %{cargo_registry}/%{crate}-%{version}/{Makefile,appveyor.yml,ctags.rust,session.vim}
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Tue Sep 18 2018 Josh Stone <jistone@redhat.com> - 2.1.0-1
|
|
|
|
- Update to 2.1.0
|
|
|
|
|
|
|
|
* Thu Aug 30 2018 Josh Stone <jistone@redhat.com> - 2.0.2-1
|
|
|
|
- Update to 2.0.2
|
|
|
|
|
|
|
|
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.1-6
|
|
|
|
- Rebuild to trigger tests
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.1-3
|
|
|
|
- Rebuild for rust-packaging v5
|
|
|
|
|
|
|
|
* Mon Jan 01 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.1-2
|
|
|
|
- Bump quickcheck to 0.6
|
|
|
|
|
|
|
|
* Thu Nov 30 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.1-1
|
|
|
|
- Update to 2.0.1
|
|
|
|
|
|
|
|
* Wed Nov 29 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.0-2
|
|
|
|
- Bump quickcheck to 0.5
|
|
|
|
- Enable tests
|
|
|
|
|
|
|
|
* Mon Nov 06 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.0-1
|
|
|
|
- Update to 2.0.0
|
|
|
|
|
|
|
|
* Wed Jun 14 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-5
|
|
|
|
- Port to use rust-packaging
|
|
|
|
|
|
|
|
* Fri Feb 24 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-4
|
|
|
|
- Use rich dependencies
|
|
|
|
|
|
|
|
* Sat Feb 18 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-3
|
|
|
|
- Use awk to trim dev-dependencies and get them back before installing
|
|
|
|
|
|
|
|
* Sat Feb 18 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-2
|
|
|
|
- Use patch file for dropping dependencies
|
|
|
|
|
|
|
|
* Sat Feb 18 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-1
|
|
|
|
- Initial package
|