%define srcname django-cookie-law %define version 1.0.13 %define release 3 Summary: Helps your Django project comply with EU cookie law regulations Name: %{srcname} Version: %{version} Release: %{release} Source0: %{srcname}-%{version}.tar.gz License: BSD License Group: Development/Libraries BuildArch: noarch Vendor: Piotr Kilczuk Url: https://github.com/TyMaszWeb/django-cookie-law BuildRequires: python2-devel python3-setuptools BuildRequires: python3-devel %description django-cookie-law helps your Django project comply with the EU cookie regulations = 1.2 - django-classy-tags >= 0.3.0 %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} django-cookie-law helps your Django project comply with the EU cookie regulations = 1.2 - django-classy-tags >= 0.3.0 %prep %autosetup -n %{srcname}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install #%check #%{__python2} setup.py test #%{__python3} setup.py test %files -n %{name} %license LICENSE.rst %doc README.rst %{python2_sitelib}/* %files -n python3-%{srcname} %license LICENSE.rst %doc README.rst %{python3_sitelib}/* #%{_bindir}/*