devel/pexpect pexpect.spec,1.4,1.5

Thorsten Leemhuis (thl) fedora-extras-commits at redhat.com
Thu Feb 10 20:19:06 UTC 2005


Author: thl

Update of /cvs/extras/devel/pexpect
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15084

Modified Files:
	pexpect.spec 
Log Message:
Use python_sitelib macro to resolve build issues on x86_64 and some minor fixes by Toshio Kuratomi


Index: pexpect.spec
===================================================================
RCS file: /cvs/extras/devel/pexpect/pexpect.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- pexpect.spec	10 Dec 2004 22:03:09 -0000	1.4
+++ pexpect.spec	10 Feb 2005 20:19:03 -0000	1.5
@@ -1,9 +1,11 @@
 %define pyver %(python -c 'import sys ; print sys.version[:3]')
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 Summary: Expect module for Python
 Name: pexpect
 Version: 0.999
-Release: 1
+Release: 2
 License: PSFL
 Group: Development/Languages
 URL: http://pexpect.sourceforge.net
@@ -34,10 +36,14 @@
 rm -rf $(find . -type d -name CVS)
 
 %build
-python setup.py build
+%{__python} setup.py build
 
 %install
-python setup.py install -O1 --root $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+# These are apparently works in progress and thus not installed.  But they are
+# needed by the chess* examples.... Moving them to examples for now.
+cp ANSI.py screen.py FSM.py examples
 
 #touch %{name}-ghost.files
 #for file in $(find $RPM_BUILD_ROOT -type f -name "*.py"); do
@@ -56,11 +62,22 @@
 #%files -f %{name}-ghost.files
 %files
 %defattr(-,root,root,-)
-%{_libdir}/python%{pyver}/site-packages/pexpect.*
+%{python_sitelib}/pexpect.py
+%{python_sitelib}/pexpect.pyc
+%ghost %{python_sitelib}/pexpect.pyo
 
 %doc README.txt doc examples
 
 %changelog
+* Thu Feb 03 2005 Toshio Kuratomi <toshio at tiki-lounge.com> 0.999-2
+- Use python_sitelib macro to resolve build issues on x86_64.
+- %%ghost *.pyo
+- Install ANSI.py, screen.py, and FSM.py into the examples.  These are intended 
+  to suplement pexpect eventually but they are currently much less robust and
+  not installed to by default.  But they are needed by some examples.
+- Use __python macro in build/install for consistency.
+- Add --skip-build to the invocation of setup.py in install.
+
 * Mon May 31 2004 Panu Matilainen <pmatilai at welho.com> 0.999-0.fdr.1
 - get rid of distrel munging, buildsys does that...
 - update to 0.999




More information about the fedora-extras-commits mailing list