You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.8 KiB
71 lines
1.8 KiB
# Generated by rust2rpm
|
|
%bcond_without check
|
|
%global debug_package %{nil}
|
|
|
|
%global crate plist
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.3.0
|
|
Release: 1%{?dist}
|
|
Summary: Rusty plist parser
|
|
|
|
License: MIT
|
|
URL: https://crates.io/crates/plist
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
# Initial patched metadata
|
|
# * Bump xml-rs to 0.8.0, https://github.com/ebarnard/rust-plist/commit/45ab6d492c1a031485962e17d2af932d8af069d8
|
|
Patch0: plist-fix-metadata.diff
|
|
# Make it work with new xml-rs
|
|
Patch0001: 0001-Update-xml-rs-to-0.8.0-reimplement-plist-prologue.patch
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
# [dependencies]
|
|
BuildRequires: (crate(base64) >= 0.9.0 with crate(base64) < 0.10.0)
|
|
BuildRequires: (crate(byteorder) >= 1.1.0 with crate(byteorder) < 2.0.0)
|
|
BuildRequires: (crate(humantime) >= 1.1.1 with crate(humantime) < 2.0.0)
|
|
BuildRequires: (crate(serde) >= 1.0.2 with crate(serde) < 2.0.0)
|
|
BuildRequires: (crate(xml-rs) >= 0.8.0 with crate(xml-rs) < 0.9.0)
|
|
%if %{with check}
|
|
# [dev-dependencies]
|
|
BuildRequires: (crate(serde_derive) >= 1.0.2 with crate(serde_derive) < 2.0.0)
|
|
%endif
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%package devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description devel
|
|
A rusty plist parser. Supports Serde serialization.
|
|
|
|
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 LICENCE
|
|
%doc README.md
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
%changelog
|
|
* Mon Sep 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.0-1
|
|
- Initial package
|