## 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 esaxx-rs Name: rust-esaxx-rs Version: 0.1.10 Release: %autorelease Summary: Wrapping around sentencepiece's esaxxx library License: Apache-2.0 AND MIT URL: https://crates.io/crates/esaxx-rs Source: %{crates_source} # * Add MIT license from bundled C++ sources # * See: https://github.com/Narsil/esaxx-rs/issues/17 Source2: LICENSE-MIT # Manually created patch for downstream crate metadata changes # * Fix license expression # * See: https://github.com/Narsil/esaxx-rs/issues/17 # * Drop criterion dev-dependency not present in Fedora Patch: esaxx-rs-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 BuildRequires: gcc-c++ %global _description %{expand: Wrapping around sentencepiece's esaxxx 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 %license %{crate_instdir}/LICENSE-MIT %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}+cc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cc-devel %{_description} This package contains library source intended for building other packages which use the "cc" feature of the "%{crate}" crate. %files -n %{name}+cc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cpp-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cpp-devel %{_description} This package contains library source intended for building other packages which use the "cpp" feature of the "%{crate}" crate. %files -n %{name}+cpp-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 cp -pL %{SOURCE2} . rm -r benches/ data/ examples/ %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Thu Jul 31 2025 Alexander F. Lent - 0.1.10-1 - Initial import (rhbz#2358552) ## END: Generated by rpmautospec