Blame rust-url.spec

65bd677
# Generated by rust2rpm
65bd677
%bcond_without check
65bd677
%global debug_package %{nil}
65bd677
65bd677
%global crate url
65bd677
65bd677
Name:           rust-%{crate}
b594937
Version:        1.7.0
e7a16b8
Release:        2%{?dist}
65bd677
Summary:        URL library for Rust, based on the WHATWG URL Standard
65bd677
65bd677
License:        MIT or ASL 2.0
65bd677
URL:            https://crates.io/crates/url
65bd677
Source0:        https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
e7a16b8
# Initial patched metadata
e7a16b8
# * Bump rustc-test to 0.3, https://github.com/servo/rust-url/commit/9d500e76a0e1644c93b3869588f979e4440e74d6
e7a16b8
Patch0:         url-1.7.0-fix-metadata.diff
e7a16b8
# Make it work with new rustc-test
e7a16b8
Patch1:         0001-Update-to-rustc_test-0.3-unbreak-tests-on-nightly-20.patch
65bd677
65bd677
ExclusiveArch:  %{rust_arches}
65bd677
65bd677
BuildRequires:  rust-packaging
65bd677
# [dependencies]
65bd677
BuildRequires:  (crate(encoding) >= 0.2.0 with crate(encoding) < 0.3.0)
65bd677
BuildRequires:  (crate(heapsize) >= 0.4.1 with crate(heapsize) < 0.5.0)
65bd677
BuildRequires:  (crate(idna) >= 0.1.0 with crate(idna) < 0.2.0)
65bd677
BuildRequires:  (crate(matches) >= 0.1.0 with crate(matches) < 0.2.0)
65bd677
BuildRequires:  (crate(percent-encoding) >= 1.0.0 with crate(percent-encoding) < 2.0.0)
65bd677
BuildRequires:  (crate(rustc-serialize) >= 0.3.0 with crate(rustc-serialize) < 0.4.0)
65bd677
BuildRequires:  (crate(serde) >= 0.6.1 with crate(serde) < 0.9.0)
65bd677
%if %{with check}
65bd677
# [dev-dependencies]
65bd677
BuildRequires:  (crate(rustc-serialize) >= 0.3.0 with crate(rustc-serialize) < 0.4.0)
e7a16b8
BuildRequires:  (crate(rustc-test) >= 0.3.0 with crate(rustc-test) < 0.4.0)
65bd677
BuildRequires:  (crate(serde_json) >= 0.6.1 with crate(serde_json) < 0.9.0)
65bd677
%endif
65bd677
65bd677
%description
65bd677
%{summary}.
65bd677
65bd677
%package        devel
65bd677
Summary:        %{summary}
65bd677
BuildArch:      noarch
65bd677
65bd677
%description    devel
65bd677
URL library for Rust, based on the WHATWG URL Standard.
65bd677
65bd677
This package contains library source intended for building other packages
65bd677
which use %{crate} from crates.io.
65bd677
65bd677
%prep
65bd677
%autosetup -n %{crate}-%{version} -p1
65bd677
%cargo_prep
65bd677
65bd677
%build
65bd677
%cargo_build
65bd677
65bd677
%install
65bd677
%cargo_install
65bd677
65bd677
%if %{with check}
65bd677
%check
b594937
# https://github.com/servo/rust-url/issues/437
b594937
%cargo_test || :
65bd677
%endif
65bd677
65bd677
%files          devel
65bd677
%license LICENSE-MIT LICENSE-APACHE
65bd677
%doc README.md UPGRADING.md
65bd677
%{cargo_registry}/%{crate}-%{version}/
b594937
%exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,docs}
65bd677
65bd677
%changelog
e7a16b8
* Tue Mar 13 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.7.0-2
e7a16b8
- Bump rustc-test to 0.3
e7a16b8
b594937
* Wed Feb 21 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.7.0-1
b594937
- Update to 1.7.0
b594937
54dff20
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-3
54dff20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
54dff20
e564af5
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.6.0-2
e564af5
- Rebuild for rust-packaging v5
e564af5
65bd677
* Fri Nov 10 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.6.0-1
65bd677
- Initial package