File python-pyparsing.spec of Package python-pyparsing

# Created by pyp2rpm-3.2.3
%global pypi_name pyparsing

Name:           python-%{pypi_name}
Version:        2.2.0
Release:        1%{?dist}
Summary:        Python package with an object-oriented approach to text processing

License:        MIT License
URL:            http://pyparsing.wikispaces.com/
Source0:        https://pypi.io/packages/source/p/pyparsing/pyparsing-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools

%description
pyparsing is a module that can be used to easily and directly configure syntax
definitions for any number of text parsing applications.

%package -n     python2-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}

Provides:       %{pypi_name} = %{version}-%{release}
Obsoletes:      %{pypi_name} < %{version}-%{release}

%description -n python2-%{pypi_name}
pyparsing is a module that can be used to easily and directly configure syntax
definitions for any number of text parsing applications.

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py2_build

%install
%py2_install


%files -n python2-%{pypi_name}
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc examples/0README.html

%{python2_sitelib}/%{pypi_name}.py*
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%changelog
* Mon Dec 25 2017 Yunfei Shi <shiyf2@lenovo.com> - 2.2.0-1
- Initial package.
openSUSE Build Service is sponsored by