%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-TraitsBackendQt Version: 3.0.3 Release: 4%{?dist} Summary: PyQt backend for Traits and TraitsGUI Group: Development/Languages # Confirmed from upstream that some files are BSD and most are GPLed License: BSD and GPLv2 URL: http://pypi.python.org/pypi/TraitsBackendQt/%{version} #md5=ffebd2e9ddec6a73611f59f5699e92c6 Source0: http://pypi.python.org/packages/source/T/TraitsBackendQt/TraitsBackendQt-3.0.3.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel, python-setuptools Requires: PyQt4 %description The TraitsBackendQt project contains an implementation of TraitsGUI using PyQt. It provides Qt-based support for visualization and editing of Traits-based objects. %prep %setup -q -n TraitsBackendQt-%{version} sed -i 's/\r//' image_LICENSE.txt rm -rf TraitsBackendQt.egg-info %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 *.txt %{python_sitelib}/* %changelog * Tue Mar 17 2009 Rakesh Pandit 3.0.3-4 - Egg-info directory deleted * Tue Jan 27 2009 Rakesh Pandit 3.0.3-3 - Fix BuildRequires * Tue Jan 27 2009 Rakesh Pandit 3.0.3-2 - Fixed the license and confimed by upstream * Tue Jan 27 2009 Rakesh Pandit 3.0.3-1 - Initial package