Skip to content
Snippets Groups Projects
Unverified Commit 2fb59d8c authored by Duncan Macleod's avatar Duncan Macleod
Browse files

spec: update build/install to use wheels

more efficient, better metadata, better entry points
parent 99368aa0
No related branches found
No related tags found
1 merge request!118Update RPM build/install to use wheels
......@@ -15,14 +15,11 @@ Source0: %pypi_source
BuildArch: noarch
Prefix: %{_prefix}
# rpmbuild dependencies
BuildRequires: python-srpm-macros
BuildRequires: python-rpm-macros
BuildRequires: python3-rpm-macros
# build requirements
BuildRequires: python%{python3_pkgversion}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-wheel
# test requirements
BuildRequires: python%{python3_pkgversion}-pyOpenSSL >= 0.14
......@@ -68,10 +65,10 @@ tools.
%autosetup -n %{srcname}-%{version}
%build
%py3_build
%py3_build_wheel
%install
%py3_install
%py3_install_wheel %{srcname}-%{version}-*.whl
%check
cd %{_builddir} # move out of the source tree
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment