## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## 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 28 %bcond check 1 %global crate unbinder Name: rust-unbinder Version: 0.1.7 Release: %autorelease Summary: High-performance JSON Schema dereferencer for resolving $ref pointers License: MIT URL: https://crates.io/crates/unbinder Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: unbinder-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A high-performance JSON Schema dereferencer for resolving $ref pointers.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc README.md %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}+console_error_panic_hook-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+console_error_panic_hook-devel %{_description} This package contains library source intended for building other packages which use the "console_error_panic_hook" feature of the "%{crate}" crate. %files -n %{name}+console_error_panic_hook-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+console_log-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+console_log-devel %{_description} This package contains library source intended for building other packages which use the "console_log" feature of the "%{crate}" crate. %files -n %{name}+console_log-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dev-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dev-devel %{_description} This package contains library source intended for building other packages which use the "dev" feature of the "%{crate}" crate. %files -n %{name}+dev-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+parallel-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+parallel-devel %{_description} This package contains library source intended for building other packages which use the "parallel" feature of the "%{crate}" crate. %files -n %{name}+parallel-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 %package -n %{name}+text-interface-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+text-interface-devel %{_description} This package contains library source intended for building other packages which use the "text-interface" feature of the "%{crate}" crate. %files -n %{name}+text-interface-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+wasm-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+wasm-devel %{_description} This package contains library source intended for building other packages which use the "wasm" feature of the "%{crate}" crate. %files -n %{name}+wasm-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install # FIXME: install shared library %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Thu Jan 29 2026 John Doe - 0.1.7-1 - Uncommitted changes ## END: Generated by rpmautospec