diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dfda1b6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/xcursor-0.3.2.crate diff --git a/rust-xcursor.spec b/rust-xcursor.spec new file mode 100644 index 0000000..23dc18f --- /dev/null +++ b/rust-xcursor.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate xcursor + +Name: rust-%{crate} +Version: 0.3.2 +Release: 1%{?dist} +Summary: Library for loading XCursor themes + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/xcursor +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Library for loading XCursor themes.} + +%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 +%license LICENSE +%doc README.md +%{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 +* Fri Jun 26 2020 Michel Alexandre Salim - 0.3.2-1 +- Update to 0.3.2 + +* Mon Jun 8 2020 Michel Alexandre Salim - 0.3.1-1 +- Update to 0.3.1 + +* Fri May 22 14:53:23 PDT 2020 Michel Alexandre Salim - 0.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..077c562 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (xcursor-0.3.2.crate) = 508a311e80ae2b9b5deb439c4aa12e938ff845cdabe6353d5e5bd00ef329175cf6a220cad15aae733aea86a037293294e0ccde385c645f93468acef57ab359c9