%global pypi_name pyside2 %global camel_name PySide2 Name: python-%{pypi_name} Version: 5.11.3 Release: 1%{?dist} Summary: ... License: ... URL: https://wiki.qt.io/Qt_for_Python # git clone --recursive https://code.qt.io/pyside/pyside-setup # cd pyside-setup # git checkout $version # git archive --format=tar.gz --prefix=pyside2-$version/ HEAD > ../pyside2-$version.tar.gz Source0: %{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: clang BuildRequires: gcc BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-wheel BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtxmlpatterns-devel %description ... %package -n python3-%{pypi_name} Provides: python3-%{camel_name} = %{version}-%{release} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %{?python_provide:%python_provide python3-%{camel_name}} %description -n python3-%{pypi_name} ... %prep %autosetup -n %{pypi_name}-%{version} %global py_setup_args --qmake=/usr/bin/qmake-qt5 --build-tests --ignore-git %build %py3_build %install %py3_install %check #... %files -n python3-%{pypi_name} %license LICENSE.* %doc README.* %doc CHANGES.rst %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog * Tue Feb 05 2019 Miro HronĨok - 5.11.3-1 - Inital package