diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b63fd4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/vte_generate_state_changes-0.1.1.crate diff --git a/rust-vte_generate_state_changes.spec b/rust-vte_generate_state_changes.spec new file mode 100644 index 0000000..24a60c4 --- /dev/null +++ b/rust-vte_generate_state_changes.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 15 +%bcond_without check +%global debug_package %{nil} + +%global crate vte_generate_state_changes + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?dist} +Summary: Proc macro for generating VTE state changes + +# Upstream license specification: Apache-2.0 OR MIT +# https://github.com/alacritty/vte/pull/66 +License: ASL 2.0 or MIT +URL: https://crates.io/crates/vte_generate_state_changes +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Proc macro for generating VTE state changes.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Thu Aug 27 16:49:48 CEST 2020 Igor Raits - 0.1.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..611e200 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (vte_generate_state_changes-0.1.1.crate) = ba09352e037cbd279cbf5641c9783a24f76e54f1f09e13f0ab1ca99c9646c1e3c958e8e302d7cc88431073bad2e2d5619410f2f93f96f1db25f0f0ded0236f7e