commit python-Durus for openSUSE:Factory
Hello community, here is the log from the commit of package python-Durus for openSUSE:Factory checked in at 2017-09-04 12:31:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Durus (Old) and /work/SRC/openSUSE:Factory/.python-Durus.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-Durus" Mon Sep 4 12:31:22 2017 rev:8 rq:519793 version:3.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Durus/python-Durus.changes 2013-04-15 11:16:47.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-Durus.new/python-Durus.changes 2017-09-04 12:31:26.216728765 +0200 @@ -1,0 +2,5 @@ +Thu Aug 24 13:37:52 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + +------------------------------------------------------------------- @@ -15,0 +21 @@ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Durus.spec ++++++ --- /var/tmp/diff_new_pack.wIw6sn/_old 2017-09-04 12:31:28.000477970 +0200 +++ /var/tmp/diff_new_pack.wIw6sn/_new 2017-09-04 12:31:28.020475159 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-Durus # -# Copyright (c) 2013 SUSE LINUX Products 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 @@ -16,23 +16,26 @@ # +%define oldpython python +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Durus Version: 3.9 Release: 0 -Url: http://www.mems-exchange.org/software/durus/ Summary: A Python Object Database License: CNRI-Python Group: Development/Languages/Python -Source: Durus-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-nose -%if 0%{?suse_version} -%py_requires +Url: http://www.mems-exchange.org/software/durus/ +Source: https://files.pythonhosted.org/packages/source/D/Durus/Durus-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: python-rpm-macros +%ifpython2 +Provides: %{oldpython}-durus = %{version} +Obsoletes: %{oldpython}-durus < %{version} %endif -Provides: python-durus = %{version} -Obsoletes: python-durus < %{version} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +Requires(post): update-alternatives +Requires(postun): update-alternatives +%python_subpackages %description Serves and manages changes to persistent objects being used in @@ -43,18 +46,26 @@ sed -i "1d" {db_renumber,__main__}.py # Fix non-executable scripts %build -CFLAGS="%{optflags}" python setup.py build +export CFLAGS="%{optflags}" +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_clone -a %{buildroot}%{_bindir}/durus + +%post +%python_install_alternative durus + +%postun +%python_uninstall_alternative durus %check -nosetests +%python_expand nosetests-%{$python_bin_suffix} -%files +%files %{python_files} %defattr(-,root,root,-) %doc ACKS.txt CHANGES.txt LICENSE.txt README.txt doc/FAQ.txt -%{_bindir}/durus +%python_alternative %{_bindir}/durus %{python_sitearch}/* %changelog
participants (1)
-
root@hilbert.suse.de