Compare commits
15 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d22b73ddea | ||
|
|
ec7048935e | ||
|
|
5c7d0e50b8 | ||
|
|
1cb3c765dc | ||
|
|
9cdf0619ed | ||
|
|
f5357bdf6e | ||
|
|
785bbe69b6 | ||
|
|
1ff9d0bc37 | ||
|
|
ddd247b16c | ||
|
|
08c452a451 | ||
|
|
00a4cd357c | ||
|
|
f416479277 | ||
|
|
06cb30b32a | ||
|
|
630c7e05de | ||
|
|
a1dd7e73ad |
4 changed files with 93 additions and 23 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -18,3 +18,7 @@ workrave-1.9.1.tar.gz
|
|||
/workrave-v1_10_52.tar.gz
|
||||
/workrave-v1_11_0_beta_12.tar.gz
|
||||
/workrave-v1_11_0_beta_13.tar.gz
|
||||
/workrave-v1_11_0_rc_1.tar.gz
|
||||
/workrave-v1_11_0_rc_3.tar.gz
|
||||
/workrave-v1_11_0_rc_4.tar.gz
|
||||
/workrave-v1_11_1.tar.gz
|
||||
|
|
|
|||
22
710.patch
Normal file
22
710.patch
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
From 7bcdae9a7d5b2dd11decdb3adf23736622b5aab8 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?=C5=81ukasz=20Wojni=C5=82owicz?=
|
||||
<lukasz.wojnilowicz@gmail.com>
|
||||
Date: Sat, 25 Jul 2026 20:51:49 +0200
|
||||
Subject: [PATCH] Fix appstream id case
|
||||
|
||||
---
|
||||
ui/app/workrave.metainfo.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ui/app/workrave.metainfo.xml b/ui/app/workrave.metainfo.xml
|
||||
index 794541993..866aaa332 100644
|
||||
--- a/ui/app/workrave.metainfo.xml
|
||||
+++ b/ui/app/workrave.metainfo.xml
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
- <id>org.workrave.workrave</id>
|
||||
+ <id>org.workrave.Workrave</id>
|
||||
<name>Workrave</name>
|
||||
<summary>Workrave assists in the recovery and prevention of Repetitive Strain Injury (RSI)</summary>
|
||||
<metadata_license>CC-BY-3.0</metadata_license>
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (workrave-v1_11_0_beta_13.tar.gz) = b0f24572d41d072d5fcc383ef2c01408a3f5329f2c48432041b19705eeb637f7eee030b4b659741a1dbcbc676430740cde64f7f0647aa9de77e8732c3157c3e1
|
||||
SHA512 (workrave-v1_11_1.tar.gz) = 45b7e7f84cd5d29945006da524676486c1b87627f6d1ff6e9106e9dd0f4034c26052f23649f312cc1513b17470197b4acea4974744d2a8e1093b31523290f82f
|
||||
|
|
|
|||
|
|
@ -1,21 +1,28 @@
|
|||
%bcond gnome 1
|
||||
%bcond gnome40 1
|
||||
%bcond gnome45 %[0%{?fedora} || 0%{?rhel} >= 10]
|
||||
%bcond gnome_flashback %{undefined flatpak}
|
||||
%bcond mate %{undefined flatpak}
|
||||
%bcond xfce %{undefined flatpak}
|
||||
%bcond gnome %[0%{?fedora} || 0%{?rhel} <= 9]
|
||||
%bcond gnome40 %[0%{?fedora} || 0%{?rhel} <= 9]
|
||||
%bcond gnome45 %[0%{?fedora} || 0%{?rhel} <= 9]
|
||||
# Disabled due to missing dependencies.
|
||||
%bcond cinnamon %[0%{?fedora} || 0%{?rhel} <= 9]
|
||||
%bcond gnome_flashback %[0%{?fedora} || 0%{?rhel} <= 9]
|
||||
%bcond mate %[0%{?fedora} || 0%{?rhel} <= 9]
|
||||
%bcond xfce %[0%{?fedora} || 0%{?rhel} <= 9]
|
||||
|
||||
%global app_id org.workrave.Workrave
|
||||
|
||||
Name: workrave
|
||||
Version: 1.11.0~beta.13
|
||||
Version: 1.11.1
|
||||
Release: %autorelease
|
||||
Summary: Program that assists in the recovery and prevention of RSI
|
||||
# Based on older packages by Dag Wieers <dag@wieers.com> and Steve Ratcliffe
|
||||
License: GPL-3.0-or-later AND LGPL-2.0-or-later
|
||||
# The workrave is released under the GPL-3.0-or-later license. Other licenses:
|
||||
# libs/config/include/config/IConfiguratorListener.hh: GPL-2.0-or-later
|
||||
# ui/app/toolkits/gtkmm/platforms/unix/gtktrayicon.{c,h}: LGPL-2.1-or-later
|
||||
# ui/app/toolkits/gtkmm/platforms/unix/protocols/wlr-layer-shell-unstable-v1.xml: HPND
|
||||
License: GPL-3.0-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND HPND
|
||||
URL: https://workrave.org/
|
||||
%global tag %(echo %{version} | sed -e 's/[\\.~]/_/g')
|
||||
Source: https://github.com/rcaelers/workrave/archive/v%{tag}/%{name}-v%{tag}.tar.gz
|
||||
Patch: https://github.com/rcaelers/workrave/pull/710.patch
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: desktop-file-utils
|
||||
|
|
@ -63,7 +70,10 @@ BuildRequires: pkgconfig(libmatepanelapplet-4.0) >= 1.20.0
|
|||
# Logging
|
||||
BuildRequires: cmake(fmt)
|
||||
BuildRequires: cmake(spdlog)
|
||||
BuildRequires: fdupes
|
||||
|
||||
|
||||
Requires: %{name}-common = %{version}-%{release}
|
||||
Requires: dbus-common
|
||||
Requires: hicolor-icon-theme
|
||||
Recommends: (%{name}-cinnamon if cinnamon)
|
||||
|
|
@ -73,7 +83,6 @@ Recommends: (%{name}-mate if mate-panel)
|
|||
Recommends: (%{name}-xfce if xfce4-panel)
|
||||
Recommends: gstreamer1-plugins-base
|
||||
Recommends: gstreamer1-plugins-good
|
||||
Obsoletes: %{name}-devel < %{version}-%{release}
|
||||
|
||||
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
|
||||
ExcludeArch: %{ix86}
|
||||
|
|
@ -85,8 +94,17 @@ take micro-pauses, rest breaks and restricts you to your daily limit.
|
|||
%description
|
||||
%{_description}
|
||||
|
||||
%package common
|
||||
Summary: Common data (sounds, icons, etc.) for Workrave
|
||||
BuildArch: noarch
|
||||
|
||||
%description common
|
||||
%{_description}
|
||||
|
||||
# cannot be marked noarch because it depends on the arched main package
|
||||
%package cinnamon
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: cinnamon
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Summary: Workrave applet for Cinnamon desktop
|
||||
|
||||
%description cinnamon
|
||||
|
|
@ -95,6 +113,7 @@ Summary: Workrave applet for Cinnamon desktop
|
|||
This package provides an applet for the Cinnamon desktop.
|
||||
|
||||
%package gnome
|
||||
Requires: gnome-shell
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Summary: Workrave applet for GNOME desktop
|
||||
|
||||
|
|
@ -104,6 +123,7 @@ Summary: Workrave applet for GNOME desktop
|
|||
This package provides an applet for the GNOME desktop.
|
||||
|
||||
%package gnome-flashback
|
||||
Requires: gnome-panel
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Summary: Workrave applet for GNOME Flashback
|
||||
|
||||
|
|
@ -113,6 +133,8 @@ Summary: Workrave applet for GNOME Flashback
|
|||
This package provides an applet for the GNOME Flashback panel.
|
||||
|
||||
%package mate
|
||||
Requires: mate-panel
|
||||
Requires: mate-applets
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Summary: Workrave applet for MATE
|
||||
|
||||
|
|
@ -122,6 +144,7 @@ Summary: Workrave applet for MATE
|
|||
This package provides an applet for the MATE panel.
|
||||
|
||||
%package xfce
|
||||
Requires: xfce4-panel
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Summary: Workrave applet for Xfce
|
||||
|
||||
|
|
@ -139,6 +162,8 @@ This package provides an applet for the Xfce panel.
|
|||
|
||||
|
||||
%build
|
||||
# without CMAKE_INSTALL_SYSCONFDIR set to /etc the autostart file
|
||||
# gets installed in /usr/etc
|
||||
%cmake \
|
||||
-DWITH_GNOME_CLASSIC_PANEL:BOOL=%{?with_gnome_flashback:ON}%{!?with_gnome_flashback:OFF} \
|
||||
-DWITH_GNOME45:BOOL=%{?with_gnome45:ON}%{!?with_gnome45:OFF} \
|
||||
|
|
@ -151,6 +176,7 @@ This package provides an applet for the Xfce panel.
|
|||
-DWITH_INDICATOR:BOOL=ON \
|
||||
-DWITH_APPINDICATOR:BOOL=ON \
|
||||
-DWITH_WAYLAND:BOOL=ON \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR:PATH=%{_sysconfdir} \
|
||||
%{nil}
|
||||
|
||||
%cmake_build
|
||||
|
|
@ -165,35 +191,55 @@ rm -f %{buildroot}%{_libdir}/*.so
|
|||
# indicators need to be enabled to build GIR but are not needed otherwise
|
||||
rm -f %{buildroot}%{_libdir}/*indicators3/7/libworkrave.so*
|
||||
|
||||
# fix appstream ID
|
||||
appstream-util modify %{buildroot}%{_metainfodir}/%{app_id}.metainfo.xml id %{app_id}
|
||||
# remove zero-length to silence rpmlint
|
||||
rm -f %{buildroot}%{_datadir}/gnome-shell/extensions/workrave@workrave.org/stylesheet.css
|
||||
|
||||
%find_lang %{name}
|
||||
# avoid cross-directory-hard-link
|
||||
ln -sf %{_datadir}/workrave/images/workrave-icon-medium.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/workrave.png
|
||||
%fdupes %{buildroot}%{_datadir}
|
||||
|
||||
%if %{without cinnamon}
|
||||
# avoid Installed (but unpackaged) file(s) found:
|
||||
rm -rf %{buildroot}%{_datadir}/cinnamon
|
||||
%endif
|
||||
|
||||
%if %{without gnome}
|
||||
# avoid Installed (but unpackaged) file(s) found:
|
||||
rm -rf %{buildroot}%{_datadir}/gnome-shell
|
||||
%endif
|
||||
|
||||
%check
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/%{app_id}.desktop
|
||||
desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/%{app_id}.desktop
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{app_id}.metainfo.xml
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc AUTHORS COPYING NEWS README.md
|
||||
%doc AUTHORS NEWS README.md
|
||||
%license COPYING
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/applications/%{app_id}.desktop
|
||||
%{_datadir}/dbus-1/services/%{app_id}.service
|
||||
%{_datadir}/glib-2.0/schemas/org.workrave.*.xml
|
||||
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
||||
%{_datadir}/sounds/%{name}/
|
||||
%{_datadir}/%{name}/
|
||||
%{_metainfodir}/%{app_id}.metainfo.xml
|
||||
# support library for gtk3 applets
|
||||
%{_libdir}/girepository-1.0/Workrave-1.0.typelib
|
||||
%{_libdir}/libworkrave-private-1.0.so.*
|
||||
|
||||
%files common
|
||||
%license COPYING
|
||||
%{_datadir}/applications/%{app_id}.desktop
|
||||
%{_datadir}/dbus-1/services/%{app_id}.service
|
||||
%{_datadir}/glib-2.0/schemas/org.workrave.*.xml
|
||||
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
||||
%{_datadir}/%{name}/
|
||||
%{_datadir}/sounds/%{name}/
|
||||
# it isn't a conf file, so non-conffile-in-etc from rpmlint is a false positive here
|
||||
%{_sysconfdir}/xdg/autostart/%{app_id}.desktop
|
||||
%{_metainfodir}/%{app_id}.metainfo.xml
|
||||
|
||||
%if %{with cinnamon}
|
||||
%files cinnamon
|
||||
%dir %{_datadir}/cinnamon/
|
||||
%dir %{_datadir}/cinnamon/applets/
|
||||
%{_datadir}/cinnamon/applets/workrave@workrave.org/
|
||||
%else
|
||||
%endif
|
||||
|
||||
%if %{with gnome}
|
||||
%files gnome
|
||||
|
|
@ -201,8 +247,6 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{app_id}.meta
|
|||
%{_libdir}/girepository-1.0/Workrave-2.0.typelib
|
||||
%{_libdir}/libworkrave-gtk4-private-1.0.so.*
|
||||
%endif
|
||||
%dir %{_datadir}/gnome-shell/
|
||||
%dir %{_datadir}/gnome-shell/extensions/
|
||||
%{_datadir}/gnome-shell/extensions/workrave@workrave.org/
|
||||
%endif
|
||||
|
||||
|
|
@ -222,7 +266,7 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{app_id}.meta
|
|||
%{_libdir}/mate-applets/workrave-applet
|
||||
%{_datadir}/dbus-1/services/org.mate.panel.applet.WorkraveAppletFactory.service
|
||||
%{_datadir}/mate-panel/applets/org.workrave.WorkraveApplet.mate-panel-applet
|
||||
%{_datadir}/mate-panel/ui/workrave-menu.xml
|
||||
%{_datadir}/mate-panel/ui
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue