## (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-emoji-selector %global crateid dev.dominiccgeh.CosmicAppletEmojiSelector %global shortversion 0.1.5 %global commit f7333f23b235121b2c85787f82d94bf8804c6b50 %global commitversion %{?commit:%{commit}}%{?!commit:%{shortversion}} %global shortcommitversion %{?commit:%(c=%{commit}; echo ${c:0:7})}%{?!commit:%{shortversion}} %global commitdatestring 2025-06-12 21:42:21 +0200 %global commitdate 20250612 %global commitgit %{?commit:~^git%{commitdate}.%(c=%{commit}; echo ${c:0:7})} Name: cosmic-ext-applet-emoji-selector Version: %{shortversion}%{commitgit} Release: %autorelease Summary: Emoji Selector for COSMIC License: MPL-2.0 MIT URL: https://github.com/bGVia3VjaGVu/cosmic-ext-applet-emoji-selector.git Source0: https://github.com/bGVia3VjaGVu/%{name}/archive/%{commitversion}/%{name}-%{shortcommitversion}.tar.gz Source1: vendor-%{shortcommitversion}.tar.xz Source2: vendor-config-%{shortcommitversion}.toml BuildRequires: cargo-rpm-macros >= 26 BuildRequires: rustc BuildRequires: lld BuildRequires: cargo BuildRequires: just BuildRequires: libxkbcommon-devel BuildRequires: git-core %global _description %{expand: %{summary}.} %description %{_description} %prep %autosetup -n %{name}-%{commit} -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 %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-MIT %license LICENSE-MPL-2 %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/%{crate} %{_datadir}/applications/%{crateid}.desktop %{_datadir}/icons/hicolor/scalable/apps/dev.dominiccgeh.*.svg %{_datadir}/%{crateid}/i18n-json/* %changelog * Sun Aug 17 2025 Jean-Marc Liger - 0.1.5^git20250612.f7333f2 - Update to latest snapshot