]> git.pld-linux.org Git - packages/python-pexpect.git/blame - python-pexpect.spec
- use __python macro
[packages/python-pexpect.git] / python-pexpect.spec
CommitLineData
d848af59 1%define module pexpect
2Summary: Expect module for Python
8a21c891 3Summary(pl.UTF-8): Moduł Pythona automatyzujący zadania, wzorowany na Expect
d848af59 4Name: python-%{module}
0d9b744e 5Version: 2.3
93419ceb 6Release: 1
f575ff11 7License: PSF
d848af59 8Group: Development/Languages/Python
31a995b3 9Source0: http://dl.sourceforge.net/pexpect/pexpect-%{version}.tar.gz
0d9b744e 10# Source0-md5: bf107cf54e67bc6dec5bea1f3e6a65c3
31a995b3 11URL: http://pexpect.sourceforge.net/
d848af59 12BuildRequires: python-devel >= 2.2
be2649fc 13BuildRequires: python-modules
2f08e3cd 14BuildRequires: rpm-pythonprov
f575ff11 15BuildRequires: rpmbuild(macros) >= 1.219
16%pyrequires_eq python-modules
176f3d72 17BuildArch: noarch
d848af59 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
ae11350e
JB
21Pexpect is a pure Python module for spawning child applications;
22controlling them; and responding to expected patterns in their output.
23Pexpect works like Don Libes' Expect. Pexpect allows your script to
24spawn a child application and control it as if a human were typing
25commands.
d848af59 26
355748ac
JR
27%description -l pl.UTF-8
28Pexpect jest modułem napisanym wyłącznie w Pythonie przeznaczonym do
ae11350e 29uruchamiania aplikacji i kontroli nad nimi poprzez reagowanie na
355748ac
JR
30znalezione wzorce na ich wyjściu. Pexpect działa podobnie do Expecta
31Dona Libesa - pozwala skryptom z ich poziomu uruchomić inne programy i
32sprawować nad nimi kontrolę imitując interakcję użytkownika.
d848af59 33
34%prep
31a995b3 35%setup -q -n %{module}-%{version}
d848af59 36
37%build
2f08e3cd 38%{__python} setup.py build
d848af59 39
40%install
41rm -rf $RPM_BUILD_ROOT
42install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
d848af59 43
2f08e3cd 44%{__python} setup.py install \
d848af59 45 --root=$RPM_BUILD_ROOT
46
f575ff11 47install examples/*.py {ANSI,FSM,screen}.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48
d848af59 49%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
50%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
f575ff11 51%py_postclean
d848af59 52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
be2649fc 58%doc README doc/*.html
f575ff11 59%{py_sitescriptdir}/*.py[co]
60%{_examplesdir}/%{name}-%{version}
This page took 0.09089 seconds and 4 git commands to generate.