Sync from SUSE:ALP:Source:Standard:1.0 rpmlint-mini revision a14c5a951b73ce3491bfae29e707deb6
This commit is contained in:
commit
c75b225d53
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
27
0001-validate-support-SingleMainWindow-key-from-1.5.patch
Normal file
27
0001-validate-support-SingleMainWindow-key-from-1.5.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From 47ab968995ae864d3681833040e17b8f1af4cb38 Mon Sep 17 00:00:00 2001
|
||||
From: David King <amigadave@amigadave.com>
|
||||
Date: Tue, 15 Feb 2022 10:54:40 +0000
|
||||
Subject: [PATCH] validate: support SingleMainWindow key from 1.5
|
||||
|
||||
Fixes https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/issues/59
|
||||
---
|
||||
src/validate.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/validate.c b/src/validate.c
|
||||
index 821be7d..10d1872 100644
|
||||
--- a/src/validate.c
|
||||
+++ b/src/validate.c
|
||||
@@ -329,6 +329,9 @@ static DesktopKeyDefinition registered_desktop_keys[] = {
|
||||
/* SuSE specific */
|
||||
{ DESKTOP_BOOLEAN_TYPE, "X-SuSE-translate", FALSE, FALSE, FALSE, NULL },
|
||||
|
||||
+ /* Since 1.5 */
|
||||
+ { DESKTOP_BOOLEAN_TYPE, "SingleMainWindow", FALSE, FALSE, FALSE, NULL },
|
||||
+
|
||||
/* Keys reserved for KDE */
|
||||
|
||||
/* since 0.9.4 */
|
||||
--
|
||||
2.36.1
|
||||
|
55
0002-validate-Support-version-1.5.patch
Normal file
55
0002-validate-Support-version-1.5.patch
Normal file
@ -0,0 +1,55 @@
|
||||
From e1f28bc5673f6cb281f3f4bdd8d8264d8ced6253 Mon Sep 17 00:00:00 2001
|
||||
From: David King <amigadave@amigadave.com>
|
||||
Date: Tue, 15 Feb 2022 10:56:04 +0000
|
||||
Subject: [PATCH] validate: Support version 1.5
|
||||
|
||||
Bump CURRENT_SPEC_VERSION to 1.5.
|
||||
---
|
||||
man/desktop-file-validate.1 | 2 +-
|
||||
src/validate.c | 3 +++
|
||||
src/validate.h | 2 +-
|
||||
3 files changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/man/desktop-file-validate.1 b/man/desktop-file-validate.1
|
||||
index 8e17411..ce87c47 100644
|
||||
--- a/man/desktop-file-validate.1
|
||||
+++ b/man/desktop-file-validate.1
|
||||
@@ -9,7 +9,7 @@ desktop-file-validate \- Validate desktop entry files
|
||||
.B desktop-file-validate [\-\-no-hints] [\-\-no-warn-deprecated] [\-\-warn-kde] FILE...
|
||||
.SH DESCRIPTION
|
||||
The \fIdesktop-file-validate\fP program is a tool to validate desktop
|
||||
-entry files according to the Desktop Entry specification 1.4.
|
||||
+entry files according to the Desktop Entry specification 1.5.
|
||||
.PP
|
||||
The specification describes a file format to provide information such as
|
||||
name, icon and description for an application. Such a file can then be
|
||||
diff --git a/src/validate.c b/src/validate.c
|
||||
index 10d1872..87f196e 100644
|
||||
--- a/src/validate.c
|
||||
+++ b/src/validate.c
|
||||
@@ -964,6 +964,9 @@ handle_version_key (kf_validator *kf,
|
||||
const char *locale_key,
|
||||
const char *value)
|
||||
{
|
||||
+ if (!strcmp (value, "1.5"))
|
||||
+ return TRUE;
|
||||
+
|
||||
if (!strcmp (value, "1.4"))
|
||||
return TRUE;
|
||||
|
||||
diff --git a/src/validate.h b/src/validate.h
|
||||
index e6efd93..a7952cd 100644
|
||||
--- a/src/validate.h
|
||||
+++ b/src/validate.h
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
-#define CURRENT_SPEC_VERSION "1.4"
|
||||
+#define CURRENT_SPEC_VERSION "1.5"
|
||||
|
||||
#define GROUP_KDE_DESKTOP_ENTRY "KDE Desktop Entry"
|
||||
#define GROUP_DESKTOP_ACTION "Desktop Action "
|
||||
--
|
||||
2.36.1
|
||||
|
BIN
desktop-file-utils-0.26.tar.xz
(Stored with Git LFS)
Normal file
BIN
desktop-file-utils-0.26.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
17
desktop-file-utils-suse-keys.patch
Normal file
17
desktop-file-utils-suse-keys.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff -r -U 5 a/src/validate.c b/src/validate.c
|
||||
--- a/src/validate.c 2020-06-19
|
||||
+++ b/src/validate.c 2020-06-29
|
||||
@@ -324,10 +324,13 @@
|
||||
{ DESKTOP_BOOLEAN_TYPE, "DBusActivatable", FALSE, FALSE, FALSE, handle_dbus_activatable_key },
|
||||
|
||||
/* Since 1.4 */
|
||||
{ DESKTOP_BOOLEAN_TYPE, "PrefersNonDefaultGPU", FALSE, FALSE, FALSE, NULL },
|
||||
|
||||
+ /* SuSE specific */
|
||||
+ { DESKTOP_BOOLEAN_TYPE, "X-SuSE-translate", FALSE, FALSE, FALSE, NULL },
|
||||
+
|
||||
/* Keys reserved for KDE */
|
||||
|
||||
/* since 0.9.4 */
|
||||
{ DESKTOP_STRING_TYPE, "ServiceTypes", FALSE, FALSE, TRUE, NULL },
|
||||
{ DESKTOP_STRING_TYPE, "DocPath", FALSE, FALSE, TRUE, NULL },
|
776
rpmlint-mini.changes
Normal file
776
rpmlint-mini.changes
Normal file
@ -0,0 +1,776 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 1 12:02:45 UTC 2024 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
- Don't include copy of libm
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 13 12:02:34 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Bump to python311
|
||||
- Clarify script interpreter line
|
||||
- update rpmlintrc
|
||||
- Don't install buildtime requirement mesonbuild into the custom
|
||||
runtime environment
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 11 09:22:52 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Make rpmlint shebang replacement independent on the shebang in the
|
||||
rpmlint script.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 17 07:56:32 UTC 2023 - Ana Guerrero <ana.guerrero@suse.com>
|
||||
|
||||
- Add BuildRequires on python-packaging to fix build.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 23 06:25:06 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Add patches to avoid bogus errors in post-build checks:
|
||||
* 0001-validate-support-SingleMainWindow-key-from-1.5.patch
|
||||
* 0002-validate-Support-version-1.5.patch
|
||||
* desktop-file-utils-suse-keys.patch
|
||||
|
||||
- Update desktop-file-utils source to 0.26:
|
||||
* Support for Autotools removed in the next release.
|
||||
* update-desktop-database
|
||||
+ Fix erroneous installation as "desktop-file-update"
|
||||
when using the Meson build system
|
||||
|
||||
- Update to version 0.25:
|
||||
* common
|
||||
+ Add Meson build system
|
||||
* desktop-file-validate
|
||||
+ Allow desktop file spec version 1.4.
|
||||
+ Make it possible to deprecate keys starting with "X-".
|
||||
+ Add the "Implements" field from spec version 1.2.
|
||||
+ Add the "PrefersNonDefaultGPU" key and deprecate "X-KDE-RunOnDiscreteGpu".
|
||||
+ Set locale for correct output message encoding.
|
||||
+ Add coloured output support.
|
||||
+ Fix parsing of escaped double quote in quoted strings.
|
||||
+ Add GNOME Flashback, GNOME Classic desktops.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 29 10:43:27 UTC 2023 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Depend on python-magic Python package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 2 14:50:24 UTC 2023 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
- Don't include copy of libc
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 12 07:27:17 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Remove extra %make_build arguments.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 5 16:50:16 UTC 2022 - Christopher Yeleighton <giecrilj@stegny.2a.pl>
|
||||
|
||||
- Copy libraries required by _rpm.cpython to the testing root (boo#1203093).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 25 08:02:16 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Replace toml library with tomli.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 9 09:42:24 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Use python310 flavor explicitly, irrespective of the primary
|
||||
python3 flavor du jour.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 7 23:29:36 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Migration of primary Python interpreter to 3.10
|
||||
* update stdlib.txt: encoding, importlib, lib-dynload,
|
||||
dataclasses, ast
|
||||
* Remove deprecated stdlib distutils from the venv
|
||||
(not used by rpmlint)
|
||||
* Do not install+delete pip in the venv
|
||||
- Update URL
|
||||
- Explicit BuildRequires: python-rpm-macros -- sitelib macros
|
||||
are used.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 5 10:52:37 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Enable --time-report.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 2 10:26:05 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- include typing.py into the installed stdlib because
|
||||
python-zstandard is typed now.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 1 13:08:22 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Support updated python-zstandard package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 10 19:47:37 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Fix spec file: install zstdandard package properly.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 10 15:31:47 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Add rpmlintrc filter for pycparser Python package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 6 12:12:52 UTC 2021 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Install %{_libdir}/libmpdec*.so.* to venv as it can be used
|
||||
by _pydecimal.py python module.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 30 13:15:03 UTC 2021 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Share Version with rpmlint package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 6 08:48:02 UTC 2021 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Add run-time requirement for polkit-default-privs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 5 17:56:38 UTC 2021 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Rely on rpmlint auto-loading support for rpmlintrc files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 5 13:11:51 UTC 2021 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Do not copy .override. config files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 3 07:29:17 UTC 2021 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Properly redirect stdout to /dev/null.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 26 06:28:35 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Try two for supporting multiple rpmlintrc, since shell for loops
|
||||
always loop, even if the files don't exist.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 23 04:55:34 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Support multiple rpmlintrc files correctly.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 22 15:22:01 UTC 2021 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Use --mini-mode when calling rpmlint from rpmlint-mini package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 12 02:29:45 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to require rpmlint >= 2.
|
||||
* Due to rpmlint now being a proper Python package, build a virtual
|
||||
environment, and copy all Python requirements into it.
|
||||
* Replace rpmlint-deps.txt with stdlib.txt, as we need to provide the
|
||||
Python standard library directly.
|
||||
* Lightly rewrite rpmlint.wrapper to support the new world order.
|
||||
- Drop the config snippets, they are not required with rpmlint 2.
|
||||
- Renumber Source numbers.
|
||||
- Filter some more warnings in rpmlint-mini.rpmlintrc.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 25 09:24:35 UTC 2021 - Matthias Gerstner <matthias.gerstner@suse.com>
|
||||
|
||||
- apply workaround for situations in which regular rpmlint is invoked when
|
||||
building rpmlint-mini. Regular rpmlint does not implicitly add rpmlintrc
|
||||
files, causing fatal badness to occur when building rpmlint-mini. Therefore
|
||||
explicitly copy our rpmlintrc to a location that is processed by regular
|
||||
rpmlint, too.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 10 09:23:46 UTC 2020 - matthias.gerstner@suse.com
|
||||
|
||||
- Update of rpmlint-security-whitelistings:
|
||||
* world-writable-whitelist: fix mixed tabs/whitespace
|
||||
* device-files-whitelist: fix mode of named: urandom dev file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 12 11:50:49 UTC 2020 - matthias.gerstner@suse.com
|
||||
|
||||
- seucirty-whitelistings: update to version master:
|
||||
* Introduce new metadata based whitelistings for device files and world-writable files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 28 07:39:48 UTC 2020 - matthias.gerstner@suse.com
|
||||
|
||||
- Update to version master:
|
||||
* opa-ff: add wildcard whitelisting (bsc#1174464)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 13 09:32:06 UTC 2020 - matthias.gerstner@suse.com
|
||||
|
||||
- Update to version master:
|
||||
* whitelist ppc64-diag cron job (bsc#1173044)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 12 08:50:17 UTC 2020 - matthias.gerstner@suse.com
|
||||
|
||||
- Update to version master:
|
||||
* cron-whitelist: adjust bug reference to point to real bug, not the sr#
|
||||
(opa-ff bsc#1172859)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 10 08:57:19 UTC 2020 - matthias.gerstner@suse.com
|
||||
|
||||
- Update to version master:
|
||||
* cron-whitelist: follow-up digest for opa-ff
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 09 14:05:23 UTC 2020 - matthias.gerstner@suse.com
|
||||
|
||||
- Update of security-whitelistings tarball:
|
||||
* cron-whitelist: follow-up whitelisting for nextcloud (bsc#1168964)
|
||||
* clarify audit sections
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 20 21:29:54 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||
|
||||
- fix typo in codec setting (bsc#1165110)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 05 13:03:11 UTC 2020 - matthias.gerstner@suse.com
|
||||
|
||||
- Update to version master:
|
||||
* cron-whitelist: remove bad duplicate entry for texlive-filesystem
|
||||
* verify.py: catch duplicate dictionary entries in JSON
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 04 09:37:44 UTC 2020 - matthias.gerstner@suse.com
|
||||
|
||||
- Update to version master:
|
||||
* cron-whitelist: add entry for sarg (bsc#1150554)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 02 14:29:17 UTC 2020 - matthias.gerstner@suse.com
|
||||
|
||||
rpmlint-security-whitelistings:
|
||||
Update to version master:
|
||||
* cron-whitelist: add opa-ff (bsc#1162255)
|
||||
* cron-whitelist: add matomo (bsc#1150548)
|
||||
* cron-whitelist: preliminary wildcard whitelisting for the notorious texlive-filesystem (bsc#1150556)
|
||||
* cron-whitelist: whitelist new nextcloud cron job
|
||||
* first round of whitelisting of safe cron jobs (bsc#1150175)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 16 14:00:13 UTC 2019 - Johannes Segitz <jsegitz@suse.de>
|
||||
|
||||
- Extended rpmlint-mini.config to include the config file provided
|
||||
by rpmlint-Factory-strict
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 14 21:18:58 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Use wildcard for Python ABI tag when copying files, fixes build
|
||||
with Python 3.8 (the has been irrelevant since 3.4 and has been
|
||||
removed with 3.8).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 10 14:50:26 UTC 2019 - matthias.gerstner@suse.com
|
||||
|
||||
- Update to version master:
|
||||
* add _servicedata which I forgot previously when adding the new
|
||||
rpmlnit-security-whitelistings.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 6 15:42:19 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Sort file list to build .pyc files reproducibly
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 19 12:36:58 UTC 2019 - matthias.gerstner@suse.com
|
||||
|
||||
- include new rpmlint-security-whitelistings. This will in the future house
|
||||
a whitelist for cron jobs (bsc#1150175), among possible additional future
|
||||
whitelists.
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 27 06:55:22 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Avoid bash-specific constructs in build recipe
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 13 11:44:23 UTC 2019 - Dirk Mueller <dmueller@suse.com>
|
||||
|
||||
- update desktop-file-utils to 0.24 release
|
||||
+ Allow desktop file spec version 1.2.
|
||||
+ Add Budgie, Deepin, Enlightenment and Pantheon to list of
|
||||
registered desktop environments.
|
||||
+ Sort output lines internally to conserve reproducibility.
|
||||
+ Use pledge(2) on OpenBSD to limit capabilities.
|
||||
+ Fix missing ; when appending to a list not ending with one.
|
||||
+ Add font as valid media type.
|
||||
+ Fix broken emacs blocking compile.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 25 13:58:53 UTC 2019 - matthias.gerstner@suse.com
|
||||
|
||||
- Add dependency to new polkit-whitelisting subpackage of polkit-default-privs
|
||||
and embed the JSON file for polkit rules.d whitelistings. This is necessary
|
||||
for the upcoming implementation of a new rpmlint-check to cover files in
|
||||
/etc/polkit-1/rules.d and /usr/share/polkit-1/rules.d (bsc#1125314).
|
||||
- For this we will also need the json python module, since the new whitelist
|
||||
will be in the JSON format.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 26 13:35:59 UTC 2018 - matwey.kornilov@gmail.com
|
||||
|
||||
- Add imp and pickle to rpmlint-deps.txt
|
||||
they are required by python-construct=2.9
|
||||
which is required by python-pybeam=0.5
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 15 19:34:27 UTC 2018 - jslaby@suse.com
|
||||
|
||||
- python is 3.7, so update rpmlint-deps.txt (use ? instead of minor
|
||||
version)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 4 16:00:06 UTC 2017 - dimstar@opensuse.org
|
||||
|
||||
- rpmlint-deps.txt: Follow changes from rpm and copy _rpm*.so
|
||||
instead of _rpm.so (the name is newly extended with .cpython).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 1 12:51:43 UTC 2017 - dmueller@suse.com
|
||||
|
||||
- set locale to C.utf8 to avoid non-ascii warnings
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 24 13:03:02 UTC 2017 - jengelh@inai.de
|
||||
|
||||
- Update descriptions. Use better-performing find invocations.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 11:48:37 UTC 2017 - dmueller@suse.com
|
||||
|
||||
- don't include a copy of libmagic (bsc#976406)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 12 14:30:13 UTC 2017 - stefan.bruens@rwth-aachen.de
|
||||
|
||||
- Use wildcard for sysconfigdata architecture in rpmlint-deps.txt
|
||||
- Use wildcard for abi in rpmlint-deps.txt, e.g. armv7hl is gnueabihf
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 10 11:40:49 UTC 2017 - dmueller@suse.com
|
||||
|
||||
- also import ElementTree
|
||||
- include pybeam also for lib64 architectures
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 28 12:32:54 UTC 2017 - dmueller@suse.com
|
||||
|
||||
- rebuild against rpmlint 1.10
|
||||
drops: rpmlint-deps.patch
|
||||
- Switch to Python 3.x
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 26 07:10:46 UTC 2017 - matwey.kornilov@gmail.com
|
||||
|
||||
- Add rpmlint-deps.patch:
|
||||
Revert 'Adapt rpmlint-deps.txt for python-construct >= 2.8'
|
||||
for Leap 42.x
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 1 10:39:09 UTC 2017 - meissner@suse.com
|
||||
|
||||
- buildignore ourselves to allow better bootstrapping.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 18 12:51:56 UTC 2017 - matwey.kornilov@gmail.com
|
||||
|
||||
- Adapt rpmlint-deps.txt for python-construct >= 2.8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 9 12:08:04 UTC 2016 - dimstar@opensuse.org
|
||||
|
||||
- Configure appdata_checker: pass --nonet in plus: as OBS has no
|
||||
internet access, every appdata file containing screenshots would
|
||||
be marked as 'failed' otherwise.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 28 16:17:29 UTC 2016 - dmueller@suse.com
|
||||
|
||||
- update desktop-file-utils to 0.23:
|
||||
+ Accept version 1.1 desktop files.
|
||||
+ Add Cinnamon, EDE and LXQt to the list of registered desktop
|
||||
environments (fdo#73497, fdo#56353, fdo#79561).
|
||||
+ Allow multipart/related MIME type; it's used for MHTML
|
||||
(fdo#93376).
|
||||
+ Ensure DBusActivatable filenames conform to reverse-DNS
|
||||
notation (fdo#66904).
|
||||
+ Downgrade trailing semicolons to optional (fdo#76902).
|
||||
+ Fix buffer over-read (fdo#94303).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 20 13:04:40 UTC 2016 - werner@suse.de
|
||||
|
||||
- Also copy magic and magic.mgc to /opt/testing to have the
|
||||
correct magic files for the used libmagic around.
|
||||
Use the environment variable MAGIC to hel the wrapper to
|
||||
to find the magic file for its libmagic (boo#976406)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 22 07:48:27 UTC 2016 - dmueller@suse.com
|
||||
|
||||
- raise version to 1.8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 20 15:33:21 UTC 2015 - lnussel@suse.de
|
||||
|
||||
- add lib-dynload/unicodedata.so required by rpmlint 1.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 26 13:17:39 UTC 2014 - matwey.kornilov@gmail.com
|
||||
|
||||
- package dependencies of ErlangCheck.py:
|
||||
- python-pybeam
|
||||
- python-construct
|
||||
- python-six
|
||||
note, that ErlangCheck.py is not enabled by default
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 3 08:56:55 UTC 2013 - dmueller@suse.com
|
||||
|
||||
- repackage libedit0 dependency of dash
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 2 09:03:19 UTC 2013 - lnussel@suse.de
|
||||
|
||||
- dash is in /usr/bin now
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 24 16:00:15 UTC 2013 - dmueller@suse.com
|
||||
|
||||
- no longer install rpmgroups.config
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 2 08:32:51 UTC 2013 - dmueller@suse.com
|
||||
|
||||
- update to desktop-file-validate 0.22:
|
||||
- add DBusActivatable key to allowed keys
|
||||
- warn about OnlyShowIn in Action groups
|
||||
- allow validating multiple desktop files
|
||||
- improve help output
|
||||
- update man page
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 28 16:16:25 UTC 2013 - dmueller@suse.com
|
||||
|
||||
- update to desktop-file-validate 0.21:
|
||||
- update to current version of menu specification (Vincent):
|
||||
- only print hint if no main category is present, not an error
|
||||
- make Science a main category
|
||||
- add new registered categories: Adult, Feed, Humanities, Maps,
|
||||
Shooter, Spirituality, XFCE
|
||||
- update related categories
|
||||
- add TDE to list of registered OnlyShowIn
|
||||
- accept and validate GNOME3/GSettings for AutostartCondition (Vincent)
|
||||
- output hint if more than one main category is present (Vincent)
|
||||
- output hint about suggested related categories (Vincent)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 26 14:20:21 UTC 2013 - dmueller@suse.com
|
||||
|
||||
- fix build against python 2.7.5
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 2 12:48:55 UTC 2013 - dmueller@suse.com
|
||||
|
||||
- bump version to 1.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 28 09:06:47 UTC 2012 - coolo@suse.com
|
||||
|
||||
- fix build by passing rpmlint :)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 28 05:33:05 UTC 2012 - coolo@suse.com
|
||||
|
||||
- let it require cpio - the same as with rpmlint
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 12 08:34:30 UTC 2012 - dmueller@suse.com
|
||||
|
||||
- update to desktop-file-validate 0.20 (bnc#779850):
|
||||
- add MATE and Razor to list of registered environments (Vincent)
|
||||
- validate Desktop Actions (Giovanni Campagna, Vincent)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 24 13:42:16 UTC 2012 - giecrilj@stegny.2a.pl
|
||||
|
||||
- add documentation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 21 11:02:56 CET 2011 - dmueller@suse.de
|
||||
|
||||
- update desktop-file-validate to 0.19:
|
||||
- add Unity to list of registered environments
|
||||
- deal with various zz-application/zz-winassoc-XXX mime types
|
||||
- mark all zz-application/* MIME types as aliases
|
||||
- add support for updated Keywords key
|
||||
- accept x-scheme-handler/* mime types
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 29 12:17:48 UTC 2011 - lnussel@suse.de
|
||||
|
||||
- install licenses.config
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 24 11:39:18 CEST 2011 - dmueller@suse.de
|
||||
|
||||
- add the new abuild build path to the search dir list
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 18 22:17:22 CEST 2011 - dmueller@suse.de
|
||||
|
||||
- bump version to 1.3 (matching rpmlint update)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 8 16:18:47 UTC 2011 - dmueller@novell.com
|
||||
|
||||
- fix magic detection after the file update to 5.07
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 20 11:08:25 CEST 2011 - dmueller@suse.de
|
||||
|
||||
- bump version to 1.2 (matching rpmlint update)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 11 13:15:25 UTC 2011 - lnussel@suse.de
|
||||
|
||||
- include pie.config
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 19 08:46:32 UTC 2011 - lnussel@suse.de
|
||||
|
||||
- allow adding configs via RPMLINT_MINI_CONFIG
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 18 12:31:41 UTC 2011 - lnussel@suse.de
|
||||
|
||||
- add missing deps
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 15 21:27:18 CEST 2011 - dmueller@suse.de
|
||||
|
||||
- bump version to 1.1 (matching rpmlint update)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 10 14:46:57 UTC 2011 - lnussel@suse.de
|
||||
|
||||
- rlwarn was renamed to warn
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 21 16:24:44 UTC 2010 - coolo@novell.com
|
||||
|
||||
- fix lib requirements of libglib
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 11 08:53:06 CET 2010 - dmueller@suse.de
|
||||
|
||||
- bump version to 1.0 (match rpmlint update)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 27 13:36:25 CEST 2010 - dmueller@suse.de
|
||||
|
||||
- bump version to 0.99 (match rpmlint update)
|
||||
- buildrequire glib2-devel-static (new package split)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 20 11:01:31 CEST 2010 - dmueller@suse.de
|
||||
|
||||
- fix build against autoconf 2.67
|
||||
+ update to desktop-file-utils 0.17:
|
||||
- accept chemical/* mime types as valid types
|
||||
- make icon names with an extension for Icon key a non-fatal
|
||||
error
|
||||
- check that a main category is included in the Categories
|
||||
- check that categories required by another one are present
|
||||
- do not always show warnings about KDE specific uses
|
||||
- check that the Comment does not look like the Name and the
|
||||
GenericName
|
||||
- display error about multiple keys with the same name earlier
|
||||
- improve MIME type check to make sure that the MIME types are
|
||||
valid
|
||||
- add LXDE in the list of registered OnlyShowIn values
|
||||
- add "warning" to error strings to make them easily greppable
|
||||
- handle AutostartCondition key, as proposed for the autostart
|
||||
specification and used in GNOME
|
||||
- accept empty Categories key as valid
|
||||
- make new errors non-fatal to give some time to maintainers to
|
||||
fix their .desktop file after a release of desktop-file-utils
|
||||
- plug leak
|
||||
- code cleanups
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 12 23:33:34 CEST 2010 - dmueller@suse.de
|
||||
|
||||
- fix build against python 2.7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 3 13:16:11 CEST 2010 - dmueller@suse.de
|
||||
|
||||
- add string_escape to dependencies, needed by checkbashisms
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 20 09:29:26 UTC 2010 - guido+opensuse.org@berhoerster.name
|
||||
|
||||
- include dash and checkbashisms needed by BashismsCheck
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 29 11:47:51 CEST 2010 - dmueller@suse.de
|
||||
|
||||
- update dependency list for rpmlint 0.95 / rpm 4.8.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 26 09:49:20 UTC 2010 - lnussel@suse.de
|
||||
|
||||
- fix polkit check
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 25 14:27:35 UTC 2010 - lnussel@suse.de
|
||||
|
||||
- configure CheckPolkitPrivs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 21 14:11:47 UTC 2010 - lnussel@suse.de
|
||||
|
||||
- remove error prone package-rpmlintrc.diff. Instead have rpmlint
|
||||
execute a file via standard means which in turn reads custom
|
||||
configs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 13 13:59:27 UTC 2010 - lnussel@suse.de
|
||||
|
||||
- add rpmgroups.config
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 28 13:21:20 UTC 2009 - lnussel@suse.de
|
||||
|
||||
- include python-magic to fix e.g. the 'no-binary' check (bnc#539042)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 16 18:42:48 CEST 2009 - mrueckert@suse.de
|
||||
|
||||
- fix build with rpmlint 0.90
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 24 12:00:44 UTC 2009 - lnussel@suse.de
|
||||
|
||||
- fix build with rpmlint 0.87
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 23 15:01:16 CET 2009 - lnussel@suse.de
|
||||
|
||||
- include StringIO.pyo, needed by xml module used by the dbus policy
|
||||
check to print useful errors
|
||||
|
||||
--------------------------------------------------------------------
|
||||
Thu Dec 11 14:08:21 CET 2008 - lnussel@suse.de
|
||||
|
||||
- add python-xml parts needed for PolicyKit checks
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 27 17:15:45 CEST 2008 - adrian@suse.de
|
||||
|
||||
- fix dependencies of python again (bnc#430381)
|
||||
- add self check to avoid breakage in future
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 8 12:56:22 CEST 2008 - ro@suse.de
|
||||
|
||||
- next try to get a working rpmlint again
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 8 10:59:12 CEST 2008 - dmueller@suse.de
|
||||
|
||||
- fix build again
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 8 00:01:16 CEST 2008 - dmueller@suse.de
|
||||
|
||||
- fix build for python 2.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 24 11:58:01 CEST 2008 - dmueller@suse.de
|
||||
|
||||
- support even OBS style of building
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 30 13:19:56 CEST 2008 - schwab@suse.de
|
||||
|
||||
- Fix syntax error.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 28 00:44:55 CEST 2008 - dmueller@suse.de
|
||||
|
||||
- ignore warnings in the test package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 10 16:09:33 CET 2008 - dmueller@suse.de
|
||||
|
||||
- update desktop-file-validate to 0.14
|
||||
* for changelog, see desktop-file-utils package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 13 15:59:23 CET 2008 - dmueller@suse.de
|
||||
|
||||
- update to (also) build rpmlint 0.82
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 22 18:22:40 CET 2007 - dmueller@suse.de
|
||||
|
||||
- add missing utf8 module (#343642)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 29 12:56:30 CET 2007 - dmueller@suse.de
|
||||
|
||||
- update to (also) build rpmlint 0.81
|
||||
- update desktop-file-validate to 0.14
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 21 23:55:01 CEST 2007 - dmueller@suse.de
|
||||
|
||||
- refresh patches
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 7 14:19:04 CEST 2007 - dmueller@suse.de
|
||||
|
||||
- update desktop-file-validate to 0.13
|
||||
- fix build for lib64 archs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 6 17:14:53 CEST 2007 - dmueller@suse.de
|
||||
|
||||
- add static copy of desktop-file-validate to fix
|
||||
the rpmlint check for desktop files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 5 01:13:56 CEST 2007 - dmueller@suse.de
|
||||
|
||||
- remove source files to reduce size
|
||||
- read $RPM_SOURCE_DIR/%{name}-%{version}-rpmlintrc as well
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 24 16:45:56 CEST 2007 - dmueller@suse.de
|
||||
|
||||
- read $RPM_SOURCE_DIR/rpmlintrc as well to allow
|
||||
package specific overrides
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 15 17:59:43 CEST 2007 - dmueller@suse.de
|
||||
|
||||
- Initial package
|
||||
|
9
rpmlint-mini.rpmlintrc
Normal file
9
rpmlint-mini.rpmlintrc
Normal file
@ -0,0 +1,9 @@
|
||||
addFilter("wrong-script-interpreter")
|
||||
addFilter("library-without-ldconfig")
|
||||
addFilter("python-bytecode-without-source")
|
||||
addFilter("python-missing-require")
|
||||
addFilter("files-duplicate")
|
||||
addFilter("filelist-forbidden-opt")
|
||||
addFilter("invalid-url")
|
||||
addFilter("E: devel-file-in-non-devel-package .*site-packages.*fake_libc_include.*")
|
||||
addFilter("binary-or-shlib-calls-gethostbyname .*_socket.cpython.*.so")
|
157
rpmlint-mini.spec
Normal file
157
rpmlint-mini.spec
Normal file
@ -0,0 +1,157 @@
|
||||
#
|
||||
# spec file for package rpmlint-mini
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
# This works regardless of the primary python3 flavor. The stdlib.txt and
|
||||
# install section depend on the python 3.11 layout.
|
||||
%define python_flavor python311
|
||||
%define my_python %{expand:%{__%{python_flavor}}}
|
||||
|
||||
Name: rpmlint-mini
|
||||
Version: %(rpm -q rpmlint --qf '%%{VERSION}')
|
||||
Release: 0
|
||||
Summary: RPM file correctness checker
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://github.com/rpm-software-management/rpmlint
|
||||
Source0: desktop-file-utils-0.26.tar.xz
|
||||
Source1: stdlib.txt
|
||||
Source2: rpmlint.wrapper
|
||||
Source3: rpmlint-mini.rpmlintrc
|
||||
|
||||
# PATCH-FEATURE-OPENSUSE desktop-file-utils-suse-keys.patch vuntz@opensuse.org -- Handle SUSE-specific keys in validator. This is not strictly necessary, since they are prefixed with X-, but we can verify that the value has the right type.
|
||||
Patch0: desktop-file-utils-suse-keys.patch
|
||||
# PATCH-FIX-UPSTREAM -- SingleMainWindow is present in xdg-specs 1.5 and can be used by both GNOME and KDE
|
||||
Patch2: 0001-validate-support-SingleMainWindow-key-from-1.5.patch
|
||||
Patch3: 0002-validate-Support-version-1.5.patch
|
||||
|
||||
# need to fetch the file from there
|
||||
BuildRequires: checkbashisms
|
||||
# the main package rpmlint's python3 runtime requirements do not necessarily match our target flavor
|
||||
BuildRequires: %{python_flavor}-base
|
||||
BuildRequires: %{python_flavor}-packaging
|
||||
BuildRequires: %{python_flavor}-pybeam
|
||||
BuildRequires: %{python_flavor}-pyenchant
|
||||
BuildRequires: %{python_flavor}-python-magic
|
||||
BuildRequires: %{python_flavor}-pyxdg
|
||||
BuildRequires: %{python_flavor}-rpm
|
||||
BuildRequires: %{python_flavor}-tomli
|
||||
BuildRequires: %{python_flavor}-tomli-w
|
||||
BuildRequires: %{python_flavor}-xml
|
||||
BuildRequires: %{python_flavor}-zstandard
|
||||
BuildRequires: dash
|
||||
BuildRequires: glib2-devel
|
||||
BuildRequires: glib2-devel-static
|
||||
BuildRequires: libedit-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: meson
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: rpmlint >= 2
|
||||
#!BuildIgnore: rpmlint-mini
|
||||
Requires: cpio
|
||||
Requires: polkit-default-privs
|
||||
|
||||
%description
|
||||
rpmlint is a tool to check common errors on RPM packages. Binary and
|
||||
source packages can be checked.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n desktop-file-utils-0.26
|
||||
|
||||
%build
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
# Check that rpmlint works at all, with the primary flavor
|
||||
set +e
|
||||
%{_bindir}/rpmlint -i rpmlint
|
||||
test $? -gt 0 -a $? -lt 60 && exit 1
|
||||
set -e
|
||||
# Check that we have all required python modules in the target flavor
|
||||
for p in $(rpm -q --requires rpmlint | grep '^python3-'); do
|
||||
rpm -q --whatprovides ${p/python3-/%{python_flavor}-}
|
||||
done
|
||||
# Build a virtual env
|
||||
%my_python -m venv %{buildroot}/opt/testing --without-pip --copies
|
||||
# We don't need activation
|
||||
rm %{buildroot}/opt/testing/bin/activate*
|
||||
# We need these available
|
||||
cp -a %{_vpath_builddir}/src/desktop-file-validate %{buildroot}/opt/testing/bin
|
||||
cp -a %{_bindir}/dash %{_bindir}/checkbashisms %{buildroot}/opt/testing/bin
|
||||
cp -a %{_libdir}/libedit.so.0* %{buildroot}/opt/testing/lib
|
||||
# Install config files
|
||||
install -d -m 755 %{buildroot}/opt/testing/share
|
||||
cp -a %{_sysconfdir}/xdg/rpmlint %{buildroot}/opt/testing/share
|
||||
# Override configs are selectively taken from rpmlint-strict
|
||||
rm -f %{buildroot}/opt/testing/share/rpmlint/*.override.toml
|
||||
# Python standard library, rpmlint dependencies, and the interpreter
|
||||
pushd %{_libdir}/python%{python_version}
|
||||
for file in $(cat %{SOURCE1}); do
|
||||
exp=$(ls -1 $file)
|
||||
install -D -m 644 $exp %{buildroot}/opt/testing/lib/python%{python_version}/$exp
|
||||
done
|
||||
popd
|
||||
ldd %{python_sitearch}/rpm/*.so | while read L T R A
|
||||
do
|
||||
# skip libc/libm, they must match the system ld.so (which we cannot replace)
|
||||
case $L in lib[cm].*) continue;; esac
|
||||
cp '-aLt%{buildroot}/opt/testing/lib' "${R}" || # is it a virtual library?
|
||||
! <"${R}" || # it is a real library and still could not be copied
|
||||
false # this is necessary to really fail
|
||||
done
|
||||
cp -a %{python_sitearch}/{rpm,zstandard}* \
|
||||
%{buildroot}/opt/testing/lib/python%{python_version}/site-packages
|
||||
cp -a %{python_sitelib} %{buildroot}/opt/testing/lib/python%{python_version}
|
||||
cp -a %{python3_sitelib}/rpmlint* %{buildroot}/opt/testing/lib/python%{python_version}
|
||||
cp -a %{_libdir}/libpython%{python_version}*.so.* %{buildroot}/opt/testing/lib
|
||||
cp -a %{_libdir}/libexpat*.so.* %{buildroot}/opt/testing/lib
|
||||
cp -a %{_libdir}/libmpdec*.so.* %{buildroot}/opt/testing/lib || echo "Skipping libmpdec.so"
|
||||
pushd %{buildroot}/opt/testing/lib/python%{python_version}/
|
||||
rm -r site-packages/meson*
|
||||
for f in $(find -name \*.py | sort) ; do
|
||||
PYTHONOPTIMIZE=1 %{my_python} -O -m compileall -b $f
|
||||
rm $f
|
||||
done
|
||||
popd
|
||||
find %{buildroot}/opt/testing/ -name __pycache__ -exec rm -rf {} +
|
||||
# Change the script-interpreter line to use our custom python venv in /opt/testing
|
||||
sed -e '1s,#!.*python.*,#!/opt/testing/bin/python3,' %{_bindir}/rpmlint > %{buildroot}/opt/testing/bin/rpmlint.real
|
||||
|
||||
chmod a+x %{buildroot}/opt/testing/bin/rpmlint.real
|
||||
rm -rf %{buildroot}/{usr,etc}
|
||||
install -m 755 -D %{SOURCE2} %{buildroot}/opt/testing/bin/rpmlint
|
||||
# We don't want requirements of libraries, or the odd shebang
|
||||
%define __requires_exclude (^lib.*|python3)$
|
||||
# We don't want to provide any libraries, or Python modules we ship
|
||||
%define __provides_exclude ^(lib|python)
|
||||
|
||||
%check
|
||||
# check rpmlint-mini with the custom flavor
|
||||
%meson_test
|
||||
sed -e 's|/opt|%{buildroot}/opt|' -e 's|exec|%my_python|' %{buildroot}/opt/testing/bin/rpmlint > myrpmlint
|
||||
chmod +x myrpmlint
|
||||
set +e
|
||||
sh -x myrpmlint -i rpmlint
|
||||
test $? -gt 0 -a $? -lt 60 && exit 1
|
||||
set -e
|
||||
|
||||
%files
|
||||
/opt/testing
|
||||
%license COPYING
|
||||
|
||||
%changelog
|
10
rpmlint.wrapper
Normal file
10
rpmlint.wrapper
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
LD_LIBRARY_PATH=/opt/testing/lib
|
||||
PATH="/opt/testing/bin:$PATH"
|
||||
PYTHONHOME=/opt/testing
|
||||
XDG_CONFIG_HOME="/opt/testing/share"
|
||||
LC_ALL=en_US.utf-8
|
||||
export PYTHONHOME LD_LIBRARY_PATH LC_ALL XDG_CONFIG_HOME
|
||||
# rely on rpmlint auto-loading support for rpmlintrc files
|
||||
exec /opt/testing/bin/rpmlint.real --mini-mode --time-report $@
|
367
stdlib.txt
Normal file
367
stdlib.txt
Normal file
@ -0,0 +1,367 @@
|
||||
__future__.py
|
||||
_collections_abc.py
|
||||
_compat_pickle.py
|
||||
_compression.py
|
||||
_pydecimal.py
|
||||
_sitebuiltins.py
|
||||
_strptime.py
|
||||
_sysconfigdata*.py
|
||||
_weakrefset.py
|
||||
abc.py
|
||||
argparse.py
|
||||
ast.py
|
||||
base64.py
|
||||
bisect.py
|
||||
bz2.py
|
||||
calendar.py
|
||||
codecs.py
|
||||
collections/abc.py
|
||||
collections/__init__.py
|
||||
configparser.py
|
||||
concurrent/__init__.py
|
||||
concurrent/futures/_base.py
|
||||
concurrent/futures/__init__.py
|
||||
concurrent/futures/process.py
|
||||
concurrent/futures/thread.py
|
||||
contextlib.py
|
||||
copy.py
|
||||
copyreg.py
|
||||
csv.py
|
||||
cProfile.py
|
||||
dataclasses.py
|
||||
datetime.py
|
||||
decimal.py
|
||||
dis.py
|
||||
email/base64mime.py
|
||||
email/charset.py
|
||||
email/contentmanager.py
|
||||
email/_encoded_words.py
|
||||
email/encoders.py
|
||||
email/errors.py
|
||||
email/feedparser.py
|
||||
email/generator.py
|
||||
email/header.py
|
||||
email/headerregistry.py
|
||||
email/_header_value_parser.py
|
||||
email/__init__.py
|
||||
email/iterators.py
|
||||
email/message.py
|
||||
email/_parseaddr.py
|
||||
email/parser.py
|
||||
email/_policybase.py
|
||||
email/policy.py
|
||||
email/quoprimime.py
|
||||
email/utils.py
|
||||
email/mime/application.py
|
||||
email/mime/audio.py
|
||||
email/mime/base.py
|
||||
email/mime/image.py
|
||||
email/mime/__init__.py
|
||||
email/mime/message.py
|
||||
email/mime/multipart.py
|
||||
email/mime/nonmultipart.py
|
||||
email/mime/text.py
|
||||
encodings/aliases.py
|
||||
encodings/ascii.py
|
||||
encodings/base64_codec.py
|
||||
encodings/big5hkscs.py
|
||||
encodings/big5.py
|
||||
encodings/bz2_codec.py
|
||||
encodings/charmap.py
|
||||
encodings/cp037.py
|
||||
encodings/cp1006.py
|
||||
encodings/cp1026.py
|
||||
encodings/cp1125.py
|
||||
encodings/cp1140.py
|
||||
encodings/cp1250.py
|
||||
encodings/cp1251.py
|
||||
encodings/cp1252.py
|
||||
encodings/cp1253.py
|
||||
encodings/cp1254.py
|
||||
encodings/cp1255.py
|
||||
encodings/cp1256.py
|
||||
encodings/cp1257.py
|
||||
encodings/cp1258.py
|
||||
encodings/cp273.py
|
||||
encodings/cp424.py
|
||||
encodings/cp437.py
|
||||
encodings/cp500.py
|
||||
encodings/cp720.py
|
||||
encodings/cp737.py
|
||||
encodings/cp775.py
|
||||
encodings/cp850.py
|
||||
encodings/cp852.py
|
||||
encodings/cp855.py
|
||||
encodings/cp856.py
|
||||
encodings/cp857.py
|
||||
encodings/cp858.py
|
||||
encodings/cp860.py
|
||||
encodings/cp861.py
|
||||
encodings/cp862.py
|
||||
encodings/cp863.py
|
||||
encodings/cp864.py
|
||||
encodings/cp865.py
|
||||
encodings/cp866.py
|
||||
encodings/cp869.py
|
||||
encodings/cp874.py
|
||||
encodings/cp875.py
|
||||
encodings/cp932.py
|
||||
encodings/cp949.py
|
||||
encodings/cp950.py
|
||||
encodings/euc_jis_2004.py
|
||||
encodings/euc_jisx0213.py
|
||||
encodings/euc_jp.py
|
||||
encodings/euc_kr.py
|
||||
encodings/gb18030.py
|
||||
encodings/gb2312.py
|
||||
encodings/gbk.py
|
||||
encodings/hex_codec.py
|
||||
encodings/hp_roman8.py
|
||||
encodings/hz.py
|
||||
encodings/idna.py
|
||||
encodings/__init__.py
|
||||
encodings/iso2022_jp_1.py
|
||||
encodings/iso2022_jp_2004.py
|
||||
encodings/iso2022_jp_2.py
|
||||
encodings/iso2022_jp_3.py
|
||||
encodings/iso2022_jp_ext.py
|
||||
encodings/iso2022_jp.py
|
||||
encodings/iso2022_kr.py
|
||||
encodings/iso8859_10.py
|
||||
encodings/iso8859_11.py
|
||||
encodings/iso8859_13.py
|
||||
encodings/iso8859_14.py
|
||||
encodings/iso8859_15.py
|
||||
encodings/iso8859_16.py
|
||||
encodings/iso8859_1.py
|
||||
encodings/iso8859_2.py
|
||||
encodings/iso8859_3.py
|
||||
encodings/iso8859_4.py
|
||||
encodings/iso8859_5.py
|
||||
encodings/iso8859_6.py
|
||||
encodings/iso8859_7.py
|
||||
encodings/iso8859_8.py
|
||||
encodings/iso8859_9.py
|
||||
encodings/johab.py
|
||||
encodings/koi8_r.py
|
||||
encodings/koi8_t.py
|
||||
encodings/koi8_u.py
|
||||
encodings/kz1048.py
|
||||
encodings/latin_1.py
|
||||
encodings/mac_arabic.py
|
||||
encodings/mac_croatian.py
|
||||
encodings/mac_cyrillic.py
|
||||
encodings/mac_farsi.py
|
||||
encodings/mac_greek.py
|
||||
encodings/mac_iceland.py
|
||||
encodings/mac_latin2.py
|
||||
encodings/mac_romanian.py
|
||||
encodings/mac_roman.py
|
||||
encodings/mac_turkish.py
|
||||
encodings/mbcs.py
|
||||
encodings/oem.py
|
||||
encodings/palmos.py
|
||||
encodings/ptcp154.py
|
||||
encodings/punycode.py
|
||||
encodings/quopri_codec.py
|
||||
encodings/raw_unicode_escape.py
|
||||
encodings/rot_13.py
|
||||
encodings/shift_jis_2004.py
|
||||
encodings/shift_jis.py
|
||||
encodings/shift_jisx0213.py
|
||||
encodings/tis_620.py
|
||||
encodings/undefined.py
|
||||
encodings/unicode_escape.py
|
||||
encodings/utf_16_be.py
|
||||
encodings/utf_16_le.py
|
||||
encodings/utf_16.py
|
||||
encodings/utf_32_be.py
|
||||
encodings/utf_32_le.py
|
||||
encodings/utf_32.py
|
||||
encodings/utf_7.py
|
||||
encodings/utf_8.py
|
||||
encodings/utf_8_sig.py
|
||||
encodings/uu_codec.py
|
||||
encodings/zlib_codec.py
|
||||
enum.py
|
||||
functools.py
|
||||
fnmatch.py
|
||||
genericpath.py
|
||||
gettext.py
|
||||
gzip.py
|
||||
hashlib.py
|
||||
heapq.py
|
||||
importlib/_abc.py
|
||||
importlib/abc.py
|
||||
importlib/_bootstrap_external.py
|
||||
importlib/_bootstrap.py
|
||||
importlib/__init__.py
|
||||
importlib/machinery.py
|
||||
importlib/metadata/_adapters.py
|
||||
importlib/metadata/_collections.py
|
||||
importlib/metadata/_functools.py
|
||||
importlib/metadata/__init__.py
|
||||
importlib/metadata/_itertools.py
|
||||
importlib/metadata/_meta.py
|
||||
importlib/metadata/_text.py
|
||||
importlib/readers.py
|
||||
importlib/resources/_adapters.py
|
||||
importlib/resources/_common.py
|
||||
importlib/resources/__init__.py
|
||||
importlib/resources/_itertools.py
|
||||
importlib/resources/_legacy.py
|
||||
importlib/resources/abc.py
|
||||
importlib/resources/readers.py
|
||||
importlib/resources/simple.py
|
||||
importlib/simple.py
|
||||
importlib/util.py
|
||||
inspect.py
|
||||
ipaddress.py
|
||||
io.py
|
||||
keyword.py
|
||||
lib-dynload/array.cpython*.so
|
||||
lib-dynload/_asyncio.cpython*.so
|
||||
lib-dynload/audioop.cpython*.so
|
||||
lib-dynload/binascii.cpython*.so
|
||||
lib-dynload/_bisect.cpython*.so
|
||||
lib-dynload/_blake2.cpython*.so
|
||||
lib-dynload/_bz2.cpython*.so
|
||||
lib-dynload/cmath.cpython*.so
|
||||
lib-dynload/_codecs_cn.cpython*.so
|
||||
lib-dynload/_codecs_hk.cpython*.so
|
||||
lib-dynload/_codecs_iso2022.cpython*.so
|
||||
lib-dynload/_codecs_jp.cpython*.so
|
||||
lib-dynload/_codecs_kr.cpython*.so
|
||||
lib-dynload/_codecs_tw.cpython*.so
|
||||
lib-dynload/_contextvars.cpython*.so
|
||||
lib-dynload/_crypt.cpython*.so
|
||||
lib-dynload/_csv.cpython*.so
|
||||
lib-dynload/_ctypes.cpython*.so
|
||||
lib-dynload/_datetime.cpython*.so
|
||||
lib-dynload/_decimal.cpython*.so
|
||||
lib-dynload/_elementtree.cpython*.so
|
||||
lib-dynload/fcntl.cpython*.so
|
||||
lib-dynload/grp.cpython*.so
|
||||
lib-dynload/_hashlib.cpython*.so
|
||||
lib-dynload/_heapq.cpython*.so
|
||||
lib-dynload/_json.cpython*.so
|
||||
lib-dynload/_lsprof.cpython*.so
|
||||
lib-dynload/_lzma.cpython*.so
|
||||
lib-dynload/math.cpython*.so
|
||||
lib-dynload/_md5.cpython*.so
|
||||
lib-dynload/mmap.cpython*.so
|
||||
lib-dynload/_multibytecodec.cpython*.so
|
||||
lib-dynload/_multiprocessing.cpython*.so
|
||||
lib-dynload/_opcode.cpython*.so
|
||||
lib-dynload/ossaudiodev.cpython*.so
|
||||
lib-dynload/_pickle.cpython*.so
|
||||
lib-dynload/_posixshmem.cpython*.so
|
||||
lib-dynload/_posixsubprocess.cpython*.so
|
||||
lib-dynload/pyexpat.cpython*.so
|
||||
lib-dynload/_queue.cpython*.so
|
||||
lib-dynload/_random.cpython*.so
|
||||
lib-dynload/resource.cpython*.so
|
||||
lib-dynload/select.cpython*.so
|
||||
lib-dynload/_sha1.cpython*.so
|
||||
lib-dynload/_sha256.cpython*.so
|
||||
lib-dynload/_sha3.cpython*.so
|
||||
lib-dynload/_sha512.cpython*.so
|
||||
lib-dynload/_socket.cpython*.so
|
||||
lib-dynload/spwd.cpython*.so
|
||||
lib-dynload/_ssl.cpython*.so
|
||||
lib-dynload/_statistics.cpython*.so
|
||||
lib-dynload/_struct.cpython*.so
|
||||
lib-dynload/syslog.cpython*.so
|
||||
lib-dynload/termios.cpython*.so
|
||||
lib-dynload/_typing.cpython*.so
|
||||
lib-dynload/unicodedata.cpython*.so
|
||||
lib-dynload/_uuid.cpython*.so
|
||||
lib-dynload/xxlimited_35.cpython*.so
|
||||
lib-dynload/_xxsubinterpreters.cpython*.so
|
||||
lib-dynload/_xxtestfuzz.cpython*.so
|
||||
lib-dynload/zlib.cpython*.so
|
||||
lib-dynload/_zoneinfo.cpython*.so
|
||||
linecache.py
|
||||
locale.py
|
||||
logging/config.py
|
||||
logging/handlers.py
|
||||
logging/__init__.py
|
||||
lzma.py
|
||||
ntpath.py
|
||||
numbers.py
|
||||
opcode.py
|
||||
operator.py
|
||||
pathlib.py
|
||||
pickle.py
|
||||
pkgutil.py
|
||||
platform.py
|
||||
plistlib.py
|
||||
posixpath.py
|
||||
pprint.py
|
||||
profile.py
|
||||
pstats.py
|
||||
queue.py
|
||||
quopri.py
|
||||
os.py
|
||||
random.py
|
||||
re/_casefix.py
|
||||
re/_compiler.py
|
||||
re/_constants.py
|
||||
re/__init__.py
|
||||
re/_parser.py
|
||||
reprlib.py
|
||||
selectors.py
|
||||
shlex.py
|
||||
shutil.py
|
||||
signal.py
|
||||
site.py
|
||||
socket.py
|
||||
sre_compile.py
|
||||
sre_constants.py
|
||||
sre_parse.py
|
||||
stat.py
|
||||
string.py
|
||||
struct.py
|
||||
subprocess.py
|
||||
sysconfig.py
|
||||
tempfile.py
|
||||
textwrap.py
|
||||
threading.py
|
||||
token.py
|
||||
tokenize.py
|
||||
traceback.py
|
||||
types.py
|
||||
typing.py
|
||||
urllib/error.py
|
||||
urllib/__init__.py
|
||||
urllib/parse.py
|
||||
urllib/request.py
|
||||
urllib/response.py
|
||||
urllib/robotparser.py
|
||||
uu.py
|
||||
warnings.py
|
||||
weakref.py
|
||||
xml/__init__.py
|
||||
xml/dom/domreg.py
|
||||
xml/dom/expatbuilder.py
|
||||
xml/dom/__init__.py
|
||||
xml/dom/minicompat.py
|
||||
xml/dom/minidom.py
|
||||
xml/dom/NodeFilter.py
|
||||
xml/dom/pulldom.py
|
||||
xml/dom/xmlbuilder.py
|
||||
xml/etree/cElementTree.py
|
||||
xml/etree/ElementInclude.py
|
||||
xml/etree/ElementPath.py
|
||||
xml/etree/ElementTree.py
|
||||
xml/etree/__init__.py
|
||||
xml/parsers/expat.py
|
||||
xml/parsers/__init__.py
|
||||
xml/sax/_exceptions.py
|
||||
xml/sax/expatreader.py
|
||||
xml/sax/handler.py
|
||||
xml/sax/__init__.py
|
||||
xml/sax/saxutils.py
|
||||
xml/sax/xmlreader.py
|
||||
zipfile.py
|
||||
zipimport.py
|
Loading…
Reference in New Issue
Block a user