63 lines
1.5 KiB
RPMSpec
63 lines
1.5 KiB
RPMSpec
|
#
|
||
|
# spec file for package python-pexpect (Version 2.1)
|
||
|
#
|
||
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
# This file and all modifications and additions to the pristine
|
||
|
# package are under the same license as the package itself.
|
||
|
#
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
|
||
|
Name: python-pexpect
|
||
|
BuildRequires: python-devel
|
||
|
License: X11/MIT
|
||
|
Group: Development/Libraries/Python
|
||
|
Autoreqprov: on
|
||
|
Version: 2.1
|
||
|
Release: 1
|
||
|
Summary: Pure Python Expect-like module.
|
||
|
URL: http://pexpect.sourceforge.net/
|
||
|
Source: %{name}-%{version}.tar.gz
|
||
|
Patch: %{name}-%{version}.patch
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
#BuildArchitectures: noarch
|
||
|
#ExclusiveArch: %ix86
|
||
|
Requires: python
|
||
|
|
||
|
%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
|
||
|
%patch
|
||
|
|
||
|
%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
|
||
|
* Wed Jan 24 2007 - timlee@suse.de
|
||
|
- initial submission to autobuild, version 2.1
|