LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-docopt-subcommands.spec of Package python-docopt-subcommands (Project home:lenovo-lico:lico-dep:5.1:el7)

# Created by pyp2rpm-3.2.3
%global pypi_name docopt_subcommands
%global modname docopt-subcommands

Name:           python-%{modname}
Version:        2.3.1
Release:        1%{?dist}
Summary:        Create subcommand-based CLI programs with docopt

License:        MIT
URL:            https://github.com/abingham/docopt-subcommands
Source0:        https://pypi.io/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
docopt-subcommands allows you to create subcommand-based
programs using docopt. A subcommand-based program is one
in which the main program uses a "subcommand" argument
to tell it what to do.

%package -n     python2-%{modname}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{modname}}
 
Requires:       python2-docopt

%description -n python2-%{modname}
docopt-subcommands allows you to create subcommand-based
programs using docopt. A subcommand-based program is one
in which the main program uses a "subcommand" argument
to tell it what to do.

%package -n     python3-%{modname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{modname}}
 
Requires:       python3-docopt

%description -n python3-%{modname}
docopt-subcommands allows you to create subcommand-based
programs using docopt. A subcommand-based program is one
in which the main program uses a "subcommand" argument
to tell it what to do.

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

%build
%py3_build
%py2_build

%install
%py3_install
%py2_install


%files -n python2-%{modname}
%license LICENSE.txt
%doc README.md
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%files -n python3-%{modname}
%license LICENSE.txt
%doc README.md
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%changelog
* Mon Jan 15 2018 Yunfei Shi <shiyf2@lenovo.com> - 2.3.1-1
- Initial package.