|
|
|
# Generated by rust2rpm
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
%global crate structopt-derive
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.2.10
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Parse command line argument by defining a struct, derive crate
|
|
|
|
|
|
|
|
License: ASL 2.0 or MIT
|
|
|
|
URL: https://crates.io/crates/structopt-derive
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
# [dependencies]
|
|
|
|
BuildRequires: (crate(proc-macro2) >= 0.4.0 with crate(proc-macro2) < 0.5.0)
|
|
|
|
BuildRequires: (crate(quote) >= 0.6.0 with crate(quote) < 0.7.0)
|
|
|
|
BuildRequires: (crate(syn) >= 0.14.0 with crate(syn) < 0.15.0)
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Parse command line argument by defining a struct, derive crate.
|
|
|
|
|
|
|
|
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 LICENSE-APACHE LICENSE-MIT
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Thu Jun 21 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.10-1
|
|
|
|
- Update to 0.2.10
|
|
|
|
|
|
|
|
* Wed May 02 2018 Josh Stone <jistone@redhat.com> - 0.2.8-1
|
|
|
|
- Update to 0.2.8
|
|
|
|
|
|
|
|
* Tue Apr 17 2018 Josh Stone <jistone@redhat.com> - 0.2.7-1
|
|
|
|
- Update to 0.2.7
|
|
|
|
|
|
|
|
* Thu Mar 08 2018 Josh Stone <jistone@redhat.com> - 0.2.5-1
|
|
|
|
- Update to 0.2.5
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.6-1
|
|
|
|
- Initial package
|