diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-05-22 15:08:28 -0700 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-05-22 15:08:28 -0700 |
| commit | e2ef38d021e9c5368c8567dc2aaac4146d7a0629 (patch) | |
| tree | 91198ddd930c7d7c8aa7d96044b289750fdeffac /rust | |
| parent | 10cf1051668db992fda50f562fd4ec2f9841f1e6 (diff) | |
| download | specs-e2ef38d021e9c5368c8567dc2aaac4146d7a0629.tar.gz specs-e2ef38d021e9c5368c8567dc2aaac4146d7a0629.tar.xz specs-e2ef38d021e9c5368c8567dc2aaac4146d7a0629.zip | |
+rust-wayland-cursor
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/rust-wayland-cursor.spec | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/rust/rust-wayland-cursor.spec b/rust/rust-wayland-cursor.spec new file mode 100644 index 0000000..23093d1 --- /dev/null +++ b/rust/rust-wayland-cursor.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate wayland-cursor + +Name: rust-%{crate} +Version: 0.26.5 +Release: 1%{?dist} +Summary: Bindings to libwayland-cursor + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/wayland-cursor +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Bindings to libwayland-cursor.} + +%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 +# one license file for a repo with multiple crates +%{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 May 22 14:51:36 PDT 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.26.5-1 +- Initial package |
