## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate xkbcommon Name: rust-xkbcommon Version: 0.7.0 Release: %autorelease Summary: Rust bindings and wrappers for libxkbcommon License: MIT URL: https://crates.io/crates/xkbcommon Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Update memmap2 to 0.9.0 # * Drop "quick-evdev" example due to unpackaged "evdev" crate Patch: xkbcommon-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Rust bindings and wrappers for libxkbcommon.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: libxkbcommon-devel %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/README.md %{crate_instdir}/ %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 the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+as-raw-xcb-connection-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+as-raw-xcb-connection-devel %{_description} This package contains library source intended for building other packages which use the "as-raw-xcb-connection" feature of the "%{crate}" crate. %files -n %{name}+as-raw-xcb-connection-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+memmap2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+memmap2-devel %{_description} This package contains library source intended for building other packages which use the "memmap2" feature of the "%{crate}" crate. %files -n %{name}+memmap2-devel %ghost %{crate_instdir}/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 the "wayland" feature of the "%{crate}" crate. %files -n %{name}+wayland-devel %ghost %{crate_instdir}/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 the "x11" feature of the "%{crate}" crate. %files -n %{name}+x11-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # requires unpackaged dependency "evdev" rm -f examples/quick-evdev.rs %generate_buildrequires %cargo_generate_buildrequires echo 'libxkbcommon-devel' %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Sat Jan 27 2024 Fedora Release Engineering - 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Dec 21 2023 Aleksei Bavshin - 0.7.0-1 - Update to 0.7.0 (rhbz#2251774) * Sat Aug 05 2023 Fabio Valentini - 0.4.0-14 - Regenerate with rust2rpm v24 * Sat Jul 22 2023 Fedora Release Engineering - 0.4.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jan 21 2023 Fedora Release Engineering - 0.4.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 0.4.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jan 25 2022 Fabio Valentini - 0.4.0-8 - Drop unused x11 feature (missing dependencies). * Sat Jan 22 2022 Fedora Release Engineering - 0.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.4.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Mar 26 07:13:49 CET 2020 Igor Raits - 0.4.0-3 - Add missing Requires * Tue Mar 24 11:28:00 PST 2020 Nikhil Jha - 0.4.0-2 - Add license to package * Thu Feb 27 17:19:14 PST 2020 Nikhil Jha - 0.4.0-1 - Initial package ## END: Generated by rpmautospec