Hello community, here is the log from the commit of package python-simpleeval for openSUSE:Factory checked in at 2017-05-16 14:46:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-simpleeval (Old) and /work/SRC/openSUSE:Factory/.python-simpleeval.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-simpleeval" Tue May 16 14:46:05 2017 rev:2 rq:494940 version:0.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-simpleeval/python-simpleeval.changes 2016-07-14 09:43:27.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-simpleeval.new/python-simpleeval.changes 2017-05-16 14:46:58.155836477 +0200 @@ -1,0 +2,5 @@ +Wed May 3 20:20:08 UTC 2017 - axel.braun@gmx.de + +- changes for singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-simpleeval.spec ++++++ --- /var/tmp/diff_new_pack.6UzLMB/_old 2017-05-16 14:46:58.775749383 +0200 +++ /var/tmp/diff_new_pack.6UzLMB/_new 2017-05-16 14:46:58.775749383 +0200 @@ -16,6 +16,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define modname simpleeval Name: python-%{modname} @@ -26,15 +27,11 @@ License: MIT Group: Development/Languages/Python Source: https://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-setuptools - -%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 +BuildRoot: %{_tmppath}/%{modname}-%{version}-build +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} BuildArch: noarch -%py_requires -%endif +%python_subpackages %description A quick single file library for easily adding evaluatable expressions @@ -50,14 +47,14 @@ rm -f %{modname}.egg-info/*.orig %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install rm -rf %{buildroot}%{python_sitelib}/%{mod2nam}/tests # Don't install tests rm -rf %{buildroot}%{python_sitelib}/%{mod2nam}/*.exe # Remove unneeded files -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.rst %{python_sitelib}/*