Search
SailfishOS Open Build Service
>
Projects
>
home:WillWilson
>
expect
> expect.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File expect.spec of Package expect
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.26 # Name: expect # >> macros %define majorver 5.43 # << macros %define keepstatic 1 Summary: A program-script interaction and testing utility Version: %{majorver}.0 Release: 8 Group: Development/Languages License: Public Domain URL: http://expect.nist.gov/ Source0: http://expect.nist.gov/src/%{name}-%{version}.tar.gz Source100: expect.yaml Patch0: expect-5.38.0-spawn-43310.patch Patch1: expect-5.43.0-cfg-setpgrp.patch Patch2: expect-5.38.0-lib-spec.patch Patch3: expect-5.39.0-libdir.patch Patch4: expect-5.43.0-log_file.patch Patch5: expect-5.43-man-page.patch Patch6: expect-5.43.0-ignore-empty-write.patch Patch7: expect-5.32.2-random.patch Patch8: expect-5.32.2-fixcat.patch Patch9: unbuffer-child-flush-143963.patch Patch10: expect-5.43-passmass-su-full-path.patch Patch11: expect-5.43.0-passmass-prompt.patch Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description Expect is a tcl application for automating and testing interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect makes it easy for a script to control another program and interact with it. This package contains expect and some scripts that use it. %package -n expectk Summary: A program-script interaction and testing utility Group: Development/Languages Requires: %{name} = %{version}-%{release} Requires: expect = %{version}-%{release} %description -n expectk Expect is a tcl application for automating and testing interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect makes it easy for a script to control another program and interact with it. This package contains expectk and some scripts that use it. %package devel Summary: A program-script interaction and testing utility Group: Development/Languages Requires: %{name} = %{version}-%{release} Requires: expect = %{version}-%{release} %description devel Expect is a tcl application for automating and testing interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect makes it easy for a script to control another program and interact with it. This package contains development files for the expect library. %prep %setup -q -n %{name}-%{version} # expect-5.38.0-spawn-43310.patch %patch0 -p1 # expect-5.43.0-cfg-setpgrp.patch %patch1 -p1 # expect-5.38.0-lib-spec.patch %patch2 -p1 # expect-5.39.0-libdir.patch %patch3 -p1 # expect-5.43.0-log_file.patch %patch4 -p1 # expect-5.43-man-page.patch %patch5 -p1 # expect-5.43.0-ignore-empty-write.patch %patch6 -p1 # expect-5.32.2-random.patch %patch7 -p1 # expect-5.32.2-fixcat.patch %patch8 -p1 # unbuffer-child-flush-143963.patch %patch9 -p1 # expect-5.43-passmass-su-full-path.patch %patch10 -p1 # expect-5.43.0-passmass-prompt.patch %patch11 -p1 # >> setup # << setup %build # >> build pre export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export CXXFLAGS="$CFLAGS" # << build pre %configure \ --with-tcl=%{_libdir} \ --with-tk=%{_libdir} \ --enable-shared \ --with-tclinclude=%{_includedir}/tcl-private make %{?jobs:-j%jobs} # >> build post %{?_without_check: %define _without_check 1} %{!?_without_check: %define _without_check 0} %if ! %{_without_check} make test %endif # << build post %install rm -rf %{buildroot} # >> install pre # << install pre %make_install # >> install post # for linking with -lexpect ln -s libexpect%{majorver}.so %{buildroot}%{_libdir}/libexpect.so # remove cryptdir/decryptdir, as Linux has no crypt command (bug 6668). rm -f %{buildroot}%{_bindir}/{cryptdir,decryptdir} rm -f %{buildroot}%{_mandir}/man1/{cryptdir,decryptdir}.1* rm -f %{buildroot}%{_bindir}/autopasswd # << install post %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) # >> files %doc %{_bindir}/expect %{_bindir}/autoexpect %{_bindir}/dislocate %{_bindir}/ftp-rfc %{_bindir}/kibitz %{_bindir}/lpunlock %{_bindir}/mkpasswd %{_bindir}/passmass %{_bindir}/rftp %{_bindir}/rlogin-cwd %{_bindir}/timed-read %{_bindir}/timed-run %{_bindir}/unbuffer %{_bindir}/weather %{_bindir}/xkibitz %dir %{_libdir}/expect%{majorver} %{_libdir}/expect%{majorver}/cat-buffers %{_libdir}/expect%{majorver}/pkgIndex.tcl %{_libdir}/libexpect%{majorver}.so /usr/share/man/man1/autoexpect.1.gz /usr/share/man/man1/dislocate.1.gz /usr/share/man/man1/expect.1.gz /usr/share/man/man1/kibitz.1.gz /usr/share/man/man1/mkpasswd.1.gz /usr/share/man/man1/passmass.1.gz /usr/share/man/man1/tknewsbiff.1.gz /usr/share/man/man1/unbuffer.1.gz /usr/share/man/man1/xkibitz.1.gz # << files %files -n expectk %defattr(-,root,root,-) # >> files expectk %{_bindir}/expectk %{_bindir}/multixterm %{_bindir}/tknewsbiff %{_bindir}/tkpasswd %{_bindir}/xpstat %{_mandir}/man1/expectk.1* %{_mandir}/man1/multixterm.1* %{_mandir}/man1/tknewsbiff.1* # << files expectk %files devel %defattr(-,root,root,-) # >> files devel %{_libdir}/expect%{majorver}/libexpect%{majorver}.a %{_libdir}/libexpect%{majorver}.a %{_libdir}/libexpect.so %{_mandir}/man3/libexpect.3* %{_includedir}/* # << files devel