%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') # Created by pyp2rpm-3.3.2 %global pypi_name django-app-settings Name: python2-%{pypi_name} Version: 0.3.0 Release: 1%{?dist} Summary: Application settings helper for Django apps License: ISC URL: https://github.com/Genida/django-appsettings Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-setuptools, python2-six %description Django AppSettings Application settings helper for Django apps.Why another *app settings* app? Because none of the other suited my needs!This one is simple to use, and works with unit tests overriding settings.Installation :: pip install django-app-settingsDocumentation On ReadTheDocs_.. _On ReadTheDocs: To run all the tests: tox. See CONTRIBUTING_... _CONTRIBUTING: usage .. code:: python %{?python_provide:%python_provide python%{python2_pkgversion}-%{pypi_name}} %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %install python2 setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %files -n python2-%{pypi_name} -f INSTALLED_FILES %changelog * Fri Sep 21 2018 Jaromir Talir - 0.3.0-1 - Initial package.