first commit
This commit is contained in:
parent
322ef60ad0
commit
430ea810bd
BIN
docopt-0.6.2.tar.gz
Normal file
BIN
docopt-0.6.2.tar.gz
Normal file
Binary file not shown.
62
python-docopt.spec
Normal file
62
python-docopt.spec
Normal file
@ -0,0 +1,62 @@
|
||||
Name: python-docopt
|
||||
Version: 0.6.2
|
||||
Release: 11
|
||||
Summary: Command-line interface description language
|
||||
License: MIT
|
||||
URL: http://docopt.org/
|
||||
Source0: https://github.com/docopt/docopt/archive/%{version}.tar.gz#/docopt-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%global _description \
|
||||
docopt helps you define the interface for your command-line app, and automatically generate a \
|
||||
parser for it.\
|
||||
docopt is based on conventions that have been used for decades in help messages and man pages for \
|
||||
describing a program interface. An interface description in docopt is such a help message, but \
|
||||
formalized.
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python2-docopt
|
||||
Summary: Command-line interface description language
|
||||
%{?python_provide:%python_provide python2-docopt}
|
||||
BuildRequires: python2-devel python2-pytest python2-setuptools
|
||||
|
||||
%description -n python2-docopt %_description
|
||||
|
||||
%package -n python3-docopt
|
||||
Summary: Command-line interface description language
|
||||
%{?python_provide:%python_provide python3-docopt}
|
||||
BuildRequires: python3-devel python3-pytest python3-setuptools
|
||||
|
||||
%description -n python3-docopt %_description
|
||||
|
||||
%prep
|
||||
%autosetup -n docopt-%{version} -p1
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
py.test-2.7 -v
|
||||
py.test-3 -v
|
||||
|
||||
%files -n python2-docopt
|
||||
%license LICENSE-MIT
|
||||
%doc README.rst
|
||||
%{python2_sitelib}/*
|
||||
|
||||
%files -n python3-docopt
|
||||
%license LICENSE-MIT
|
||||
%doc README.rst
|
||||
%{python3_sitelib}/docopt*
|
||||
%{python3_sitelib}/__pycache__/*
|
||||
|
||||
%changelog
|
||||
* Wed Jan 08 2020 zhouyihang <zhouyihang1@huawei.com> - 0.6.2-11
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user