Use python install wheel macro
This commit is contained in:
parent
61308f8062
commit
67dca49cc2
@ -2,13 +2,14 @@
|
||||
%global with_loop 0
|
||||
%global with_test 0
|
||||
|
||||
%global python3_wheelname %{srcname}-%{version}-py3-none-any.whl
|
||||
|
||||
%global srcname flit
|
||||
%global sum Simplified packaging of Python modules
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.9
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: %{sum}
|
||||
|
||||
# ./flit/logo.py under ASL 2.0 license
|
||||
@ -93,8 +94,7 @@ XDG_CACHE_HOME=$PWD/.cache %{__python3} -m flit wheel
|
||||
|
||||
|
||||
%install
|
||||
pip3 install --root %{buildroot} --no-deps \
|
||||
dist/%{srcname}-%{version}-py3-none-any.whl
|
||||
%py3_install_wheel %{python3_wheelname}
|
||||
|
||||
# Fedora doesn't use this yet.
|
||||
rm -r %{buildroot}%{python3_sitelib}/%{srcname}-%{version}.dist-info/
|
||||
@ -114,6 +114,9 @@ py.test-3
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jan 23 2017 Michal Cyprian <mcyprian@redhat.com> - 0.9-5
|
||||
- Use python install wheel macro
|
||||
|
||||
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9-4
|
||||
- Rebuild for Python 3.6
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user