Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-python-memcached for
openSUSE:Factory checked in at 2022-12-13 18:56:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-memcached (Old)
and /work/SRC/openSUSE:Factory/.python-python-memcached.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-memcached"
Tue Dec 13 18:56:01 2022 rev:20 rq:1042575 version:1.59
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-python-memcached/python-python-memcached.changes
2022-04-13 21:04:37.492548876 +0200
+++
/work/SRC/openSUSE:Factory/.python-python-memcached.new.1835/python-python-memcached.changes
2022-12-13 18:56:10.739431153 +0100
@@ -1,0 +2,8 @@
+Tue Dec 13 00:36:09 UTC 2022 - Matej Cepl <[email protected]>
+
+- Fix incorrect version number in `__version__`
+ (gh#linsomniac/python-memcached#185).
+- Fix build: memcached moved their binaries to /usr/bin.
+- Clean up SPEC file.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-memcached.spec ++++++
--- /var/tmp/diff_new_pack.pJakZT/_old 2022-12-13 18:56:11.111433138 +0100
+++ /var/tmp/diff_new_pack.pJakZT/_new 2022-12-13 18:56:11.115433160 +0100
@@ -16,7 +16,6 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-python-memcached
Version: 1.59
@@ -29,6 +28,7 @@
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
+BuildRequires: fdupes
BuildRequires: memcached
BuildRequires: python-rpm-macros
BuildRequires: util-linux
@@ -53,28 +53,29 @@
%prep
%setup -q -n python-memcached-%{version}
sed -i \
- -e 's:#!/usr/bin/env python::' \
+ -e 's:#!%{_bindir}/env python::' \
memcache.py
sed -i 's/import mock/import unittest.mock as mock/' tests/test_memcache.py
+# gh#linsomniac/python-memcached#185
+sed -i -e '/__version__/s/[0-9.]\+/%{version}/' memcache.py
%build
%python_build
%install
%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%if 0%{?fedora} || 0%{?rhel}
-/usr/bin/memcached -dv -P $PWD/memcached.pid
-%else
-/usr/sbin/memcached -dv -P $PWD/memcached.pid
-%endif
+%{_bindir}/memcached -dv -P $PWD/memcached.pid
%pytest
kill -9 $(cat $PWD/memcached.pid)
%files %{python_files}
%license PSF.LICENSE
%doc README.md
-%{python_sitelib}/*
+%{python_sitelib}/memcache.py
+%pycache_only %{python_sitelib}/__pycache__/memcache.*.pyc
+%{python_sitelib}/python_memcached-%{version}*-info
%changelog