diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-04 17:23:36 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-04 17:23:36 -0800 |
commit | 488c94d4ed7b0876464cd64a92dbf31b06fbde0f (patch) | |
tree | a1384616f9cfa838e47d3ba41581cd62c979027c | |
parent | 89fcd9132d08d6c7064b5054280556fb281bc560 (diff) | |
download | expect-488c94d4ed7b0876464cd64a92dbf31b06fbde0f.tar.gz expect-488c94d4ed7b0876464cd64a92dbf31b06fbde0f.tar.bz2 expect-488c94d4ed7b0876464cd64a92dbf31b06fbde0f.zip |
add packagingsubmit/tizen/20130517.021011submit/tizen/20130509.174222submit/tizen/20130503.191450accepted/tizen/20130520.095410accepted/tizen/20130503.223407
-rw-r--r-- | packaging/expect-rpmlintrc | 3 | ||||
-rw-r--r-- | packaging/expect.spec | 71 |
2 files changed, 74 insertions, 0 deletions
diff --git a/packaging/expect-rpmlintrc b/packaging/expect-rpmlintrc new file mode 100644 index 0000000..17314dc --- /dev/null +++ b/packaging/expect-rpmlintrc @@ -0,0 +1,3 @@ +addFilter("no-soname") +addFilter("files-duplicate") +addFilter("package-with-huge-docs") diff --git a/packaging/expect.spec b/packaging/expect.spec new file mode 100644 index 0000000..8e39833 --- /dev/null +++ b/packaging/expect.spec @@ -0,0 +1,71 @@ +Url: http://expect.nist.gov +Name: expect +BuildRequires: autoconf +BuildRequires: tcl-devel +Version: 5.45 +Release: 0 +Summary: A Tool for Automating Interactive Programs +License: SUSE-Public-Domain +Group: Development/Languages/Tcl +Source: %{name}%{version}.tar.gz +Source1: expect-rpmlintrc + +%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 + +%build +autoreconf +%configure \ + --with-tcl=%_libdir \ + --with-tk=no_tk \ + --with-tclinclude=%_includedir \ + --enable-shared +make %{?_smp_mflags} all pkglibdir=%_libdir/tcl/%name%version + + +%check +make test + +%install +# set the right path to the expect binary... +sed -i \ + -e '1s,^#![^ ]*expectk,#!/usr/bin/wish\npackage require Expect,' \ + -e '1s,^#![^ ]*expect,#!/usr/bin/expect,' \ + example/* +make install DESTDIR=$RPM_BUILD_ROOT pkglibdir=%_libdir/tcl/%name%version +# Remove some executables and manpages we don't want to ship +rm $RPM_BUILD_ROOT%_prefix/bin/*passwd +rm $RPM_BUILD_ROOT%_mandir/*/*passwd* + +%files +%defattr(-,root,root) +%_prefix/bin/* +%_libdir/tcl/* +%_libdir/lib*.so +%doc %_mandir/man1/* + +%files devel +%defattr(-,root,root) +%_includedir/* +%doc %_mandir/man3/* + +%changelog |