- Require AppStream to validate appdata file instead of deprecated

appstream-glib.
- Update idle3.appdata.xml to pass the more pedantic appstreamcli.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python313?expand=0&rev=123
This commit is contained in:
2025-09-18 14:05:23 +00:00
committed by Git OBS Bridge
parent 45ae9e0091
commit d782ad00ca
3 changed files with 39 additions and 16 deletions

View File

@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2017 Zbigniew Jędrzejewski-Szmek --> <component type="desktop-application">
<application> <id>org.python.IDLE3</id>
<id type="desktop">idle3.desktop</id> <launchable type="desktop-id">idle3.desktop</launchable>
<name>IDLE3</name> <name>IDLE3</name>
<metadata_licence>CC0</metadata_licence>
<project_license>Python-2.0</project_license>
<summary>Python 3 Integrated Development and Learning Environment</summary> <summary>Python 3 Integrated Development and Learning Environment</summary>
<description> <description>
<p> <p>
IDLE is Pythons Integrated Development and Learning Environment. IDLE is Pythons Integrated Development and Learning Environment.
The GUI is uniform between Windows, Unix, and Mac OS X. The GUI is uniform between Windows, Unix, and macOS.
IDLE provides an easy way to start writing, running, and debugging IDLE provides an easy way to start writing, running, and debugging
Python code. Python code.
</p> </p>
@@ -19,17 +19,33 @@
It provides: It provides:
</p> </p>
<ul> <ul>
<li>a Python shell window (interactive interpreter) with colorizing of code input, output, and error messages,</li> <li>a Python shell window (interactive interpreter) with colorizing of code input, output, and error messages,</li>
<li>a multi-window text editor with multiple undo, Python colorizing, smart indent, call tips, auto completion, and other features,</li> <li>a multi-window text editor with multiple undo, Python colorizing, smart indent, call tips, auto completion, and other features,</li>
<li>search within any window, replace within editor windows, and search through multiple files (grep),</li> <li>search within any window, replace within editor windows, and search through multiple files (grep),</li>
<li>a debugger with persistent breakpoints, stepping, and viewing of global and local namespaces.</li> <li>a debugger with persistent breakpoints, stepping, and viewing of global and local namespaces.</li>
</ul> </ul>
</description> </description>
<developer id="org.python">
<name>Python Software Foundation</name>
</developer>
<url type="homepage">https://docs.python.org/3/library/idle.html</url> <url type="homepage">https://docs.python.org/3/library/idle.html</url>
<screenshots> <screenshots>
<screenshot type="default">http://in.waw.pl/~zbyszek/fedora/idle3-appdata/idle3-main-window.png</screenshot> <screenshot type="default">
<screenshot>http://in.waw.pl/~zbyszek/fedora/idle3-appdata/idle3-class-browser.png</screenshot> <image>https://in.waw.pl/~zbyszek/fedora/idle3-appdata/idle3-main-window.png</image>
<screenshot>http://in.waw.pl/~zbyszek/fedora/idle3-appdata/idle3-code-viewer.png</screenshot> </screenshot>
<screenshot>
<image>https://in.waw.pl/~zbyszek/fedora/idle3-appdata/idle3-class-browser.png</image>
</screenshot>
<screenshot>
<image>https://in.waw.pl/~zbyszek/fedora/idle3-appdata/idle3-code-viewer.png</image>
</screenshot>
</screenshots> </screenshots>
<project_license>Python-2.0</project_license>
<metadata_license>CC0-1.0</metadata_license>
<update_contact>zbyszek@in.waw.pl</update_contact> <update_contact>zbyszek@in.waw.pl</update_contact>
</application> </component>

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Sep 18 08:15:31 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
- Require AppStream to validate appdata file instead of deprecated
appstream-glib.
- Update idle3.appdata.xml to pass the more pedantic appstreamcli.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 9 10:11:58 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com> Tue Sep 9 10:11:58 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -288,7 +288,7 @@ ExcludeArch: aarch64
%if %{with general} %if %{with general}
# required for idle3 (.desktop and .appdata.xml files) # required for idle3 (.desktop and .appdata.xml files)
BuildRequires: appstream-glib BuildRequires: AppStream
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: gdbm-devel BuildRequires: gdbm-devel
BuildRequires: gettext BuildRequires: gettext
@@ -780,7 +780,7 @@ install -m 644 -D -t %{buildroot}%{_datadir}/applications idle%{python_abi}.desk
cp %{SOURCE20} idle%{python_abi}.appdata.xml cp %{SOURCE20} idle%{python_abi}.appdata.xml
sed -i -e 's:idle3.desktop:idle%{python_abi}.desktop:g' idle%{python_abi}.appdata.xml sed -i -e 's:idle3.desktop:idle%{python_abi}.desktop:g' idle%{python_abi}.appdata.xml
install -m 644 -D -t %{buildroot}%{_datadir}/metainfo idle%{python_abi}.appdata.xml install -m 644 -D -t %{buildroot}%{_datadir}/metainfo idle%{python_abi}.appdata.xml
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/idle%{python_abi}.appdata.xml appstreamcli validate --no-net %{buildroot}%{_datadir}/metainfo/idle%{python_version}.appdata.xml
%fdupes %{buildroot}/%{_libdir}/python%{python_abi} %fdupes %{buildroot}/%{_libdir}/python%{python_abi}
%endif %endif