## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 debug_package %{nil} %global crate rquickjs-sys Name: rust-rquickjs-sys Version: 0.10.0 Release: %autorelease Summary: QuickJS bindings for rquickjs License: MIT URL: https://crates.io/crates/rquickjs-sys Source: %{crates_source} # * Upstream license file Source2: https://github.com/DelSkayn/rquickjs/raw/v%{version}/LICENSE#/LICENSE.upstream # * Prebuilt bingings are missing for some Fedora architectures Patch2: rquickjs-sys-always-generate-bindings.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: QuickJS bindings for rquickjs.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Provides: bundled(quickjs-ng) = %{version} %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %license %{crate_instdir}/quickjs/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}+bindgen-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bindgen-devel %{_description} This package contains library source intended for building other packages which use the "bindgen" feature of the "%{crate}" crate. %files -n %{name}+bindgen-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable-assertions-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable-assertions-devel %{_description} This package contains library source intended for building other packages which use the "disable-assertions" feature of the "%{crate}" crate. %files -n %{name}+disable-assertions-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dump-atoms-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-atoms-devel %{_description} This package contains library source intended for building other packages which use the "dump-atoms" feature of the "%{crate}" crate. %files -n %{name}+dump-atoms-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dump-bytecode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-bytecode-devel %{_description} This package contains library source intended for building other packages which use the "dump-bytecode" feature of the "%{crate}" crate. %files -n %{name}+dump-bytecode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dump-free-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-free-devel %{_description} This package contains library source intended for building other packages which use the "dump-free" feature of the "%{crate}" crate. %files -n %{name}+dump-free-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dump-gc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-gc-devel %{_description} This package contains library source intended for building other packages which use the "dump-gc" feature of the "%{crate}" crate. %files -n %{name}+dump-gc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dump-gc-free-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-gc-free-devel %{_description} This package contains library source intended for building other packages which use the "dump-gc-free" feature of the "%{crate}" crate. %files -n %{name}+dump-gc-free-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dump-leaks-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-leaks-devel %{_description} This package contains library source intended for building other packages which use the "dump-leaks" feature of the "%{crate}" crate. %files -n %{name}+dump-leaks-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dump-mem-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-mem-devel %{_description} This package contains library source intended for building other packages which use the "dump-mem" feature of the "%{crate}" crate. %files -n %{name}+dump-mem-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dump-module-resolve-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-module-resolve-devel %{_description} This package contains library source intended for building other packages which use the "dump-module-resolve" feature of the "%{crate}" crate. %files -n %{name}+dump-module-resolve-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dump-objects-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-objects-devel %{_description} This package contains library source intended for building other packages which use the "dump-objects" feature of the "%{crate}" crate. %files -n %{name}+dump-objects-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dump-promise-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-promise-devel %{_description} This package contains library source intended for building other packages which use the "dump-promise" feature of the "%{crate}" crate. %files -n %{name}+dump-promise-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dump-read-object-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-read-object-devel %{_description} This package contains library source intended for building other packages which use the "dump-read-object" feature of the "%{crate}" crate. %files -n %{name}+dump-read-object-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dump-shapes-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-shapes-devel %{_description} This package contains library source intended for building other packages which use the "dump-shapes" feature of the "%{crate}" crate. %files -n %{name}+dump-shapes-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+logging-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+logging-devel %{_description} This package contains library source intended for building other packages which use the "logging" feature of the "%{crate}" crate. %files -n %{name}+logging-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pretty_env_logger-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pretty_env_logger-devel %{_description} This package contains library source intended for building other packages which use the "pretty_env_logger" feature of the "%{crate}" crate. %files -n %{name}+pretty_env_logger-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+update-bindings-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+update-bindings-devel %{_description} This package contains library source intended for building other packages which use the "update-bindings" feature of the "%{crate}" crate. %files -n %{name}+update-bindings-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep cp -pav %{SOURCE2} LICENSE %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Thu Mar 26 2026 Aleksei Bavshin - 0.10.0-1 - Initial package ## END: Generated by rpmautospec