diff --git a/file.changes b/file.changes index 67036aa..c1046d9 100644 --- a/file.changes +++ b/file.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 10 13:28:51 UTC 2023 - Dr. Werner Fink + +- Use [Pp]atch0 explicit to avoid warning as python.magic build time + ------------------------------------------------------------------- Mon Jan 9 14:30:30 UTC 2023 - Dr. Werner Fink diff --git a/file.spec b/file.spec index e8797b5..ed14613 100644 --- a/file.spec +++ b/file.spec @@ -44,7 +44,7 @@ Source2: baselibs.conf Source3: file-rpmlintrc Source4: https://www.astron.com/pub/file/file-%{version}.tar.gz.asc Source5: file.keyring -Patch: file-5.44.dif +Patch0: file-5.44.dif Patch1: file-5.19-misc.dif Patch4: file-4.24-autoconf.dif Patch5: file-5.14-tex.dif @@ -125,8 +125,7 @@ to develop applications that require the magic "file" interface. %patch32 -p0 -b .clicfs %patch37 -p1 -b .getenv %patch39 -p1 -b .btrfs - -%patch -b .0 +%patch0 -b .0 test -s src/magic.h.in || cp -p src/magic.h src/magic.h.in rm -fv src/magic.h diff --git a/python-magic.changes b/python-magic.changes index c9c56e4..76fdbd1 100644 --- a/python-magic.changes +++ b/python-magic.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 10 13:28:15 UTC 2023 - Dr. Werner Fink + +- Enable tests for python-magic (not python-python-magic) + ------------------------------------------------------------------- Tue Jan 10 08:29:12 UTC 2023 - Dr. Werner Fink diff --git a/python-magic.spec b/python-magic.spec index 5ba76ac..27a551b 100644 --- a/python-magic.spec +++ b/python-magic.spec @@ -28,6 +28,7 @@ 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 setuptools} BuildRequires: findutils BuildRequires: libtool @@ -55,6 +56,15 @@ pushd python %python_install popd +%check +export LC_ALL=C.UTF-8 +pushd python +%python_flavored_alternatives +%{python_expand # indicate a writeable .pth directory for tests +python%{$python_version} setup.py test +} +popd + %files %{python_files} %doc python/README python/example.py %{python_sitelib}/magic.py*