Blame rust-yaml-rust.spec

6446cfe
# Generated by rust2rpm
6446cfe
%bcond_without check
6446cfe
%global debug_package %{nil}
6446cfe
6446cfe
%global crate yaml-rust
6446cfe
6446cfe
Name:           rust-%{crate}
847cacf
Version:        0.4.0
83d1dca
Release:        3%{?dist}
6446cfe
Summary:        YAML 1.2 parser for rust
6446cfe
6446cfe
License:        MIT or ASL 2.0
6446cfe
URL:            https://crates.io/crates/yaml-rust
6446cfe
Source0:        https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
d61b9e5
# Initial patched metadata
83d1dca
# * Bump quickcheck to 0.6, https://github.com/chyh1990/yaml-rust/pull/95
d61b9e5
Patch0:         yaml-rust-0.4.0-fix-metadata.diff
6446cfe
6446cfe
ExclusiveArch:  %{rust_arches}
6446cfe
6446cfe
BuildRequires:  rust-packaging
6446cfe
# [dependencies]
6446cfe
BuildRequires:  (crate(linked-hash-map) >= 0.0.9 with crate(linked-hash-map) < 0.6.0)
847cacf
%if %{with check}
847cacf
# [dev-dependencies]
83d1dca
BuildRequires:  (crate(quickcheck) >= 0.6.0 with crate(quickcheck) < 0.7.0)
847cacf
%endif
6446cfe
6446cfe
%description
6446cfe
%{summary}.
6446cfe
6446cfe
%package        devel
6446cfe
Summary:        %{summary}
6446cfe
BuildArch:      noarch
6446cfe
6446cfe
%description    devel
6446cfe
The missing YAML 1.2 parser for rust.
6446cfe
6446cfe
This package contains library source intended for building other packages
6446cfe
which use %{crate} from crates.io.
6446cfe
6446cfe
%prep
6446cfe
%autosetup -n %{crate}-%{version} -p1
6446cfe
# no need to generate dependencies
6446cfe
chmod -x tests/specs/cpp2rust.rb
6446cfe
%cargo_prep
6446cfe
6446cfe
%build
6446cfe
%cargo_build
6446cfe
6446cfe
%install
6446cfe
%cargo_install
6446cfe
6446cfe
%if %{with check}
6446cfe
%check
6446cfe
%cargo_test
6446cfe
%endif
6446cfe
6446cfe
%files          devel
6446cfe
%license LICENSE-MIT LICENSE-APACHE
6446cfe
%doc README.md
6446cfe
%{cargo_registry}/%{crate}-%{version}/
6446cfe
%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml
6446cfe
6446cfe
%changelog
83d1dca
* Mon Jan 01 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.0-3
83d1dca
- Bump quickcheck to 0.6
83d1dca
d61b9e5
* Sat Dec 02 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.0-2
d61b9e5
- Bump quickcheck to 0.5
d61b9e5
847cacf
* Fri Nov 24 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.0-1
847cacf
- Update to 0.4.0
847cacf
6446cfe
* Thu Nov 09 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.5-3
6446cfe
- Exclude unneeded files
6446cfe
6446cfe
* Wed Jun 14 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.5-2
6446cfe
- Port to use rust-packaging
6446cfe
6446cfe
* Sat Feb 25 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.5-1
6446cfe
- Initial package