## 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 url https://github.com/IgKh %global crate cutecosmic %global shortversion 0.1 %global qt6_minver 6.8.0 %global commit 1469fa3a8890b74a7189d10de737150678b57418 %global committag 1 %global commitversion %{?committag:%{commit}}%{?!committag:%{shortversion}} %global shortcommitversion %{?committag:%(c=%{commit}; echo ${c:0:7})}%{?!committag:%{shortversion}} %global commitdatestring 2025-11-10 23:15:54 +0100 %global commitdate 20251110 %global commitgit %{?committag:^git%{commitdate}.%(c=%{commit}; echo ${c:0:7})} Name: %{crate} Version: %{shortversion}%{commitgit} Release: 1%{?dist} Summary: Qt platform theme for the COSMIC Desktop environment # Main sources are GPL-3.0-or-later, rest are rust licenses License: GPL-3.0-or-later AND ((MIT OR Apache-2.0) AND Unicode-3.0) 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 MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND BSD-3-Clause AND (BSD-3-Clause OR Apache-2.0) AND BSL-1.0 AND CC0-1.0 AND ISC AND MIT AND (MIT OR Apache-2.0 OR CC0-1.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (MIT OR Apache-2.0 OR Zlib) AND MPL-2.0 AND Unicode-3.0 AND (Unlicense OR MIT) AND ZLib URL: %{url}/%{crate} Source0: %{url}/%{crate}/archive/refs/tags/%{commitversion}/%{crate}-%{shortcommitversion}.tar.gz # To create the below sources: # * git clone %%{url}/%%{crate}.git at the specified commit # * cd %%{crate}-%%{commitversion}-bindings # * cargo vendor > %%{crate}-%%{shortcommitversion}-vendor-config.toml # * tar -pczf ../%%{crate}-%%{shortcommitversion}-vendor.tar.xz vendor Source1: %{crate}-%{shortcommitversion}-vendor.tar.xz # * mv %%{crate}-%%{shortcommitversion}-vendor-config.toml ../.. Source2: %{crate}-%{shortcommitversion}-vendor-config.toml BuildRequires: cargo-rpm-macros >= 26 BuildRequires: rustc BuildRequires: cargo BuildRequires: cmake BuildRequires: corrosion >= 0.5.2 BuildRequires: gcc-c++ BuildRequires: ninja-build %description %{summary}. %package qt6 Summary: Qt 6 platform plugins for the COSMIC desktop BuildRequires: qt6-rpm-macros BuildRequires: cmake(Qt6Core) >= %{qt6_minver} BuildRequires: cmake(Qt6CoreTools) >= %{qt6_minver} BuildRequires: cmake(Qt6DBus) >= %{qt6_minver} BuildRequires: cmake(Qt6Gui) >= %{qt6_minver} BuildRequires: cmake(Qt6GuiPrivate) >= %{qt6_minver} BuildRequires: cmake(Qt6QuickControls2) >= %{qt6_minver} Requires: qt6-filesystem Requires: cosmic-icon-theme Supplements: (cosmic-session%{?_isa} and qt6-qtbase-gui%{?_isa}) Requires: qt6qml(org.kde.desktop) Requires: breeze-icon-theme Recommends: plasma-breeze-qt6 Recommends: qt6qml(org.kde.breeze) Obsoletes: cutecosmic <= 0.1 Provides: cutecosmic = %{version}-%{release} Provides: qt6-cosmic-plugin = %{version}-%{release} %description qt6 This package provides the Qt platform plugins to integrate Qt 6 applications into the COSMIC desktop. %prep %autosetup -n %{crate}-%{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 .. %cmake_qt6 -GNinja %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_build %install %cmake_install %files qt6 %license bindings/LICENSE.dependencies %license bindings/cargo-vendor.txt %doc README.md %{_qt6_plugindir}/platformthemes/libcutecosmictheme.so %changelog * Mon Dec 22 2025 Jean-Marc Liger - 0.1^git20251110.1469fa3-1 - Update to latest snapshot - Add cutecosmic-qt6 subpackage (merge from new Fedora package) * Wed Nov 05 2025 Jean-Marc Liger - 0.1 - Initial package