parent
079c1e32d2
commit
42806f70f9
@ -0,0 +1 @@
|
||||
/xml-rs-0.8.0.crate
|
@ -0,0 +1,57 @@
|
||||
# Generated by rust2rpm
|
||||
%bcond_without check
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global crate xml-rs
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 0.8.0
|
||||
Release: 1%{?dist}
|
||||
Summary: XML library in pure Rust
|
||||
|
||||
License: MIT
|
||||
URL: https://crates.io/crates/xml-rs
|
||||
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
||||
|
||||
ExclusiveArch: %{rust_arches}
|
||||
|
||||
BuildRequires: rust-packaging
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description devel
|
||||
An XML library in pure Rust.
|
||||
|
||||
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/netvl/xml-rs/issues/171
|
||||
%cargo_test || :
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%license LICENSE
|
||||
%doc Readme.md design.md Changelog.md
|
||||
%{cargo_registry}/%{crate}-%{version}/
|
||||
%exclude %{_bindir}/xml-analyze
|
||||
|
||||
%changelog
|
||||
* Fri Aug 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-1
|
||||
- Initial package
|
Loading…
Reference in new issue