forked from pool/python-construct
Accepting request 489942 from home:alois:branches:devel:languages:python
Updated and converted to single-spec OBS-URL: https://build.opensuse.org/request/show/489942 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-construct?expand=0&rev=15
This commit is contained in:
@@ -16,25 +16,25 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-construct
|
||||
Version: 2.8.10
|
||||
Version: 2.8.11
|
||||
Release: 0
|
||||
Summary: A powerful declarative parser/builder for binary data
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: http://construct.readthedocs.org
|
||||
Source: https://github.com/construct/construct/archive/v%{version}/construct-%{version}.tar.gz
|
||||
Source: https://files.pythonhosted.org/packages/source/c/construct/construct-%{version}.tar.gz
|
||||
# PATCH-FEATURE-OPENSUSE split_debug.patch matwey.kornilov@gmail.com -- make debug.py non-loadable
|
||||
Patch0: split_debug.patch
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-six
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-six
|
||||
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
|
||||
Construct is a powerful declarative parser (and builder) for binary data.
|
||||
@@ -49,14 +49,16 @@ and in the other direction, convert ("build") objects into binary data.
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.rst
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/construct
|
||||
%{python_sitelib}/construct-%{version}-py%{python_version}.egg-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user