diff --git a/.gitignore b/.gitignore index e69de29..53af830 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/django-pytest-0.2.0.tar.gz diff --git a/python-django-pytest.spec b/python-django-pytest.spec new file mode 100644 index 0000000..2c7e471 --- /dev/null +++ b/python-django-pytest.spec @@ -0,0 +1,50 @@ +%global pypi_name django-pytest + +Name: python-%{pypi_name} +Version: 0.2.0 +Release: 1%{?dist} +Summary: Allows you to use py.test as a django test runner + +License: BSD +URL: https://github.com/buchuki/django-pytest +Source0: http://pypi.python.org/packages/source/d/django-pytest/%{pypi_name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python-devel +BuildRequires: python-setuptools + +Requires: python-django +Requires: pytest + +Provides: %{pypi_name} = %{version}-%{release} + +%description +This project allows you to use py.test as a django test runner, +instead of the default test runner. + +%prep +%setup -q -n %{pypi_name}-%{version} +# remove the bundled egg-info +rm -rf %{pypi_name}.egg-info + + +%build +%{__python} setup.py build + + +%install +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + + +%files +%doc LICENSE.txt README.md +%{python_sitelib}/django_pytest/ +%{python_sitelib}/django_pytest-%{version}-py2.7.egg-info + +%changelog +* Wed Mar 28 2012 Bohuslav Kabrda - 0.2.0-1 +- Update to version 0.2.0 +- Be more verbose in %%files section + +* Wed Mar 28 2012 Bohuslav Kabrda - 0.1.5-1 +- Initial package diff --git a/sources b/sources index e69de29..5edacea 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f44f8792994501c37efaf7d44b7baf4e django-pytest-0.2.0.tar.gz