python-pexpect-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. Summary: Unicode-aware Pure Python Expect-like module
  2. Name: python-pexpect
  3. Version: 3.0
  4. Release: 1%{?_dist_release}
  5. License: MIT
  6. Group: Development/Languages
  7. URL: https://github.com/pexpect/pexpect
  8. Source0: https://github.com/pexpect/pexpect/releases/download/%{version}%{?relcand}/pexpect-%{version}%{?relcand}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildArch: noarch
  11. BuildRequires: python-devel python-nose ed
  12. %description
  13. Pexpect is a pure Python module for spawning child applications; controlling
  14. them; and responding to expected patterns in their output. Pexpect works like
  15. Don Libes' Expect. Pexpect allows your script to spawn a child application and
  16. control it as if a human were typing commands.
  17. Pexpect can be used for automating interactive applications such as ssh, ftp,
  18. passwd, telnet, etc. It can be used to automate setup scripts for duplicating
  19. software package installations on different servers. And it can be used for
  20. automated software testing. Pexpect is in the spirit of Don Libes' Expect, but
  21. Pexpect is pure Python. Unlike other Expect-like modules for Python, Pexpect
  22. does not require TCL or Expect nor does it require C extensions to be
  23. compiled. It should work on any platform that supports the standard Python
  24. pty module.
  25. %prep
  26. %setup -q -n pexpect-%{version}
  27. %build
  28. %{__python} setup.py build
  29. %check
  30. . ./test.env
  31. ./tools/testall.py
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. %{__python} setup.py install --skip-build \
  35. --root $RPM_BUILD_ROOT --install-lib %{python_sitelib}
  36. rm -rf $RPM_BUILD_ROOT%{python_sitelib}/setuptools/tests
  37. # Correct some permissions
  38. find examples -type f -exec chmod a-x \{\} \;
  39. %clean
  40. rm -rf %{buildroot}
  41. %files
  42. %defattr(-,root,root)
  43. %doc doc examples LICENSE
  44. %{python_sitelib}/*.py*
  45. %{python_sitelib}/pexpect/
  46. %{python_sitelib}/pexpect-%{version}%{?relcand}-py?.?.egg-info
  47. %exclude %{python_sitelib}/pexpect/tests/
  48. %changelog
  49. * Sun Apr 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.0-1
  50. - initial build for Vine Linux
  51. * Tue Nov 12 2013 Thomas Spura <tomspur@fedoraproject.org> - 3.0-1
  52. - update to 3.0
  53. * Wed Oct 30 2013 Thomas Spura <tomspur@fedoraproject.org> - 3.0-0.1
  54. - new upstream is github/pexpect/pexpect
  55. - update to rc3
  56. - build on noarch again
  57. - consistently use %%{buildroot} everywhere
  58. - be more explicit in %%files
  59. - remove CFLAGS
  60. * Thu Sep 05 2013 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-11
  61. - Fix the name of the arm architecture in ExcludeArch
  62. * Thu Sep 05 2013 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-10
  63. - Remove noarch because of arm build problems (bug #999174)
  64. * Tue Aug 20 2013 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-9
  65. - Exclude the arm architecture (bug #999174)
  66. * Tue Aug 20 2013 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-8
  67. - Bump the obsoletes version
  68. * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-7
  69. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  70. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-6
  71. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  72. * Tue Nov 20 2012 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-5
  73. - Exclude test scripts from the files list
  74. * Tue Nov 20 2012 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-4
  75. - Moved unit tests to a check section
  76. * Tue Nov 20 2012 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-3
  77. - Added unit tests and fixed metadata fields
  78. * Tue Nov 20 2012 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-2
  79. - Added versions to the obsoletes and provides fields
  80. * Tue Nov 20 2012 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-1
  81. - Updated to version 2.5.1 (pexpect-u fork) and added support for Python 3
  82. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-6
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  84. * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.3-5
  85. - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
  86. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-4
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  88. * Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 2.3-3
  89. - Rebuild for gcc 4.4 and rpm 4.6
  90. * Fri Dec 5 2008 Jeremy Katz <katzj@redhat.com> - 2.3-2
  91. - Rebuild for python 2.6
  92. * Tue Jan 08 2008 Robert Scheck <robert@fedoraproject.org> 2.3-1
  93. - Upgrade to 2.3
  94. - Updated the source URL to match with the guidelines
  95. * Wed Aug 29 2007 Robert Scheck <robert@fedoraproject.org> 2.1-5
  96. - Rebuilt (and some minor spec file tweaks)
  97. * Sat Dec 09 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.1-4
  98. - Bump and rebuild because I forgot to cvs up before the last build.
  99. * Sat Dec 09 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.1-3
  100. - Bump and rebuild for python 2.5 on devel.
  101. - Add BR: python-devel as it provides a header necessary for python modules
  102. on python 2.5.
  103. * Fri Sep 01 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.1-2
  104. - Remove pyver define as it's not needed with the automatic python(abi).
  105. - Stop ghosting .pyos.
  106. - Let automatic python compilation take care of creating pyos.
  107. - Rebuild for FC6.
  108. * Mon Jul 17 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.1-1
  109. - Update to 2.1.
  110. * Thu Feb 16 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.0-2
  111. - Bump and rebuild for FC5.
  112. - Convert from python-abi to python(abi) requires.
  113. * Thu Nov 17 2005 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.0-1
  114. - Update to 2.0.
  115. * Sat Sep 3 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 0.99999b-2
  116. - Add LICENSE File.
  117. - Make noarch.
  118. - Remove executable permissions from the modules copied to examples.
  119. * Fri Sep 2 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 0.99999b
  120. - Update to version 0.99999b.
  121. - Add dist tag.
  122. * Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  123. - rebuilt
  124. * Thu Feb 03 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 0.999-2
  125. - Use python_sitelib macro to resolve build issues on x86_64.
  126. - %%ghost *.pyo
  127. - Install ANSI.py, screen.py, and FSM.py into the examples. These are intended
  128. to suplement pexpect eventually but they are currently much less robust and
  129. not installed to by default. But they are needed by some examples.
  130. - Use __python macro in build/install for consistency.
  131. - Add --skip-build to the invocation of setup.py in install.
  132. * Mon May 31 2004 Panu Matilainen <pmatilai@welho.com> 0.999-0.fdr.1
  133. - get rid of distrel munging, buildsys does that...
  134. - update to 0.999
  135. - update doc and example tarballs
  136. - fix build on python <> 2.2
  137. - use -O1 in install to generate .pyo files instead of manually creating the files
  138. - require python-abi = pyver to get dependencies right
  139. * Sun Jul 27 2003 Panu Matilainen <pmatilai@welho.com> 0.98-0.fdr.3
  140. - own .pyo files too as suggested by Ville (#517)
  141. * Sat Jul 26 2003 Panu Matilainen <pmatilai@welho.com> 0.98-0.fdr.2
  142. - fixes by Ville (bug #517) applied
  143. * Sat Jul 26 2003 Panu Matilainen <pmatilai@welho.com>
  144. - Initial Fedora packaging