A new user interface for you! Read more...

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 http://bugs.opensuse.org/
#


%{?!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
Url:            https://github.com/mitsuhiko/phpserialize
Source:         https://pypi.python.org/packages/source/p/phpserialize/phpserialize-%{version}.tar.gz
Source1:        tests.py
Source2:        LICENSE
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module base}
BuildRequires:  %{python_module setuptools}
BuildArch:      noarch
%python_subpackages

%description
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).

%prep
%setup -q -n phpserialize-%{version}
cp %{S:1} tests.py
cp %{S:2} LICENSE

%build
%python_build

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

%check
#%%python_exec -W ignore::DeprecationWarning tests.py
%python_exec tests.py

%files %{python_files}
%defattr(-,root,root,-)
%doc README
%license LICENSE
%{python_sitelib}/*

%changelog