diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a55252a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/version_check-0.1.3.crate diff --git a/rust-version_check.spec b/rust-version_check.spec new file mode 100644 index 0000000..294e0de --- /dev/null +++ b/rust-version_check.spec @@ -0,0 +1,55 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate version_check + +Name: rust-%{crate} +Version: 0.1.3 +Release: 1%{?dist} +Summary: Tiny crate to check the version of the installed/running rustc + +License: MIT +URL: https://crates.io/crates/version_check +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Tiny crate to check the version of the installed/running rustc. + +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 +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Sat Nov 18 2017 Igor Gnatenko - 0.1.3-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b4a5518 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (version_check-0.1.3.crate) = 1e566fabeac8cc163a975c1736f86c6e898ee42cbdda4874c9cc336f59eeff701528182449d318eef0a755f291fd3c612f728cd6034d9c6eeeae652a55eb249f