#$Id$ %if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif Summary: dpaste is a code pastebin application using Django Name: django-paste Version: 0.2.4 Release: 1%{?dist} License: BSD with advertising Group: Development/Libraries URL: http://code.google.com/p/django-paste/ # the following source is pulled from git clone git://github.com/bartTC/django-paste.git # then tarred into the source file with tar cvfz django-paste.tgz django-paste/ Source0: django-paste.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: python2-devel %description Originally inspired by dpaste.com this application adds the ability to: See the differences between snippets A history of snippets as a tree See your latest 25 snippets (admin setting) A huge bunch of syntax highlighters (lexers) User defined settings to change the font-family as well as font-sizes Nicer colors Multilangual interface %prep %setup -q -n %{name} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}" %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc CHANGELOG LICENSE MANIFEST.in README.rst %{python_sitearch}/django_dpaste-0.2.4-py2.* %{python_sitearch}/dpaste/* %changelog * Fri Aug 20 2010 Dave Riches - 0.2.4-1 - Packaged for Fedora 12/13/14 *Fri Nov 28 2008 martin@mahner.org - added user-defined exipration for snippets - added a management command to purge old snippets - new secret ids - This is backwards incompatible! - User can delete his snippet at any time - added this changelog :)