parent
7bb196669a
commit
76ba27d9b4
@ -0,0 +1 @@
|
|||||||
|
/structopt-derive-0.1.6.crate
|
@ -0,0 +1,57 @@
|
|||||||
|
# Generated by rust2rpm
|
||||||
|
%bcond_without check
|
||||||
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
%global crate structopt-derive
|
||||||
|
|
||||||
|
Name: rust-%{crate}
|
||||||
|
Version: 0.1.6
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Parse command line argument by defining a struct, derive crate
|
||||||
|
|
||||||
|
# https://github.com/TeXitoi/structopt/issues/61
|
||||||
|
License: WTFPL
|
||||||
|
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(quote) >= 0.3.12 with crate(quote) < 0.4.0)
|
||||||
|
BuildRequires: (crate(syn) >= 0.11.4 with crate(syn) < 0.12.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
|
||||||
|
%{cargo_registry}/%{crate}-%{version}/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.6-1
|
||||||
|
- Initial package
|
Loading…
Reference in new issue