## 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 wayland-protocols-plasma Name: rust-wayland-protocols-plasma Version: 0.2.0 Release: %autorelease Summary: Generated API for the Plasma wayland protocol extensions # Main license: MIT # Bundled plasma-wayland-protocols: BSD-3-Clause AND LGPL-2.1-or-later AND MIT AND MIT-CMU License: MIT AND BSD-3-Clause AND LGPL-2.1-or-later AND MIT-CMU URL: https://crates.io/crates/wayland-protocols-plasma Source: %{crates_source} # https://github.com/Smithay/wayland-rs/pull/683 Source: https://github.com/Smithay/wayland-rs/raw/master/LICENSE.txt BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Generated API for the Plasma wayland protocol extensions.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Provides: bundled(plasma-wayland-protocols) = 1.10.0 %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE.txt %license %{crate_instdir}/plasma-wayland-protocols/COPYING.LIB %license %{crate_instdir}/plasma-wayland-protocols/LICENSES/BSD-3-Clause.txt %license %{crate_instdir}/plasma-wayland-protocols/LICENSES/LGPL-2.1-or-later.txt %license %{crate_instdir}/plasma-wayland-protocols/LICENSES/MIT-CMU.txt %doc %{crate_instdir}/CHANGELOG.md %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}+client-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+client-devel %{_description} This package contains library source intended for building other packages which use the "client" feature of the "%{crate}" crate. %files -n %{name}+client-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+server-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+server-devel %{_description} This package contains library source intended for building other packages which use the "server" feature of the "%{crate}" crate. %files -n %{name}+server-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+wayland-client-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+wayland-client-devel %{_description} This package contains library source intended for building other packages which use the "wayland-client" feature of the "%{crate}" crate. %files -n %{name}+wayland-client-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+wayland-server-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+wayland-server-devel %{_description} This package contains library source intended for building other packages which use the "wayland-server" feature of the "%{crate}" crate. %files -n %{name}+wayland-server-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep cp -pav %{SOURCE1} . %generate_buildrequires %cargo_generate_buildrequires %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.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Dec 28 2023 Aleksei Bavshin - 0.2.0-1 - Initial import (rhbz#2255182) ## END: Generated by rpmautospec