Bump to expect 5.45.4 13/265513/1 accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_7.0_base_tool accepted/tizen_7.0_base_tool_hotfix sandbox/dh0128.kwak/expect-5.45.4-20211021 tizen_7.0_base tizen_7.0_base_hotfix accepted/tizen/7.0/base/20230714.002904 accepted/tizen/7.0/base/hotfix/20230714.003719 accepted/tizen/7.0/base/tool/20221028.113157 accepted/tizen/7.0/base/tool/hotfix/20221115.084944 accepted/tizen/base/tool/20211217.071110 submit/tizen_7.0_base/20221028.200901 submit/tizen_7.0_base_hotfix/20221115.161501 submit/tizen_base/20211215.224706 tizen_7.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 21 Oct 2021 07:41:33 +0000 (16:41 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 21 Oct 2021 07:41:56 +0000 (16:41 +0900)
Change-Id: Iafc6fc8d34a93171bbcd6c57db6ef875eabac066
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/add_pie_compile_option.patch [new file with mode: 0644]
packaging/expect-rpmlintrc [new file with mode: 0644]
packaging/expect.manifest [new file with mode: 0644]
packaging/expect.spec [new file with mode: 0644]

diff --git a/packaging/add_pie_compile_option.patch b/packaging/add_pie_compile_option.patch
new file mode 100644 (file)
index 0000000..f7b7495
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/Makefile.in b/Makefile.in
+index 2d36791..6bd4219 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -396,7 +396,8 @@ expect:    exp_main_exp.o $(PKG_LIB_FILE)
+               @TCL_LIB_SPEC@ \
+               @TCL_DL_LIBS@ @PKG_LIBS@ @MATH_LIBS@ \
+               @TCL_CC_SEARCH_FLAGS@ \
+-              @EXP_CC_SEARCH_FLAGS@
++              @EXP_CC_SEARCH_FLAGS@ \
++              -pie
+       $(SETUID) expect
+
+ expectk:
diff --git a/packaging/expect-rpmlintrc b/packaging/expect-rpmlintrc
new file mode 100644 (file)
index 0000000..17314dc
--- /dev/null
@@ -0,0 +1,3 @@
+addFilter("no-soname")
+addFilter("files-duplicate")
+addFilter("package-with-huge-docs")
diff --git a/packaging/expect.manifest b/packaging/expect.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/expect.spec b/packaging/expect.spec
new file mode 100644 (file)
index 0000000..50b2ae9
--- /dev/null
@@ -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