|
|
|
# Generated by rust2rpm
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
%global crate goblin
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.0.14
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Impish, cross-platform, ELF, Mach-o, and PE binary parsing and loading crate
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://crates.io/crates/goblin
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
# [dependencies]
|
|
|
|
BuildRequires: (crate(log) >= 0.3.8 with crate(log) < 0.4.0)
|
|
|
|
BuildRequires: (crate(plain) >= 0.2.3 with crate(plain) < 0.3.0)
|
|
|
|
BuildRequires: (crate(scroll) >= 0.8.0 with crate(scroll) < 0.9.0)
|
|
|
|
%if %{with check}
|
|
|
|
# [dev-dependencies]
|
|
|
|
BuildRequires: (crate(env_logger) >= 0.4.3 with crate(env_logger) < 0.5.0)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
An impish, cross-platform, ELF, Mach-o, and PE binary parsing and loading
|
|
|
|
crate.
|
|
|
|
|
|
|
|
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
|
|
|
|
%doc CHANGELOG.md README.md
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.14-1
|
|
|
|
- Update to 0.0.14
|
|
|
|
|
|
|
|
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.13-2
|
|
|
|
- Rebuild for rust-packaging v5
|
|
|
|
|
|
|
|
* Mon Jan 01 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.13-1
|
|
|
|
- Update to 0.0.13
|
|
|
|
|
|
|
|
* Mon Dec 04 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.12-2
|
|
|
|
- Fix tests
|
|
|
|
|
|
|
|
* Sun Dec 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.12-1
|
|
|
|
- Initial package
|