diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d1580b4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/structopt-derive-0.1.6.crate diff --git a/rust-structopt-derive.spec b/rust-structopt-derive.spec new file mode 100644 index 0000000..e4e8c36 --- /dev/null +++ b/rust-structopt-derive.spec @@ -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 - 0.1.6-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..30fa570 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (structopt-derive-0.1.6.crate) = f0ff36906eb89c6055b959e8108105d401848c5ddd744036352904cff340d9410db0ba9b60083b5289a2a4dd0aa5830434289da6c7cb8565fa513c03390aa0c8