## 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 ExcludeArch: %{ix86} # Generated by rust2rpm 26 %bcond_without check %global crate cosmic-ext-applet-places-status-indicator %global crateid dev.dominiccgeh.CosmicAppletPlacesStatusIndicator %global shortversion 0.0.1 %global commit 4430ee49fa5e80d1d6e4078603951d58daa12685 %global committag 1 %global commitversion %{?committag:%{commit}}%{?!committag:%{shortversion}} %global shortcommitversion %{?committag:%(c=%{commit}; echo ${c:0:7})}%{?!committag:%{shortversion}} %global commitdatestring 2025-03-15 23:05:00 +0100 %global commitdate 20250315 %global commitgit %{?committag:~git%{commitdate}.%(c=%{commit}; echo ${c:0:7})} Name: cosmic-ext-applet-places-status-indicator Version: %{shortversion}%{commitgit} Release: %autorelease Summary: Menu for quickly navigating places in the sysem for COSMIC DE License: GPL-3.0 URL: https://github.com/bGVia3VjaGVu/cosmic-ext-applet-places-status-indicator.git Source0: https://github.com/bGVia3VjaGVu/cosmic-ext-applet-places-status-indicator/archive/%{commitversion}/cosmic-ext-applet-places-status-indicator-%{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 Source3: vendor-config-%{shortcommitversion}.lock Patch0: cosmic-ext-applet-places-status-indicator-fix-install.patch BuildRequires: cargo-rpm-macros >= 26 BuildRequires: rustc BuildRequires: lld BuildRequires: cargo BuildRequires: just BuildRequires: libxkbcommon-devel BuildRequires: git-core BuildRequires: fontconfig-devel %global _description %{expand: %{summary}.} %description %{_description} %prep %autosetup -n %{name}-%{commitversion} -p1 -a1 %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 cat %{SOURCE3} > Cargo.lock %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} sed 's/\(.*\) (.*#\(.*\))/\1+git\2/' -i cargo-vendor.txt %install just rootdir=%{buildroot} prefix=%{_prefix} install %if %{with check} %check %cargo_test %endif %files %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/%{crate} %{_datadir}/applications/%{crateid}.desktop %changelog * Fri Oct 31 2025 Jean-Marc Liger - 0.0.1~git20250315.4430ee4 - Update to latest snapshot