From 523fc8b3c0c7962d9847dc237fa1bdd2d3e8028e587e788a51a0a7c9f7b5ed24 Mon Sep 17 00:00:00 2001 From: Matwey Kornilov Date: Sat, 2 Sep 2017 09:46:56 +0000 Subject: [PATCH] Accepting request 519963 from devel:languages:python:singlespec-staging - singlespec auto-conversion - Version 0.4: - ported to construct 2.8.x - Update Source url - Only consruct 2.5.x is supported by pybeam 0.3.x - Version 0.3.2: - add support for Erlang 17.0 (maps) - Verision 0.3.1: - fix parsing lists with not-null tail - fix parsing strings ( six > 1.4.0 is required to support both python 2 and python 3 ) - Version 0.3: - python 3.3 support - minor fixes and add more unit-tests - Code LitT FunT chunk now understood - Version 0.2: - fixed floating point parsing - fixed Atom lists indexation - Initial version OBS-URL: https://build.opensuse.org/request/show/519963 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybeam?expand=0&rev=15 --- python-pybeam.changes | 6 ++++++ python-pybeam.spec | 23 ++++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/python-pybeam.changes b/python-pybeam.changes index 6882a52..cac56f2 100644 --- a/python-pybeam.changes +++ b/python-pybeam.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 24 13:50:13 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Fri Jan 20 19:35:02 UTC 2017 - matwey.kornilov@gmail.com @@ -48,3 +53,4 @@ Wed May 1 15:57:09 UTC 2013 - matwey.kornilov@gmail.com - Initial version + diff --git a/python-pybeam.spec b/python-pybeam.spec index f1b82e2..4546149 100644 --- a/python-pybeam.spec +++ b/python-pybeam.spec @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pybeam Version: 0.4 Release: 0 @@ -24,31 +25,31 @@ License: MIT Group: Development/Languages/Python Url: http://github.com/matwey/pybeam Source: https://files.pythonhosted.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz -BuildRequires: python-construct >= 2.8 -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module construct >= 2.8} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros Requires: python-construct Requires: python-six >= 1.4.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description -Python module to parse Erlang BEAM files, now it is able to read imports, exports, atoms, as well as compile info and attribute chunks in pretty python format. +Python module to parse Erlang BEAM files, now it is able to read +imports, exports, atoms, as well as compile info and attribute +chunks in pretty python format. %prep %setup -q -n pybeam-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %{python_sitelib}/*