%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: python-ctags Version: 1.0.5 Release: 1%{?dist} Summary: A wrapper to read tags library Group: Development/Languages License: LGPLv2 URL: http://code.google.com/p/python-ctags/ Source0: http://python-ctags.googlecode.com/files/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel, python-setuptools-devel Requires: ctags %description A python wrapper to read tags library. %prep %setup -q %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc PKG-INFO %{python_sitearch}/* %changelog * Tue Jun 24 2009 Kushal Das 1.0.5-1 - Initial release in Fedora