From c3a405552a0dbe1afeaa672db82f1406191b3a9d Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 6 Nov 2017 18:06:10 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-getopts.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 68 insertions(+) create mode 100644 .gitignore create mode 100644 rust-getopts.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea76fad --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/getopts-0.2.15.crate diff --git a/rust-getopts.spec b/rust-getopts.spec new file mode 100644 index 0000000..44401a2 --- /dev/null +++ b/rust-getopts.spec @@ -0,0 +1,66 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate getopts + +Name: rust-%{crate} +Version: 0.2.15 +Release: 1%{?dist} +Summary: getopts-like option parsing + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/getopts +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(log) >= 0.3.0 with crate(log) < 0.4.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +getopts-like option parsing. + +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-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml + +%changelog +* Mon Nov 06 2017 Igor Gnatenko - 0.2.15-1 +- Update to 0.2.15 + +* Wed Jun 14 2017 Igor Gnatenko - 0.2.14-2 +- Port to use rust-packaging + +* Sun Feb 26 2017 Igor Gnatenko - 0.2.14-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..61ddf1d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (getopts-0.2.15.crate) = eeddb32e1833e658e18ac435d9bf42dc6f09af84b04ed21104de95dc67d31327e35b9bd42cbc8d512cf548ba6ddd0c798524697bbad315dd7f1d87de8f620aee