python-construct/python-construct.spec

65 lines
2.0 KiB
RPMSpec
Raw Normal View History

2019-11-26 11:07:36 +08:00
Name: python-construct
Version: 2.5.1
Release: 19
Summary: A powerful declarative and symmetrical parser and builder for binary data
License: MIT
URL: http://construct.readthedocs.org
Source0: https://pypi.python.org/packages/source/c/construct/construct-%{version}.tar.gz
Patch0000: python-construct-2.5.1-relative.patch
BuildArch: noarch
BuildRequires: python2-devel python3-devel
%description
Construct is a powerful declarative and symmetrical parser and builder for binary data.
Instead of writing imperative code to parse a piece of data,
you declaratively define a data structure that describes your data.
%package -n python2-construct
Summary: A powerful declarative and symmetrical parser and builder for binary data
Requires: python2-six
%{?python_provide:%python_provide python2-construct}
%description -n python2-construct
Construct is a powerful declarative and symmetrical parser and builder for binary data.
Instead of writing imperative code to parse a piece of data,
you declaratively define a data structure that describes your data.
%package -n python3-construct
Summary: A powerful declarative and symmetrical parser and builder for binary data
Requires: python3-six
%description -n python3-construct
Construct is a powerful declarative and symmetrical parser and builder for binary data.
Instead of writing imperative code to parse a piece of data,
you declaratively define a data structure that describes your data.
%prep
%autosetup -n construct-%{version} -p1
%build
%{py2_build}
%{py3_build}
%install
%{py2_install}
%{py3_install}
%files -n python2-construct
%license LICENSE
%doc README.rst
%{python2_sitelib}/construct
%{python2_sitelib}/construct-%{version}-py?.?.egg-info
%files -n python3-construct
%license LICENSE
%doc README.rst
%{python3_sitelib}/construct
%{python3_sitelib}/construct-%{version}-py?.?.egg-info
%changelog
* Fri Nov 15 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.5.1-19
- Package init