## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 zlink-macros Name: rust-zlink-macros Version: 0.1.1 Release: %autorelease Summary: Macros providing the high-level zlink API License: MIT URL: https://crates.io/crates/zlink-macros Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Macros providing the high-level zlink API.} %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}+idl-parse-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+idl-parse-devel %{_description} This package contains library source intended for building other packages which use the "idl-parse" feature of the "%{crate}" crate. %files -n %{name}+idl-parse-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+introspection-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+introspection-devel %{_description} This package contains library source intended for building other packages which use the "introspection" feature of the "%{crate}" crate. %files -n %{name}+introspection-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+proxy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+proxy-devel %{_description} This package contains library source intended for building other packages which use the "proxy" feature of the "%{crate}" crate. %files -n %{name}+proxy-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * Do not run doc tests, as they would require zlink (circular dependency). %cargo_test -- --lib # MANUALLY ADDED # The proxy tests require zlink which would introduce a circular dependency. We # skip them this way. %cargo_test -- --test doc_comments %cargo_test -- --test enum_errors %cargo_test -- --test introspect-custom-type %cargo_test -- --test introspect-reply-error %cargo_test -- --test introspect-type %cargo_test -- --test lifetime_removal %cargo_test -- --test reply-error-derive %cargo_test -- --test reply-error-empty %cargo_test -- --test reply-error-simple %cargo_test -- --test tuple_variant_errors # /MANUALLY ADDED %endif %changelog ## START: Generated by rpmautospec * Tue Sep 30 2025 Andreas Schneider - 0.1.1-1 - Initial package version 0.1.1 ## END: Generated by rpmautospec