diff options
Diffstat (limited to 'packaging/expect.spec')
-rw-r--r-- | packaging/expect.spec | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/packaging/expect.spec b/packaging/expect.spec new file mode 100644 index 0000000..50b2ae9 --- /dev/null +++ b/packaging/expect.spec @@ -0,0 +1,69 @@ +Name: expect +Version: 5.45.4 +Release: 0 +Summary: A Tool for Automating Interactive Programs +License: Public-Domain +Group: Development/Languages/Tcl +Url: http://expect.nist.gov +Source: %{name}%{version}.tar.gz +Source1: expect-rpmlintrc +Source2: add_pie_compile_option.patch +Source1001: expect.manifest + +BuildRequires: autoconf +BuildRequires: tcl-devel + +%description +Expect is a tool primarily for automating interactive applications, +such as telnet, ftp, passwd, fsck, rlogin, tip, and more. Expect +really makes this stuff trivial. Expect is also useful for testing +these applications. It is described in many books, articles, papers, +and FAQs. There is an entire book on it available from O'Reilly. + +%package devel +Summary: Header Files and C API Documentation for expect +Group: Development/Libraries/Tcl + +%description devel +This package contains header files and documentation needed for linking +to expect from programs written in compiled languages like C, C++, etc. +This package is not needed for developing scripts that run under the +/usr/bin/expect interpreter, or any other Tcl interpreter with the +expect package loaded. + +%prep +%setup -q -n %name%version +cp %{SOURCE1001} . +%{__patch} -p1 < %{SOURCE2} + +%build +%reconfigure \ + --with-tcl=%_libdir \ + --with-tk=no_tk \ + --with-tclinclude=%_includedir \ + --enable-shared + +make %{?_smp_mflags} all + +# %check +# make test + +%install +make install DESTDIR=$RPM_BUILD_ROOT +# Remove some executables and manpages we don't want to ship +rm $RPM_BUILD_ROOT%_prefix/bin/*passwd +rm $RPM_BUILD_ROOT%_mandir/*/*passwd* + +%{remove_docs} + +%files +%manifest %{name}.manifest +%{_prefix}/bin/* +%{_libdir}/%{name}%{version}/lib*.so +%{_libdir}/%{name}%{version}/pkgIndex.tcl + +%files devel +%manifest %{name}.manifest +%{_includedir}/* + +%changelog |