2019-08-02 08:08:38 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-ebcdic
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, 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.
|
|
|
|
|
|
2019-08-02 08:09:02 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2019-08-02 08:08:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
Name: python-ebcdic
|
2019-09-13 08:19:28 +00:00
|
|
|
Version: 1.1.1
|
2019-08-02 08:08:38 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Additional EBCDIC codecs for Python
|
2019-08-02 08:09:02 +00:00
|
|
|
License: BSD-2-Clause
|
2019-08-02 08:08:38 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-09-13 08:19:28 +00:00
|
|
|
URL: https://github.com/roskakori/CodecMapper
|
|
|
|
|
Source: https://github.com/roskakori/CodecMapper/archive/v%{version}.tar.gz
|
2019-08-02 08:08:38 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-09-13 08:19:28 +00:00
|
|
|
BuildRequires: ant
|
2019-08-02 08:08:38 +00:00
|
|
|
BuildRequires: fdupes
|
2019-08-02 08:09:02 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-08-02 08:08:38 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Additional EBCDIC codecs for Python.
|
|
|
|
|
|
|
|
|
|
%prep
|
2019-09-13 08:19:28 +00:00
|
|
|
%setup -q -n CodecMapper-%{version}/ebcdic
|
|
|
|
|
# do not use venv python
|
|
|
|
|
sed -i -e 's:"${basedir}/venv/bin/python":"/usr/bin/python3":' ../build.xml
|
2019-08-02 08:08:38 +00:00
|
|
|
|
|
|
|
|
%build
|
2019-09-13 08:19:28 +00:00
|
|
|
# first generate the py files
|
|
|
|
|
pushd ..
|
|
|
|
|
ant ebcdic
|
|
|
|
|
popd
|
2019-08-02 08:08:38 +00:00
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2019-09-13 08:19:28 +00:00
|
|
|
%check
|
|
|
|
|
export LANG="en_US.UTF8"
|
|
|
|
|
%python_exec setup.py test
|
|
|
|
|
|
2019-08-02 08:08:38 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|