## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 # prevent library files from being installed %global cargo_install_lib 0 %global crate samply Name: rust-samply Version: 0.13.1 Release: %autorelease Summary: Command line profiler for macOS and Linux License: MIT OR Apache-2.0 URL: https://crates.io/crates/samply Source: %{crates_source} Source: samply-0.13.1-vendor.tar.xz # * MIT license Source10: https://github.com/mstange/samply/raw/refs/heads/main/LICENSE-MIT # * APACHE license Source11: https://github.com/mstange/samply/raw/refs/heads/main/LICENSE-APACHE # Automatically generated patch to strip dependencies and normalize metadata Patch: samply-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: A command line profiler for macOS and Linux.} %description %{_description} %package -n %{crate} Summary: %{summary} # 0BSD # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR ISC OR MIT # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # BSD-3-Clause # BSD-3-Clause AND MIT # BSD-3-Clause OR MIT # ISC # MIT # MIT OR Apache-2.0 # MIT OR NCSA # MIT OR Zlib OR Apache-2.0 # MPL-2.0 # Unicode-3.0 # Unlicense OR MIT # Zlib License: %{shrink: 0BSD AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND BSD-3-Clause AND MIT AND (BSD-3-Clause OR MIT) AND ISC AND MIT AND (MIT OR Apache-2.0) AND (MIT OR NCSA) AND (MIT OR Zlib OR Apache-2.0) AND MPL-2.0 AND Unicode-3.0 AND (Unlicense OR MIT) AND Zlib } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/samply %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor # remove executable bits from source files find -type f -executable -print -exec chmod -x {} + # copy licenses into sourceroot cp %{SOURCE10} %{SOURCE11} . %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Mon Sep 15 2025 nucfreq - 0.13.1-2 - Fix license * Mon Sep 15 2025 nucfreq - 0.13.1-1 - Initial import ## END: Generated by rpmautospec