Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package file for openSUSE:Factory checked in at 2026-04-23 19:22:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/file (Old) and /work/SRC/openSUSE:Factory/.file.new.11940 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "file" Thu Apr 23 19:22:54 2026 rev:145 rq:1348124 version:5.47 Changes: -------- +++ only whitespace diff in changes, re-diffing --- /work/SRC/openSUSE:Factory/file/python-magic.changes 2026-04-02 17:40:43.042236041 +0200 +++ /work/SRC/openSUSE:Factory/.file.new.11940/python-magic.changes 2026-04-23 19:22:56.166709636 +0200 @@ -1,0 +2,7 @@ +Mon Apr 20 05:54:28 UTC 2026 - Steve Kowalik <[email protected]> + +- Use pyproject macros to build and install the module. +- Switch to noarch, this package builds no binaries. +- Call fdupes after installing. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-magic.spec ++++++ --- /var/tmp/diff_new_pack.4oiL2i/_old 2026-04-23 19:22:57.142749856 +0200 +++ /var/tmp/diff_new_pack.4oiL2i/_new 2026-04-23 19:22:57.142749856 +0200 @@ -17,19 +17,19 @@ # PyPI package name is file-magic. Version is taken from setup.py -%define file_magic_version 0.3.0 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define file_magic_version 0.4.0 %global _miscdir %{_datadir}/misc Name: python-magic Version: 5.47 Release: 0 Summary: Python module to use libmagic License: BSD-3-Clause AND BSD-4-Clause -Group: Development/Languages/Python URL: https://www.darwinsys.com/file/ Source99: file.spec -BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes BuildRequires: findutils BuildRequires: libtool BuildRequires: python-rpm-macros @@ -37,6 +37,7 @@ Requires: libmagic1 Provides: python-file-magic = %{file_magic_version} %{expand:%(sed -n -e '/^Source0\?:/,/^BuildRoot:/p' <%{_sourcedir}/file.spec)} +BuildArch: noarch %python_subpackages %description @@ -47,13 +48,15 @@ %{expand:%(sed -n -e '/^%%prep/,/^%%build/p' <%{_sourcedir}/file.spec | sed -e '1d' -e '$d')} ln -sf README.md python/README +%build pushd python -%python_build +%pyproject_wheel popd %install pushd python -%python_install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} popd %check @@ -65,7 +68,7 @@ %files %{python_files} %doc python/README python/example.py -%{python_sitelib}/magic.py* +%{python_sitelib}/magic.py %pycache_only %{python_sitelib}/__pycache__ -%{python_sitelib}/file_magic-*-py%{python_version}.egg-info +%{python_sitelib}/file_magic-%{file_magic_version}.dist-info
