Accepting request 520331 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/520331
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybeam?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2017-09-07 20:09:53 +00:00 committed by Git OBS Bridge
commit 9460f19731
2 changed files with 18 additions and 11 deletions

View File

@ -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

View File

@ -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}/*