14
0

Accepting request 493188 from home:DocB:branches:devel:languages:python

changes for singlespec

OBS-URL: https://build.opensuse.org/request/show/493188
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simpleeval?expand=0&rev=6
This commit is contained in:
2017-05-15 13:04:00 +00:00
committed by Git OBS Bridge
parent e218d4c15d
commit b423225f25
2 changed files with 13 additions and 11 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 3 20:20:08 UTC 2017 - axel.braun@gmx.de
- changes for singlespec
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 21 11:36:32 UTC 2015 - axel.braun@gmx.de Tue Apr 21 11:36:32 UTC 2015 - axel.braun@gmx.de

View File

@@ -16,6 +16,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname simpleeval %define modname simpleeval
Name: python-%{modname} Name: python-%{modname}
@@ -26,15 +27,11 @@ Summary: A simple, safe single expression evaluator library
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz Source: https://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{modname}-%{version}-build
BuildRequires: python-setuptools BuildRequires: python-rpm-macros
BuildRequires: %{python_module 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
BuildArch: noarch BuildArch: noarch
%py_requires %python_subpackages
%endif
%description %description
A quick single file library for easily adding evaluatable expressions A quick single file library for easily adding evaluatable expressions
@@ -50,14 +47,14 @@ to give full eval() access, or dont want to run in javascript on the client s
rm -f %{modname}.egg-info/*.orig rm -f %{modname}.egg-info/*.orig
%build %build
python setup.py build %python_build
%install %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}/tests # Don't install tests
rm -rf %{buildroot}%{python_sitelib}/%{mod2nam}/*.exe # Remove unneeded files rm -rf %{buildroot}%{python_sitelib}/%{mod2nam}/*.exe # Remove unneeded files
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README.rst %doc README.rst
%{python_sitelib}/* %{python_sitelib}/*