## START: Set by rpmautospec ## (rpmautospec version 0.7.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 using the scripts at https://pagure.io/fedora-cosmic/cosmic-packaging/blob/main/f/scripts ExcludeArch: %{ix86} # Generated by rust2rpm 26 %bcond_without check # While our version corresponds to an upstream tag, we still need to define # these macros in order to set the VERGEN_GIT_SHA and VERGEN_GIT_COMMIT_DATE # environment variables in multiple sections of the spec file. %global commit 104a608cf1d55b5b8696ada431e77b96602242aa %global commitdatestring 2024-12-04 16:52:49 +0100 %global cosmic_minver 1.0.0~alpha.4 Name: cosmic-applets Version: 1.0.0~alpha.4 Release: %autorelease Summary: Applets for the COSMIC Desktop Environment License: (0BSD OR Apache-2.0 OR MIT) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR BSD-2-Clause OR MIT) AND (Apache-2.0 OR BSD-3-Clause) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR CC0-1.0 OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT OR Zlib) AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND CC0-1.0 AND GPL-3.0-only AND GPL-3.0-or-later AND ISC AND MIT AND (MIT OR Unlicense) AND MPL-2.0 AND Unicode-3.0 AND Unlicense AND Zlib URL: https://github.com/pop-os/cosmic-applets Source0: https://github.com/pop-os/cosmic-applets/archive/epoch-%{version_no_tilde}/cosmic-applets-%{version_no_tilde}.tar.gz # To create the below sources: # * git clone https://github.com/pop-os/cosmic-applets at the specified commit # * cargo vendor > vendor-config-%%{version_no_tilde}.toml # * tar -pczf vendor-%%{version_no_tilde}.tar.gz vendor Source1: vendor-%{version_no_tilde}.tar.gz # * mv vendor-config-%%{version_no_tilde}.toml .. Source2: vendor-config-%{version_no_tilde}.toml # required to compile applets in a reasonable amount of time # necessary even with the multi-binary feature + 8h timeout Patch: better_compile.patch Patch: symlink.patch BuildRequires: cargo-rpm-macros >= 25 BuildRequires: rustc BuildRequires: lld BuildRequires: cargo BuildRequires: dbus-devel BuildRequires: wayland-devel BuildRequires: libinput-devel BuildRequires: libudev-devel BuildRequires: pulseaudio-libs-devel BuildRequires: mesa-libEGL-devel BuildRequires: libxkbcommon-devel BuildRequires: just BuildRequires: desktop-file-utils Requires: cosmic-icon-theme >= %{cosmic_minver} Requires: cosmic-panel %global _description %{expand: %{summary}.} %description %{_description} %prep %autosetup -n cosmic-applets-epoch-%{version_no_tilde} -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 # Set vergen environment variables export VERGEN_GIT_COMMIT_DATE="date --utc '%{commitdatestring}'" export VERGEN_GIT_SHA="%{commit}" %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} sed 's/\(.*\) (.*#\(.*\))/\1+git\2/' -i cargo-vendor.txt %install # Set vergen environment variables export VERGEN_GIT_COMMIT_DATE="date --utc '%{commitdatestring}'" export VERGEN_GIT_SHA="%{commit}" just rootdir=%{buildroot} prefix=%{_prefix} install # Fix Firefox desktop file reference sed -e 's/"firefox"/"org.mozilla.firefox"/' -i %{buildroot}%{_datadir}/cosmic/com.system76.CosmicAppList/v1/favorites # COSMIC is not a valid category pre-fedora 41 %if %{defined fedora} && 0%{?fedora} < 41 desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppList.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletA11y.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletAudio.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletBattery.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletBluetooth.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletInputSources.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletMinimize.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletNetwork.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletNotifications.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletPower.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletStatusArea.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletTiling.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletTime.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletWorkspaces.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicPanelAppButton.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicPanelWorkspacesButton.desktop desktop-file-install \ --remove-category COSMIC \ --add-category X-COSMIC \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/com.system76.CosmicPanelLauncherButton.desktop %endif %check desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppList.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletA11y.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletAudio.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletBattery.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletBluetooth.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletInputSources.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletMinimize.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletNetwork.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletNotifications.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletPower.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletStatusArea.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletTiling.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletTime.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicAppletWorkspaces.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicPanelAppButton.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicPanelWorkspacesButton.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/com.system76.CosmicPanelLauncherButton.desktop %if %{with check} # Set vergen environment variables export VERGEN_GIT_COMMIT_DATE="date --utc '%{commitdatestring}'" export VERGEN_GIT_SHA="%{commit}" %cargo_test %endif %files %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %{_bindir}/cosmic-applets %{_bindir}/cosmic-panel-button %{_bindir}/cosmic-app-list %{_bindir}/cosmic-applet-a11y %{_bindir}/cosmic-applet-audio %{_bindir}/cosmic-applet-battery %{_bindir}/cosmic-applet-bluetooth %{_bindir}/cosmic-applet-input-sources %{_bindir}/cosmic-applet-minimize %{_bindir}/cosmic-applet-network %{_bindir}/cosmic-applet-notifications %{_bindir}/cosmic-applet-power %{_bindir}/cosmic-applet-status-area %{_bindir}/cosmic-applet-tiling %{_bindir}/cosmic-applet-time %{_bindir}/cosmic-applet-workspaces %{_datadir}/applications/com.system76.CosmicAppList.desktop %{_datadir}/applications/com.system76.CosmicAppletA11y.desktop %{_datadir}/applications/com.system76.CosmicAppletAudio.desktop %{_datadir}/applications/com.system76.CosmicAppletBattery.desktop %{_datadir}/applications/com.system76.CosmicAppletBluetooth.desktop %{_datadir}/applications/com.system76.CosmicAppletInputSources.desktop %{_datadir}/applications/com.system76.CosmicAppletMinimize.desktop %{_datadir}/applications/com.system76.CosmicAppletNetwork.desktop %{_datadir}/applications/com.system76.CosmicAppletNotifications.desktop %{_datadir}/applications/com.system76.CosmicAppletPower.desktop %{_datadir}/applications/com.system76.CosmicAppletStatusArea.desktop %{_datadir}/applications/com.system76.CosmicAppletTiling.desktop %{_datadir}/applications/com.system76.CosmicAppletTime.desktop %{_datadir}/applications/com.system76.CosmicAppletWorkspaces.desktop %{_datadir}/applications/com.system76.CosmicPanelAppButton.desktop %{_datadir}/applications/com.system76.CosmicPanelWorkspacesButton.desktop %{_datadir}/applications/com.system76.CosmicPanelLauncherButton.desktop %{_datadir}/metainfo/com.system76.CosmicApplets.metainfo.xml %dir %{_datadir}/cosmic/com.system76.CosmicAppList %{_datadir}/cosmic/com.system76.CosmicAppList/v1/favorites %{_datadir}/cosmic/com.system76.CosmicAppList/v1/filter_top_levels %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletStatusArea.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppList.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletAudio-symbolic.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletBattery-symbolic.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletBluetooth-symbolic.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletInputSources-symbolic.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletMinimize.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletNetwork-symbolic.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletNotifications-symbolic.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletPower-symbolic.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletTiling.Off.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletTiling.On.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletTiling-symbolic.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletTime-symbolic.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppletWorkspaces-symbolic.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicPanelAppButton.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicPanelWorkspacesButton.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-display-brightness-high-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-display-brightness-low-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-display-brightness-medium-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-display-brightness-off-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-0-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-0-limited-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-0-limited-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-0-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-10-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-10-limited-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-10-limited-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-10-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-100-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-100-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-20-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-20-limited-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-20-limited-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-20-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-35-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-35-limited-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-35-limited-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-35-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-5-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-5-limited-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-5-limited-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-5-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-50-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-50-limited-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-50-limited-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-50-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-65-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-65-limited-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-65-limited-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-65-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-80-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-80-limited-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-80-limited-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-80-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-90-charging-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-battery-level-90-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-bluetooth-active-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-bluetooth-disabled-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-notification-disabled-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-notification-new-symbolic.svg %{_datadir}/icons/hicolor/scalable/status/cosmic-applet-notification-symbolic.svg %{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicPanelLauncherButton.svg %changelog ## START: Generated by rpmautospec * Fri Dec 06 2024 Ryan Brue - 1.0.0~alpha.4-1 - "Update to 1.0.0~alpha.4" * Sun Nov 03 2024 Neal Gompa - 1.0.0~alpha.3-2 - Fix reference to Firefox in the default dock application list * Fri Nov 01 2024 Ryan Brue - 1.0.0~alpha.3-1 - "Update to 1.0.0~alpha.3" * Sun Sep 29 2024 Ryan Brue - 1.0.0~alpha.2-1 - "Update to 1.0.0~alpha.2" ## END: Generated by rpmautospec