14
0

Accepting request 697505 from home:pgajdos

- version update to 0.9.8
  * no upstream changelog
- run the test suite
- run spec cleaner
- added sources
  https://github.com/danthedeckie/simpleeval/issues/55
  + LICENCE

OBS-URL: https://build.opensuse.org/request/show/697505
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simpleeval?expand=0&rev=8
This commit is contained in:
Tomáš Chvátal
2019-04-25 07:36:48 +00:00
committed by Git OBS Bridge
parent b423225f25
commit ecae861d06
5 changed files with 54 additions and 14 deletions

View File

@@ -1,8 +1,8 @@
#
# spec file for package python-simpleeval
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 Dr. Axel Braun
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -13,24 +13,28 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname simpleeval
Name: python-%{modname}
Version: 0.8.2
Version: 0.9.8
Release: 0
Url: https://pypi.python.org/pypi/simpleeval
Summary: A simple, safe single expression evaluator library
License: MIT
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{modname}-%{version}-build
BuildRequires: python-rpm-macros
URL: https://github.com/danthedeckie/simpleeval
Source0: https://files.pythonhosted.org/packages/source/s/simpleeval/%{modname}-%{version}.tar.gz
# https://github.com/danthedeckie/simpleeval/issues/55
Source1: https://raw.githubusercontent.com/danthedeckie/simpleeval/master/LICENCE
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
@@ -39,24 +43,28 @@ into python projects. Say you want to allow a user to set an alarm volume,
which could depend on the time of day, alarm level, how many previous alarms
had gone off, and if there is music playing at the time.
Or if you want to allow simple formulare in a web application, but dont want
Or if you want to allow simple formulare in a web application, but dont want
to give full eval() access, or dont want to run in javascript on the client side.
%prep
%setup -q -n %{modname}-%{version}
rm -f %{modname}.egg-info/*.orig
cp %{SOURCE1} .
%build
%python_build
%python_build
%install
%python_install
rm -rf %{buildroot}%{python_sitelib}/%{mod2nam}/tests # Don't install tests
rm -rf %{buildroot}%{python_sitelib}/%{mod2nam}/*.exe # Remove unneeded files
%check
%pytest
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%license LICENCE
%{python_sitelib}/*
%changelog