Created
February 29, 2020 18:24
-
-
Save nikhiljha/5e07b706f9f5b4124878f536fa6680ad to your computer and use it in GitHub Desktop.
rust-xkbcommon for Fedora
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by rust2rpm 13 | |
%bcond_without check | |
%global debug_package %{nil} | |
%global crate xkbcommon | |
Name: rust-%{crate} | |
Version: 0.4.0 | |
Release: 1%{?dist} | |
Summary: Rust bindings and wrappers for libxkbcommon | |
# Upstream license specification: MIT | |
License: MIT | |
URL: https://crates.io/crates/xkbcommon | |
Source: %{crates_source} | |
ExclusiveArch: %{rust_arches} | |
%if %{__cargo_skip_build} | |
BuildArch: noarch | |
%endif | |
BuildRequires: rust-packaging | |
BuildRequires: pkgconfig(xkbcommon) | |
%global _description %{expand: | |
Rust bindings and wrappers for libxkbcommon.} | |
%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 | |
%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 | |
%package -n %{name}+memmap-devel | |
Summary: %{summary} | |
BuildArch: noarch | |
%description -n %{name}+memmap-devel %{_description} | |
This package contains library source intended for building other packages | |
which use "memmap" feature of "%{crate}" crate. | |
%files -n %{name}+memmap-devel | |
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml | |
%package -n %{name}+wayland-devel | |
Summary: %{summary} | |
BuildArch: noarch | |
%description -n %{name}+wayland-devel %{_description} | |
This package contains library source intended for building other packages | |
which use "wayland" feature of "%{crate}" crate. | |
%files -n %{name}+wayland-devel | |
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml | |
%package -n %{name}+x11-devel | |
Summary: %{summary} | |
BuildArch: noarch | |
%description -n %{name}+x11-devel %{_description} | |
This package contains library source intended for building other packages | |
which use "x11" feature of "%{crate}" crate. | |
%files -n %{name}+x11-devel | |
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml | |
%package -n %{name}+xcb-devel | |
Summary: %{summary} | |
BuildArch: noarch | |
%description -n %{name}+xcb-devel %{_description} | |
This package contains library source intended for building other packages | |
which use "xcb" feature of "%{crate}" crate. | |
%files -n %{name}+xcb-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 Feb 27 17:19:14 PST 2020 Nikhil Jha - 0.4.0-1 | |
- Initial package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment