## 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 27 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 %global crate gitu Name: rust-gitu Version: 0.35.0 Release: %autorelease Summary: Git client inspired by Magit License: MIT URL: https://crates.io/crates/gitu Source: %{crates_source} Source: gitu-0.35.0-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 %if %{with check} BuildRequires: git-core %endif %global _description %{expand: A git client inspired by Magit.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause # BSD-2-Clause OR Apache-2.0 OR MIT # BSD-3-Clause # BSL-1.0 # CC0-1.0 # ISC # MIT # MIT AND Unicode-DFS-2016 # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR LGPL-2.1-or-later # Unicode-3.0 # Unlicense OR MIT # WTFPL # Zlib # Zlib OR Apache-2.0 OR MIT License: (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND BSL-1.0 AND CC0-1.0 AND ISC AND MIT AND MIT AND Unicode-DFS-2016 AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND Unicode-3.0 AND (Unlicense OR MIT) AND WTFPL AND Zlib AND (Zlib OR Apache-2.0 OR MIT) # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc README.md %{_bindir}/gitu %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 {} + %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 * Sun Sep 14 2025 nucfreq - 0.35.0-1 - Initial import ## END: Generated by rpmautospec