File python-phpserialize.spec of Package python-phpserialize

# spec file for package python-phpserialize
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 LISA GmbH, Bingen, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-phpserialize
Version:        1.3
Release:        0
Summary:        PHP serialize and unserialize functions for python
License:        BSD-3-Clause
Group:          Development/Languages/Python
Source2:        LICENSE
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module base}
BuildRequires:  %{python_module setuptools}
BuildArch:      noarch

A port of the serialize and unserialize functions of php to python. This module
implements the python serialization interface (eg: provides dumps, loads and
similar functions).

%setup -q -n phpserialize-%{version}
cp %{S:1}
cp %{S:2} LICENSE


%python_expand %fdupes %{buildroot}%{$python_sitelib}

#%%python_exec -W ignore::DeprecationWarning

%files %{python_files}
%license LICENSE