|
|
@ -1,12 +1,13 @@
|
|
|
|
# Generated by rust2rpm
|
|
|
|
# Generated by rust2rpm
|
|
|
|
%bcond_without check
|
|
|
|
# * Tests are run in infrastructure
|
|
|
|
|
|
|
|
%bcond_with check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate plist
|
|
|
|
%global crate plist
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.3.0
|
|
|
|
Version: 0.3.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: Rusty plist parser
|
|
|
|
Summary: Rusty plist parser
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
@ -21,29 +22,57 @@ Patch0001: 0001-Update-xml-rs-to-0.8.0-reimplement-plist-prologue.patch
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
# [dependencies]
|
|
|
|
BuildRequires: (crate(base64/default) >= 0.9.0 with crate(base64/default) < 0.10.0)
|
|
|
|
BuildRequires: (crate(base64) >= 0.9.0 with crate(base64) < 0.10.0)
|
|
|
|
BuildRequires: (crate(byteorder/default) >= 1.1.0 with crate(byteorder/default) < 2.0.0)
|
|
|
|
BuildRequires: (crate(byteorder) >= 1.1.0 with crate(byteorder) < 2.0.0)
|
|
|
|
BuildRequires: (crate(humantime/default) >= 1.1.1 with crate(humantime/default) < 2.0.0)
|
|
|
|
BuildRequires: (crate(humantime) >= 1.1.1 with crate(humantime) < 2.0.0)
|
|
|
|
BuildRequires: (crate(serde/default) >= 1.0.2 with crate(serde/default) < 2.0.0)
|
|
|
|
BuildRequires: (crate(serde) >= 1.0.2 with crate(serde) < 2.0.0)
|
|
|
|
BuildRequires: (crate(xml-rs/default) >= 0.8.0 with crate(xml-rs/default) < 0.9.0)
|
|
|
|
BuildRequires: (crate(xml-rs) >= 0.8.0 with crate(xml-rs) < 0.9.0)
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
# [dev-dependencies]
|
|
|
|
BuildRequires: (crate(serde_derive/default) >= 1.0.2 with crate(serde_derive/default) < 2.0.0)
|
|
|
|
BuildRequires: (crate(serde_derive) >= 1.0.2 with crate(serde_derive) < 2.0.0)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%global _description \
|
|
|
|
%{summary}.
|
|
|
|
A rusty plist parser. Supports Serde serialization.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel %{_description}
|
|
|
|
A rusty plist parser. Supports Serde serialization.
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
|
|
|
%license LICENCE
|
|
|
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
which use %{crate} from crates.io.
|
|
|
|
which use "default" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+serde-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+serde-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
|
|
|
which use "serde" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+serde-devel
|
|
|
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
@ -60,11 +89,9 @@ which use %{crate} from crates.io.
|
|
|
|
%cargo_test
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
|
|
|
%license LICENCE
|
|
|
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sat Nov 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.0-2
|
|
|
|
|
|
|
|
- Adapt to new packaging
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.0-1
|
|
|
|
* Mon Sep 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.0-1
|
|
|
|
- Initial package
|
|
|
|
- Initial package
|
|
|
|