# sitelib for noarch packages, sitearch for others (remove the unneeded one) %{!?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))")} Name: pybugz Version: 0.8.0 Release: 1%{?dist} Summary: A python and command line interface to bugzilla Group: Development/Languages License: GPL URL: http://www.liquidx.net/pybugz/ Source0: http://media.liquidx.net/static/pybugz/pybugz-%version.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch:noarch BuildRequires: python-devel Requires: PyYAML %description PyBugz is a python and command line interface to Bugzilla. It was conceived as a tool to speed up the workflow for Gentoo Linux developers and contributors when dealing with bugs using Bugzilla. By avoiding the clunky web interface, the user quickly search, isolate and contribute to the project very quickly. Developers alike can easily extract attachments and close bugs all from the comfort of the command line. PyBugz is written in Python and written in a way to be extended easily for use on other Bugzillas. %prep %setup -q %build # Remove CFLAGS=... for noarch packages (unneeded) CFLAGS="$RPM_OPT_FLAGS" %{__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 README* %{_bindir}/* %{python_sitelib}/* %changelog * Fri Aug 13 2010 Bamacharan Kundu - create package (0.8.0)