2019-12-04 17:02:54 +08:00
|
|
|
Name: python-flit
|
|
|
|
|
Version: 1.0
|
2020-06-16 14:19:52 +08:00
|
|
|
Release: 6
|
2019-12-04 17:02:54 +08:00
|
|
|
Summary: Simplified packaging of Python modules
|
|
|
|
|
License: BSD and ASL 2.0 and Python
|
|
|
|
|
URL: https://flit.readthedocs.io/en/latest/
|
2020-01-10 15:57:29 +08:00
|
|
|
Source0: https://github.com/takluyver/flit/archive/%{version}.tar.gz
|
2019-12-04 17:02:54 +08:00
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python3-devel python3-pip python3-requests python3-docutils python3-pygments python3-pytoml
|
|
|
|
|
|
2020-01-10 15:57:29 +08:00
|
|
|
Provides: bundled(python-tornado)
|
2019-12-04 17:02:54 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Flit is a simple way to put Python packages and modules on PyPI.
|
|
|
|
|
The specific usage is introduced on the website(https://flit.readthedocs.io/en/latest/), or query README.
|
|
|
|
|
|
|
|
|
|
%package -n python3-flit
|
|
|
|
|
Summary: Simplified packaging of Python modules
|
|
|
|
|
%{?python_provide:%python_provide python3-flit}
|
|
|
|
|
|
|
|
|
|
Requires: python3-requests python3-docutils python3-pytoml
|
|
|
|
|
|
2020-06-16 14:19:52 +08:00
|
|
|
%global __requires_exclude ^python%{python3_version}dist\\(requests-download\\)
|
2019-12-04 17:02:54 +08:00
|
|
|
|
|
|
|
|
Recommends: python3-pygments
|
|
|
|
|
|
|
|
|
|
%description -n python3-flit
|
|
|
|
|
Flit is a simple way to put Python packages and modules on PyPI.
|
|
|
|
|
The specific usage is introduced on the website(https://flit.readthedocs.io/en/latest/), or query README.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n flit-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export FLIT_NO_NETWORK=1
|
|
|
|
|
XDG_CACHE_HOME=$PWD/.cache %{__python3} -m flit build --format wheel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install_wheel flit-%{version}-py3-none-any.whl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-flit
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
%{_bindir}/flit
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-06-16 14:19:52 +08:00
|
|
|
* Tue Jun 16 2020 hanxinke <hanxinke@huawei.com> - 1.0-6
|
|
|
|
|
- update python version
|
|
|
|
|
|
2019-12-04 17:02:54 +08:00
|
|
|
* Thu Nov 21 2019 Wanjiankang <wanjiankang@huawei.com> - 1.0-5
|
|
|
|
|
- Package Init
|