Group :: Development/Python3
RPM: python3-module-django-user_agents
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%global pypi_name user_agents
Name: python3-module-django-%pypi_name
Version: 0.3.0
Release: alt3
Summary: A django package that allows easy identification of visitors information
License: MIT
Group: Development/Python3
URL: https://pypi.python.org/pypi/django-user_agents
BuildArch: noarch
Source0: %name-%version.tar
Patch0: fix-import.patch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-django
%description
A django package that allows easy identification of visitor's browser,
OS and device information, including whether the visitor uses a mobile phone,
tablet or a touch capable device. Under the hood, it uses user-agents.
%package tests
Summary: Tests for Theano
Group: Development/Python3
Requires: %name = %EVR
%description tests
A django package that allows easy identification of visitor's browser,
OS and device information, including whether the visitor uses a mobile phone,
tablet or a touch capable device. Under the hood, it uses user-agents.
This package contains tests for %name.
%prep
%setup
%patch0 -p1
sed -i 's|core.urlresolvers|urls|' $(find ./ -name 'tests.py')
%build
%python3_build
%install
%python3_install
%files
%doc README.rst LICENSE.txt
%python3_sitelibdir/*
%exclude %python3_sitelibdir/django_%pypi_name/tests
%files tests
%python3_sitelibdir/django_%pypi_name/tests
%changelog
…
Todas as alterações você pod ver aqui
Name: python3-module-django-%pypi_name
Version: 0.3.0
Release: alt3
Summary: A django package that allows easy identification of visitors information
License: MIT
Group: Development/Python3
URL: https://pypi.python.org/pypi/django-user_agents
BuildArch: noarch
Source0: %name-%version.tar
Patch0: fix-import.patch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-django
%description
A django package that allows easy identification of visitor's browser,
OS and device information, including whether the visitor uses a mobile phone,
tablet or a touch capable device. Under the hood, it uses user-agents.
%package tests
Summary: Tests for Theano
Group: Development/Python3
Requires: %name = %EVR
%description tests
A django package that allows easy identification of visitor's browser,
OS and device information, including whether the visitor uses a mobile phone,
tablet or a touch capable device. Under the hood, it uses user-agents.
This package contains tests for %name.
%prep
%setup
%patch0 -p1
sed -i 's|core.urlresolvers|urls|' $(find ./ -name 'tests.py')
%build
%python3_build
%install
%python3_install
%files
%doc README.rst LICENSE.txt
%python3_sitelibdir/*
%exclude %python3_sitelibdir/django_%pypi_name/tests
%files tests
%python3_sitelibdir/django_%pypi_name/tests
%changelog
…
Todas as alterações você pod ver aqui