Hello community, here is the log from the commit of package python-zdaemon for openSUSE:Factory checked in at 2017-07-11 08:25:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-zdaemon (Old) and /work/SRC/openSUSE:Factory/.python-zdaemon.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zdaemon" Tue Jul 11 08:25:22 2017 rev:18 rq:508499 version:4.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-zdaemon/python-zdaemon.changes 2015-05-25 11:14:31.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-zdaemon.new/python-zdaemon.changes 2017-07-11 08:25:23.279318367 +0200 @@ -1,0 +2,8 @@ +Sat Jun 24 13:13:12 UTC 2017 - [email protected] + +- Update to version 4.2.0: + * Add support for Python 3.5. + * Drop support for Python 2.6 and 3.2. +- Converted to single-spec + +------------------------------------------------------------------- Old: ---- zdaemon-4.1.0.zip New: ---- zdaemon-4.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-zdaemon.spec ++++++ --- /var/tmp/diff_new_pack.I3LXyK/_old 2017-07-11 08:25:23.927226984 +0200 +++ /var/tmp/diff_new_pack.I3LXyK/_new 2017-07-11 08:25:23.931226419 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-zdaemon # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,27 +17,26 @@ %define modname zdaemon - +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-%{modname} -Version: 4.1.0 +Version: 4.2.0 Release: 0 Summary: Daemon process control library and tools License: ZPL-2.1 Group: Development/Languages/Python Url: https://github.com/zopefoundation/zdaemon -Source: https://pypi.python.org/packages/source/z/zdaemon/%{modname}-%{version}.zip -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: unzip -Requires(post): update-alternatives -Requires(postun): update-alternatives +Source: https://files.pythonhosted.org/packages/source/z/zdaemon/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module ZConfig} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-ZConfig +Requires(post): update-alternatives +Requires(preun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description zdaemon is a Python package which provides APIs for managing @@ -47,35 +46,29 @@ %prep %setup -q -n %{modname}-%{version} -sed -i "s|%{modname} =|%{modname}-%{py_ver} =|" setup.py # remove unwanted shebang sed -i '1 { /^#!/ d }' src/zdaemon/tests/nokill.py +rm -rf src/zdaemon.egg-info %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -# create a dummy target for /etc/alternatives/zdaemon -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -touch %{buildroot}%{_sysconfdir}/alternatives/%{modname} -ln -s -f %{_sysconfdir}/alternatives/%{modname} %{buildroot}/%{_bindir}/%{modname} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +%python_clone -a %{buildroot}%{_bindir}/zdaemon %post -update-alternatives \ - --install %{_bindir}/%{modname} %{modname} %{_bindir}/%{modname}-%{py_ver} 20 +%python_install_alternative zdaemon %postun -if [ $1 -eq 0 ] ; then - update-alternatives --remove %{modname} %{_bindir}/%{modname}-%{py_ver} -fi +%python_uninstall_alternative zdaemon -%files +%files %{python_files} %defattr(-,root,root) %doc README.rst CHANGES.rst LICENSE.txt -%ghost %{_sysconfdir}/alternatives/%{modname} +%python_alternative %{_bindir}/zdaemon %{python_sitelib}/* -%{_bindir}/%{modname} -%{_bindir}/%{modname}-%{py_ver} %changelog
