Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 572690deb9d17b84e2e59735f0c41056 > files > 3

nxt_python-0.7-7.fc14.src.rpm

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


Name:		nxt_python
Version:	0.7
Release:	7%{?dist}
Summary:	Nxt_python is a package for controlling a LEGO NXT robot using python

Group:		Applications/Engineering
License:	GPLv2+
URL:		http://home.comcast.net/~dplau/nxt_python/
Source0:	http://home.comcast.net/~dplau/nxt_python/download/%{name}-%{version}.tar.gz
Patch0:		http://jesusfreak91.googlepages.com/%{name}-%{version}-linux.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch

BuildRequires:	python-devel
Requires:	pybluez, pyusb, pygtk2
Requires(pre):	shadow-utils

%description
nxt_python is a python package for controlling a LEGO NXT robot using the 
python programming language.  It can communicate using either USB or Bluetooth. 


%prep
%setup -q
%patch0 -p1

%build
python setup.py build

%install
rm -rf %{buildroot}
python setup.py install --root=%{buildroot}


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc COPYING README 
%{_bindir}/*
%{python_sitelib}/*
%config %{_sysconfdir}/udev/rules.d/70-lego.rules

%pre
getent group lego >/dev/null || groupadd -r lego


%changelog
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.7-7
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.7-4
- Rebuild for Python 2.6

* Thu Aug 07 2008 John McLean <jesusfreak91@gmail.com> - 0.7-3
-added pygtk2 Requires
-in patch0, COPYING is no longer changed to LICENSE
-added %%name and %%version macros to SourceURL
-remove (noreplace) from %%config macro

* Wed Jul 30 2008 John McLean <jesusfreak91@gmail.com> - 0.7-2
-removed python from BuildRequires
-changed source0
-included a patch for setup.py and the inclusion of a LICENSE
-removed %%post and %%postun
-included %%pre

*Sat Jul 05 2008 John McLean <jesusfreak91@gmail.com> - 0.7-1
-Initial spec