Accepting request 1117674 from home:bnavigator:branches:devel:openSUSE:Factory:rpmlint
- Bump to python311 - Clarify script interpreter line - update rpmlintrc - Don't install buildtime requirement mesonbuild into the custom runtime environment OBS-URL: https://build.opensuse.org/request/show/1117674 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint-mini?expand=0&rev=181
This commit is contained in:
parent
3488f90440
commit
1bfe509135
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Wed Oct 11 09:22:52 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
addFilter("wrong-script-interpreter")
|
addFilter("wrong-script-interpreter")
|
||||||
addFilter("library-without-ldconfig")
|
addFilter("library-without-ldconfig")
|
||||||
addFilter("python-bytecode-without-source")
|
addFilter("python-bytecode-without-source")
|
||||||
|
addFilter("python-missing-require")
|
||||||
addFilter("files-duplicate")
|
addFilter("files-duplicate")
|
||||||
addFilter("filelist-forbidden-opt")
|
addFilter("filelist-forbidden-opt")
|
||||||
addFilter("invalid-url")
|
addFilter("invalid-url")
|
||||||
addFilter("E: devel-file-in-non-devel-package .*site-packages.*fake_libc_include.*")
|
addFilter("E: devel-file-in-non-devel-package .*site-packages.*fake_libc_include.*")
|
||||||
|
addFilter("binary-or-shlib-calls-gethostbyname .*_socket.cpython.*.so")
|
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
|
|
||||||
# This works regardless of the primary python3 flavor. The stdlib.txt and
|
# This works regardless of the primary python3 flavor. The stdlib.txt and
|
||||||
# install section depend on the python 3.10 layout.
|
# install section depend on the python 3.11 layout.
|
||||||
%define python_flavor python310
|
%define python_flavor python311
|
||||||
%define my_python %{expand:%{__%{python_flavor}}}
|
%define my_python %{expand:%{__%{python_flavor}}}
|
||||||
|
|
||||||
Name: rpmlint-mini
|
Name: rpmlint-mini
|
||||||
@ -71,7 +71,6 @@ source packages can be checked.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n desktop-file-utils-0.26
|
%autosetup -p1 -n desktop-file-utils-0.26
|
||||||
<COPYING
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%meson
|
%meson
|
||||||
@ -123,13 +122,14 @@ cp -a %{_libdir}/libpython%{python_version}*.so.* %{buildroot}/opt/testing/lib
|
|||||||
cp -a %{_libdir}/libexpat*.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"
|
cp -a %{_libdir}/libmpdec*.so.* %{buildroot}/opt/testing/lib || echo "Skipping libmpdec.so"
|
||||||
pushd %{buildroot}/opt/testing/lib/python%{python_version}/
|
pushd %{buildroot}/opt/testing/lib/python%{python_version}/
|
||||||
|
rm -r site-packages/meson*
|
||||||
for f in $(find -name \*.py | sort) ; do
|
for f in $(find -name \*.py | sort) ; do
|
||||||
PYTHONOPTIMIZE=1 %{my_python} -O -m compileall -b $f
|
PYTHONOPTIMIZE=1 %{my_python} -O -m compileall -b $f
|
||||||
rm $f
|
rm $f
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
find %{buildroot}/opt/testing/ -name __pycache__ -exec rm -rf {} +
|
find %{buildroot}/opt/testing/ -name __pycache__ -exec rm -rf {} +
|
||||||
# We need to force the shebang to be under /opt/testing
|
# 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
|
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
|
chmod a+x %{buildroot}/opt/testing/bin/rpmlint.real
|
||||||
|
20
stdlib.txt
20
stdlib.txt
@ -193,10 +193,8 @@ hashlib.py
|
|||||||
heapq.py
|
heapq.py
|
||||||
importlib/_abc.py
|
importlib/_abc.py
|
||||||
importlib/abc.py
|
importlib/abc.py
|
||||||
importlib/_adapters.py
|
|
||||||
importlib/_bootstrap_external.py
|
importlib/_bootstrap_external.py
|
||||||
importlib/_bootstrap.py
|
importlib/_bootstrap.py
|
||||||
importlib/_common.py
|
|
||||||
importlib/__init__.py
|
importlib/__init__.py
|
||||||
importlib/machinery.py
|
importlib/machinery.py
|
||||||
importlib/metadata/_adapters.py
|
importlib/metadata/_adapters.py
|
||||||
@ -207,9 +205,18 @@ importlib/metadata/_itertools.py
|
|||||||
importlib/metadata/_meta.py
|
importlib/metadata/_meta.py
|
||||||
importlib/metadata/_text.py
|
importlib/metadata/_text.py
|
||||||
importlib/readers.py
|
importlib/readers.py
|
||||||
importlib/resources.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
|
importlib/util.py
|
||||||
inspect.py
|
inspect.py
|
||||||
|
ipaddress.py
|
||||||
io.py
|
io.py
|
||||||
keyword.py
|
keyword.py
|
||||||
lib-dynload/array.cpython*.so
|
lib-dynload/array.cpython*.so
|
||||||
@ -266,6 +273,7 @@ lib-dynload/_statistics.cpython*.so
|
|||||||
lib-dynload/_struct.cpython*.so
|
lib-dynload/_struct.cpython*.so
|
||||||
lib-dynload/syslog.cpython*.so
|
lib-dynload/syslog.cpython*.so
|
||||||
lib-dynload/termios.cpython*.so
|
lib-dynload/termios.cpython*.so
|
||||||
|
lib-dynload/_typing.cpython*.so
|
||||||
lib-dynload/unicodedata.cpython*.so
|
lib-dynload/unicodedata.cpython*.so
|
||||||
lib-dynload/_uuid.cpython*.so
|
lib-dynload/_uuid.cpython*.so
|
||||||
lib-dynload/xxlimited_35.cpython*.so
|
lib-dynload/xxlimited_35.cpython*.so
|
||||||
@ -296,7 +304,11 @@ queue.py
|
|||||||
quopri.py
|
quopri.py
|
||||||
os.py
|
os.py
|
||||||
random.py
|
random.py
|
||||||
re.py
|
re/_casefix.py
|
||||||
|
re/_compiler.py
|
||||||
|
re/_constants.py
|
||||||
|
re/__init__.py
|
||||||
|
re/_parser.py
|
||||||
reprlib.py
|
reprlib.py
|
||||||
selectors.py
|
selectors.py
|
||||||
shlex.py
|
shlex.py
|
||||||
|
Loading…
Reference in New Issue
Block a user