%global srcname djangoql Name: python-%{srcname} Version: 0.10.0 Release: 1%{?dist} Summary: DjangoQL: Advanced search language for Django License: MIT URL: https://github.com/ivelum/djangoql Source0: %pypi_source # Enable bytecode compiling disabled by upstream Patch0: enable-bytecode-build.patch BuildArch: noarch BuildRequires: python3-devel %description Advanced search language for Django, with auto-completion. Supports logical operators, parenthesis, table joins, works with any Django models. %package -n python3-%{srcname} Summary: %{summary} Requires: python3-django >= 1.8 Requires: python3-ply >= 3.8 %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} Advanced search language for Django, with auto-completion. Supports logical operators, parenthesis, table joins, works with any Django models. %prep %autosetup -n %{srcname}-%{version} -p1 # Remove .DS_Store files from upstream package find . -name ".DS_Store" -exec rm {} \; %build %py3_build %install %py3_install %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}-*.egg-info/ %changelog * Mon Oct 22 2018 Viliam Krizan 0.10.0-1 - Initial packaging