## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 27 %bcond check 1 %global debug_package %{nil} %global crate cursive-macros Name: rust-cursive-macros Version: 0.1.0 Release: %autorelease Summary: Proc-macros for the cursive TUI library License: MIT URL: https://crates.io/crates/cursive-macros Source: %{crates_source} # * Missing LICENSE file is fixed upstream # * https://github.com/gyscos/cursive/pull/814 Source2: https://github.com/gyscos/cursive/raw/main/LICENSE # Manually created patch for downstream crate metadata changes # * LICENSE not in sources fixed upstream # * https://github.com/gyscos/cursive/pull/818 Patch: cursive-macros-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Proc-macros for the cursive TUI library.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %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}+builder-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+builder-devel %{_description} This package contains library source intended for building other packages which use the "builder" feature of the "%{crate}" crate. %files -n %{name}+builder-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+find-crate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+find-crate-devel %{_description} This package contains library source intended for building other packages which use the "find-crate" feature of the "%{crate}" crate. %files -n %{name}+find-crate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+quote-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+quote-devel %{_description} This package contains library source intended for building other packages which use the "quote" feature of the "%{crate}" crate. %files -n %{name}+quote-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+syn-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+syn-devel %{_description} This package contains library source intended for building other packages which use the "syn" feature of the "%{crate}" crate. %files -n %{name}+syn-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep cp -pav %{SOURCE2} . %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 17 2026 Fedora Release Engineering - 0.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Jul 25 2025 Fedora Release Engineering - 0.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Fri Apr 25 2025 Alexander F. Lent - 0.1.0-1 - Initial import (fedora#2353989) ## END: Generated by rpmautospec