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.
rust-structopt/rust-structopt.spec

88 lines
2.3 KiB

# Generated by rust2rpm
%bcond_without check
%global debug_package %{nil}
%global crate structopt
Name: rust-%{crate}
Version: 0.2.12
Release: 1%{?dist}
Summary: Parse command line argument by defining a struct
# Upstream license specification: Apache-2.0/MIT
License: ASL 2.0 or MIT
URL: https://crates.io/crates/structopt
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
# Initial patched metadata
# * No nightly features
Patch0: structopt-0.2.10-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(clap) >= 2.21.0 with crate(clap) < 3.0.0)
BuildRequires: (crate(structopt-derive) >= 0.2.12 with crate(structopt-derive) < 0.3.0)
%description
%{summary}.
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Parse command line argument by defining a struct.
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
# flatten_twice is marked should_panic, but gets a hard error from clap
%cargo_test -- -- --skip flatten_twice
%endif
%files devel
%license LICENSE-APACHE LICENSE-MIT
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Thu Oct 11 2018 Josh Stone <jistone@redhat.com> - 0.2.12-1
- Update to 0.2.12
* Fri Oct 05 2018 Josh Stone <jistone@redhat.com> - 0.2.11-1
- Update to 0.2.11
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sat Jun 23 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.10-2
- Adopt to new macro
* 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.7-1
- Initial package