diff --git a/python-akismet.changes b/python-akismet.changes index 1db2d3c..838676b 100644 --- a/python-akismet.changes +++ b/python-akismet.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 2 08:52:21 UTC 2018 - tchvatal@suse.com + +- Remove not required dependency on devel + ------------------------------------------------------------------- Wed Oct 25 07:58:30 UTC 2017 - buschmann23@opensuse.org diff --git a/python-akismet.spec b/python-akismet.spec index 0d5c122..987d200 100644 --- a/python-akismet.spec +++ b/python-akismet.spec @@ -1,7 +1,7 @@ # # spec file for package python-akismet # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 Matthias Fehring # # All modifications and additions to the file contributed by third parties @@ -18,25 +18,23 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} - %define mod_name akismet - Name: python-%{mod_name} Version: 1.0.1 Release: 0 -Url: https://github.com/ubernostrum/akismet Summary: Interface to the Akismet Anti Comment-Spam API License: BSD-3-Clause Group: Development/Languages/Python +URL: https://github.com/ubernostrum/akismet Source0: https://files.pythonhosted.org/packages/source/a/%{mod_name}/%{mod_name}-%{version}.tar.gz -BuildRequires: %{python_module devel} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-requests BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build %python_subpackages %description @@ -46,16 +44,19 @@ A Python interface to the Akismet anti comment-spam API. %setup -q -n %{mod_name}-%{version} %build -export CFLAGS="%{optflags}" %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +# Can't run the tests as they need working server API +#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} + %files %{python_files} -%defattr(-,root,root,-) -%doc README.rst LICENSE +%license LICENSE +%doc README.rst %{python_sitelib}/* %changelog