Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 6dbf913e3b | |||
| 886c8cc8bc | |||
| 5c729f67bc |
41
xfig-3.2.9a-update-xdg-desktop-entry.patch
Normal file
41
xfig-3.2.9a-update-xdg-desktop-entry.patch
Normal file
@@ -0,0 +1,41 @@
|
||||
From: Jan Fooken <jan.fooken@suse.com>
|
||||
Date: 2026-01-29 15:22:36 +0100
|
||||
Subject: Port translations from SUSE desktop translations project
|
||||
References: jsc#PED-15248
|
||||
Upstream: no
|
||||
|
||||
With the deprecation and removal of the update-desktop-files tool,
|
||||
translations previously provided by the tool are now supposed to be
|
||||
upstreamed or provided via other means.
|
||||
|
||||
After evaluating the current state of the existing translations as well as
|
||||
the chance to upstream them, we decided to drop the translations and only
|
||||
patch the specialization of the category in the XDG desktop entry.
|
||||
|
||||
We came to this conclusion after reviewing the fitness and accuracy of the
|
||||
translated strings. A lot of them correspond to the wrong application or
|
||||
do not fit the reference. Therefore, they do not reach the desired quality
|
||||
level for upstreaming.
|
||||
|
||||
Furthermore, the upstream does not have any translations present in their
|
||||
source, so chances of getting existing translations of the desired quality
|
||||
level included into upstream's source are quite slim.
|
||||
|
||||
For more information please refer to the following links:
|
||||
* https://en.opensuse.org/openSUSE:Update-desktop-files_deprecation
|
||||
* https://github.com/openSUSE/suse-desktop-translations
|
||||
---
|
||||
org.xfig.xfig.desktop | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: xfig-3.2.9a/org.xfig.xfig.desktop
|
||||
===================================================================
|
||||
--- xfig-3.2.9a.orig/org.xfig.xfig.desktop
|
||||
+++ xfig-3.2.9a/org.xfig.xfig.desktop
|
||||
@@ -7,5 +7,5 @@ Comment=Facility for Interactive Generat
|
||||
Icon=xfig
|
||||
Terminal=false
|
||||
Type=Application
|
||||
-Categories=Graphics;
|
||||
+Categories=Graphics;VectorGraphics;
|
||||
Keywords=vector;graphics;figure;drawing;
|
||||
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 29 14:42:49 UTC 2026 - Jan Fooken <jan.fooken@suse.com>
|
||||
|
||||
- Remove dependency on update-desktop-files (jsc#PED-15248):
|
||||
* Drop unfit translations
|
||||
* Add subcategory XDG desktop entry via patch
|
||||
xfig-3.2.9a-update-xdg-desktop-entry.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 7 13:34:13 UTC 2025 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package xfig
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2026 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -36,6 +36,7 @@ Patch0: xfig-3.2.6.dif
|
||||
Patch5: xfig.3.2.5b-null.dif
|
||||
Patch6: xfig.3.2.5b-locale.dif
|
||||
Patch7: xfig.3.2.5b-fixes.dif
|
||||
Patch8: xfig-3.2.9a-update-xdg-desktop-entry.patch
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: flex
|
||||
@@ -44,7 +45,6 @@ BuildRequires: libjpeg-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: netpbm
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: pkgconfig(fontconfig)
|
||||
BuildRequires: pkgconfig(ijs)
|
||||
BuildRequires: pkgconfig(libtiff-4)
|
||||
@@ -97,6 +97,7 @@ set -x
|
||||
%patch -P5 -b .null
|
||||
%patch -P6 -b .locale
|
||||
%patch -P7 -b .fixes
|
||||
%patch -p1 -P8 -b .desktop-entry
|
||||
cp %{SOURCE1} .
|
||||
test ! -e Libraries/Examples/aircraft.fig || { echo forbidden file found 1>&2; exit 1; }
|
||||
|
||||
@@ -123,7 +124,6 @@ find -name '*.bak' -exec rm -vf '{}' \+
|
||||
mv %{buildroot}%{_mandir}/man1/xfig.1 %{buildroot}%{_mandir}/man1/xfig.1x
|
||||
gzip -9 %{buildroot}%{_mandir}/man1/xfig.1x
|
||||
%fdupes %{buildroot}
|
||||
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/org.%name.%name.desktop VectorGraphics
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,755)
|
||||
|
||||
Reference in New Issue
Block a user