Initial import

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-02-24 14:24:52 +01:00
parent a4852dc026
commit c5c68d84ca
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
3 changed files with 62 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/rpick-0.0.0.crate

60
rust-rpick.spec Normal file
View File

@ -0,0 +1,60 @@
# Generated by rust2rpm
%bcond_without check
%global crate rpick
Name: rust-%{crate}
Version: 0.0.0
Release: 1%{?dist}
Summary: Helps you pick items from a list by various algorithms
# Upstream license specification: GPL-3.0
License: GPLv3
URL: https://crates.io/crates/rpick
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: (crate(dirs/default) >= 1.0.0 with crate(dirs/default) < 2.0.0)
BuildRequires: (crate(rand/default) >= 0.6.0 with crate(rand/default) < 0.7.0)
BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
BuildRequires: (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0)
BuildRequires: (crate(serde_yaml/default) >= 0.8.0 with crate(serde_yaml/default) < 0.9.0)
BuildRequires: (crate(structopt/default) >= 0.2.0 with crate(structopt/default) < 0.3.0)
%global _description \
Helps you pick items from a list by various algorithms. Example uses: pick a\
restaurant you haven't been to in a while, or an album to listen to.
%description %{_description}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate}
%{summary}.
%files -n %{crate}
%license LICENSE
%doc README.md
%{_bindir}/rpick
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Fri Feb 22 2019 Randy Barlow <randy@electronsweatshop.com> - 0.0.0-1
- Initial package

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (rpick-0.0.0.crate) = e795bd350c8e4f17089e1c7c681832566e0e76d0f88888d2fae538f4dcb1e40d25651c1fb823ce44a439eba1a278cac9119f05c9de5f49a375bb4f63499bd148