|
|
ea61a5e |
# These require packages that are built using this package itself.
|
|
|
ea61a5e |
%global with_loop 0
|
|
|
ea61a5e |
%global with_test 0
|
|
|
ea61a5e |
|
|
|
67dca49 |
%global python3_wheelname %{srcname}-%{version}-py3-none-any.whl
|
|
|
ea61a5e |
|
|
|
ea61a5e |
%global srcname flit
|
|
|
ea61a5e |
%global sum Simplified packaging of Python modules
|
|
|
ea61a5e |
|
|
|
ea61a5e |
Name: python-%{srcname}
|
|
|
68c70d4 |
Version: 0.11.1
|
|
|
68c70d4 |
Release: 1%{?dist}
|
|
|
ea61a5e |
Summary: %{sum}
|
|
|
ea61a5e |
|
|
|
ea61a5e |
# ./flit/logo.py under ASL 2.0 license
|
|
|
ea61a5e |
# ./flit/upload.py under PSF license
|
|
|
ea61a5e |
License: BSD and ASL 2.0 and Python
|
|
|
ea61a5e |
|
|
|
ea61a5e |
URL: https://flit.readthedocs.io/en/latest/
|
|
|
ea61a5e |
Source0: https://github.com/takluyver/flit/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
68c70d4 |
|
|
|
68c70d4 |
Patch0: %{srcname}-file-encoding.patch
|
|
|
ea61a5e |
|
|
|
ea61a5e |
BuildArch: noarch
|
|
|
ea61a5e |
BuildRequires: python3-devel
|
|
|
ea61a5e |
BuildRequires: python3-pip
|
|
|
ea61a5e |
BuildRequires: python3-requests
|
|
|
ea61a5e |
BuildRequires: python3-docutils
|
|
|
ea61a5e |
BuildRequires: python3-pypandoc
|
|
|
68c70d4 |
BuildRequires: python3-pygments
|
|
|
ea61a5e |
|
|
|
ea61a5e |
%if 0%{?with_test}
|
|
|
ea61a5e |
BuildRequires: python3-pytest
|
|
|
ea61a5e |
BuildRequires: python3-responses
|
|
|
ea61a5e |
|
|
|
ea61a5e |
# Requires flit to build:
|
|
|
ea61a5e |
BuildRequires: python3-testpath
|
|
|
ea61a5e |
%endif
|
|
|
ea61a5e |
|
|
|
ea61a5e |
# https://pypi.python.org/pypi/tornado
|
|
|
ea61a5e |
# ./flit/logo.py unkown version
|
|
|
ea61a5e |
Provides: bundled(python-tornado)
|
|
|
ea61a5e |
|
|
|
ea61a5e |
%description
|
|
|
ea61a5e |
Flit is a simple way to put Python packages and modules on PyPI.
|
|
|
ea61a5e |
|
|
|
ea61a5e |
Flit only creates packages in the new 'wheel' format. People using older
|
|
|
ea61a5e |
versions of pip (<1.5) or easy_install will not be able to install them.
|
|
|
ea61a5e |
|
|
|
ea61a5e |
Flit packages a single importable module or package at a time, using the import
|
|
|
ea61a5e |
name as the name on PyPI. All sub-packages and data files within a package are
|
|
|
ea61a5e |
included automatically.
|
|
|
ea61a5e |
|
|
|
ea61a5e |
Flit requires Python 3, but you can use it to distribute modules for Python 2,
|
|
|
ea61a5e |
so long as they can be imported on Python 3.
|
|
|
ea61a5e |
|
|
|
ea61a5e |
|
|
|
ea61a5e |
%package -n python3-%{srcname}
|
|
|
ea61a5e |
Summary: %{sum}
|
|
|
ea61a5e |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
ea61a5e |
|
|
|
ea61a5e |
Requires: python3-requests
|
|
|
ea61a5e |
Requires: python3-docutils
|
|
|
ea61a5e |
Requires: python3-pypandoc
|
|
|
ea61a5e |
%if 0%{?with_loop}
|
|
|
ea61a5e |
Requires: python3-requests-download
|
|
|
ea61a5e |
%endif
|
|
|
ea61a5e |
|
|
|
ea61a5e |
%description -n python3-%{srcname}
|
|
|
ea61a5e |
Flit is a simple way to put Python packages and modules on PyPI.
|
|
|
ea61a5e |
|
|
|
ea61a5e |
Flit only creates packages in the new 'wheel' format. People using older
|
|
|
ea61a5e |
versions of pip (<1.5) or easy_install will not be able to install them.
|
|
|
ea61a5e |
|
|
|
ea61a5e |
Flit packages a single importable module or package at a time, using the import
|
|
|
ea61a5e |
name as the name on PyPI. All subpackages and data files within a package are
|
|
|
ea61a5e |
included automatically.
|
|
|
ea61a5e |
|
|
|
ea61a5e |
Flit requires Python 3, but you can use it to distribute modules for Python 2,
|
|
|
ea61a5e |
so long as they can be imported on Python 3.
|
|
|
ea61a5e |
|
|
|
ea61a5e |
|
|
|
ea61a5e |
%prep
|
|
|
ea61a5e |
%autosetup -n %{srcname}-%{version} -p1
|
|
|
ea61a5e |
|
|
|
ea61a5e |
%build
|
|
|
68c70d4 |
export FLIT_NO_NETWORK=1
|
|
|
ea61a5e |
XDG_CACHE_HOME=$PWD/.cache %{__python3} -m flit wheel
|
|
|
ea61a5e |
|
|
|
ea61a5e |
|
|
|
ea61a5e |
%install
|
|
|
67dca49 |
%py3_install_wheel %{python3_wheelname}
|
|
|
ea61a5e |
|
|
|
ea61a5e |
# Fedora doesn't use this yet.
|
|
|
ea61a5e |
rm -r %{buildroot}%{python3_sitelib}/%{srcname}-%{version}.dist-info/
|
|
|
ea61a5e |
|
|
|
ea61a5e |
|
|
|
ea61a5e |
%if 0%{?with_test}
|
|
|
ea61a5e |
%check
|
|
|
ea61a5e |
py.test-3
|
|
|
ea61a5e |
%endif
|
|
|
ea61a5e |
|
|
|
ea61a5e |
|
|
|
ea61a5e |
%files -n python3-%{srcname}
|
|
|
ea61a5e |
%license LICENSE
|
|
|
ea61a5e |
%doc README.rst
|
|
|
ea61a5e |
%{python3_sitelib}/*
|
|
|
ea61a5e |
%{_bindir}/flit
|
|
|
ea61a5e |
|
|
|
ea61a5e |
|
|
|
ea61a5e |
%changelog
|
|
|
68c70d4 |
* Tue Jun 13 2017 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.11.1-1
|
|
|
68c70d4 |
- Update to 0.11.1
|
|
|
68c70d4 |
|
|
|
e979e04 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-6
|
|
|
e979e04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
e979e04 |
|
|
|
67dca49 |
* Mon Jan 23 2017 Michal Cyprian <mcyprian@redhat.com> - 0.9-5
|
|
|
67dca49 |
- Use python install wheel macro
|
|
|
67dca49 |
|
|
|
61308f8 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.9-4
|
|
|
61308f8 |
- Rebuild for Python 3.6
|
|
|
61308f8 |
|
|
|
ea61a5e |
* Thu Sep 29 2016 Mukundan Ragavan <nonamedotc@gmail.com> - 0.9-3
|
|
|
ea61a5e |
- Updated spec file with license comments and provides
|
|
|
ea61a5e |
|
|
|
ea61a5e |
* Sat Sep 24 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.9-2
|
|
|
ea61a5e |
- spec file cleanup
|
|
|
ea61a5e |
|
|
|
ea61a5e |
* Sat Jul 2 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.9-1
|
|
|
ea61a5e |
- Initial RPM release
|