1
0
python-pexpect/python-pexpect.spec

75 lines
2.1 KiB
RPMSpec

#
# spec file for package python-pexpect (Version 2.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: python-pexpect
BuildRequires: python-devel
License: MIT
Group: Development/Libraries/Python
AutoReqProv: on
Version: 2.3
Release: 23
Summary: Pure Python Expect-like module
Url: http://pexpect.sourceforge.net/
Source: pexpect-%{version}.tar.bz2
Patch: %{name}-%{version}.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildArchitectures: noarch
#ExclusiveArch: %ix86
%py_requires
%description
Pexpect is a pure Python module for spawning child applications;
controlling them; and responding to expected patterns in their output.
Authors:
--------
Noah Spurrier
%prep
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%setup -n pexpect-%{version}
%patch -p1
%build
python ./setup.py build
%install
#rm -rf $RPM_BUILD_ROOT
python ./setup.py install -O2 --prefix="/usr" --root=$RPM_BUILD_ROOT --record=%{name}.files
%clean
#rm -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%{_docdir}/python-pexpect
%{_docdir}/python-pexpect/examples
#%doc doc/
%changelog
* Sat Sep 20 2008 dmueller@suse.de
- fix requires
* Fri Aug 01 2008 bwalle@suse.de
- update to 2.3 (no upstream changelog available)
* Thu Jan 25 2007 timlee@suse.de
- initial submission to autobuild, version 2.1