A new user interface for you! Read more...

File django-polymorphic.spec of Package django-polymorphic

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define 	module	polymorphic

Name:		django-%{module}
Version:	1.0
Release:	0
License:	GPL
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
BuildRequires:	python-devel, python-setuptools
Requires:	Django
Group:		Development/Languages
Summary:	Django polymorphic model
URL:		http://bserve.webhop.org/wiki/django_polymorphic
Source:		django_polymorphic-%{version}.tar.bz2
BuildArch:	noarch
Prefix:		/usr

%description
django_polymorphic implements seamless polymorphic inheritance for Django models.

%prep
%setup -q -n django_polymorphic-%{version}

%build
%{__python} setup.py build

%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{python_sitelib}/*

%changelog