## 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 #bcond_without check %global shortversion 0.0.1 %global commit 0fe422c9f812750f1b005ad21e9b4ba7d284c9f4 %global committag 1 %global commitversion %{?committag:%{commit}}%{?!committag:%{shortversion}} %global shortcommitversion %{?committag:%(c=%{commit}; echo ${c:0:7})}%{?!committag:%{shortversion}} %global commitdatestring 2025-11-02 18:49:14 +0100 %global commitdate 20251102 %global commitgit %{?committag:~git%{commitdate}.%(c=%{commit}; echo ${c:0:7})} Name: cutecosmic Version: %{shortversion}%{commitgit} Release: 1%{?dist} Summary: Qt platform theme for the COSMIC Desktop environment License: GPL-3.0-or-later URL: https://github.com/IgKh/cutecosmic Source0: https://github.com/IgKh/cutecosmic/archive/refs/tags/%{commitversion}/cutecosmic-%{shortcommitversion}.tar.gz # To create the below sources: # * git clone https://github.com/cosmic-utils/minimon-applet.git at the specified commit # * cargo vendor > vendor-config-%%{shortcommitversion}.toml # * tar -pczf vendor-%%{shortcommitversion}.tar.xz vendor Source1: vendor-%{shortcommitversion}.tar.xz # * mv vendor-config-%%{shortcommitversion}.toml .. Source2: vendor-config-%{shortcommitversion}.toml BuildRequires: cargo-rpm-macros >= 26 BuildRequires: rustc BuildRequires: cargo BuildRequires: cmake BuildRequires: git BuildRequires: g++ BuildRequires: vulkan-headers Requires: qt6-base %description The calculator has an operations history, providing the ability to bring previous calculations back to the screen for further use or inspection. %prep %autosetup -n %{name}-%{commitversion} -p1 cd bindings tar -Jxf %{SOURCE1} %cargo_prep -N # Check if .cargo/config.toml exists if [ -f .cargo/config.toml ]; then # If it exists, append the contents of %%{SOURCE2} to .cargo/config.toml cat %{SOURCE2} >> .cargo/config.toml echo "Appended %{SOURCE2} to .cargo/config.toml" else # If it does not exist, append the contents of %%{SOURCE2} to .cargo/config cat %{SOURCE2} >> .cargo/config echo "Appended %{SOURCE2} to .cargo/config" fi cd .. %build pushd bindings %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} sed 's/\(.*\) (.*#\(.*\))/\1+git\2/' -i cargo-vendor.txt popd %cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -Wno-dev %cmake_build %install %cmake_install %files %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %changelog * Tue Nov 04 2025 Jean-Marc Liger - 0.0.1~git20251102.fe422c - Initial package