|
@@ -1,27 +1,50 @@
|
|
|
|
+%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
|
|
|
|
+%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}}
|
|
|
|
+
|
|
%define tcl_major 8.4
|
|
%define tcl_major 8.4
|
|
%define thread_major 2.5
|
|
%define thread_major 2.5
|
|
-%define majorver 5.43
|
|
+%define majorver 5.44
|
|
|
|
|
|
Summary: A Tcl/Tk development environment: expect
|
|
Summary: A Tcl/Tk development environment: expect
|
|
Summary(ja): Tcl/Tk 開発環境: expect
|
|
Summary(ja): Tcl/Tk 開発環境: expect
|
|
Name: expect
|
|
Name: expect
|
|
-Version: %{majorver}.0
|
|
+Version: %{majorver}.1.15
|
|
-Release: 5%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
Group: Development/Languages
|
|
Group: Development/Languages
|
|
URL: http://expect.nist.gov/
|
|
URL: http://expect.nist.gov/
|
|
-License: BSD
|
|
+License: Public Domain
|
|
-Source0: http://expect.nist.gov/src/%{name}-%{version}.tar.gz
|
|
+Source0: http://expect.nist.gov/src/%{name}-%{version}.tar.bz2
|
|
-Patch0: expect-5.32.2-random.patch
|
|
+# Patch500: fixes change log file permissions
|
|
-Patch6: expect-5.38.0-spawn-43310.patch
|
|
+Patch500: expect-5.43.0-log_file.patch
|
|
-Patch8: expect-5.32.2-setpgrp.patch
|
|
+# Patch501: fixes install location, change pkgIndex
|
|
-Patch10: expect-5.38.0-lib-spec.patch
|
|
+Patch501: expect-5.43.0-pkgpath.patch
|
|
-Patch11: expect-5.39.0-libdir.patch
|
|
+# Patch502: fixes bz456738, expectk is unsupported by upstream actually,
|
|
|
|
+# but the patch is under discussion (patch by Sergei Golovan)
|
|
|
|
+Patch502: expect-5.44.1.15-tk-init.patch
|
|
|
|
+# Patch503: fixes bz742911
|
|
|
|
+Patch503: expect-5.44.1.15-match-gt-numchars-segfault.patch
|
|
|
|
+# Patch504: bz674866, proposed upstream, not accepted yet
|
|
|
|
+# https://sourceforge.net/tracker/?func=detail&aid=3404934&group_id=13179&atid=113179
|
|
|
|
+Patch504: expect-5.45-man-page.patch
|
|
|
|
+# examples patches
|
|
|
|
+# Patch600: changes random function
|
|
|
|
+Patch600: expect-5.32.2-random.patch
|
|
|
|
+# Patch601: bz547686, no response from upstream
|
|
|
|
+Patch601: expect-5.44.1.15-unbuffer-exit-code.patch
|
|
|
|
+# Patch602: bz735962, proposed to upstream, not accepted yet
|
|
|
|
+# https://sourceforge.net/tracker/?func=detail&aid=3404914&group_id=13179&atid=113179
|
|
|
|
+Patch602: expect-5.45-passmass-su-full-path.patch
|
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: tcl >= %{tcl_major}
|
|
BuildRequires: tcl >= %{tcl_major}
|
|
|
|
+BuildRequires: tk >= %{tcl_major}
|
|
BuildRequires: thread >= %{thread_major}
|
|
BuildRequires: thread >= %{thread_major}
|
|
-BuildRequires: autoconf213
|
|
+BuildRequires: autoconf
|
|
BuildRequires: libX11-devel
|
|
BuildRequires: libX11-devel
|
|
|
|
+BuildRequires: chrpath
|
|
|
|
+
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
|
|
%description -n expect
|
|
%description -n expect
|
|
Expect is a tcl extension for automating interactive applications such
|
|
Expect is a tcl extension for automating interactive applications such
|
|
@@ -52,37 +75,49 @@ Obsoletes: expect <= 5.43-0vl4
|
|
This package contains expectk and some scripts that use it.
|
|
This package contains expectk and some scripts that use it.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%setup -q -n %{name}-%{majorver}
|
|
+%setup -q
|
|
-%patch0 -p1 -b .random
|
|
+%patch500 -p1 -b .log_file
|
|
-%patch6 -p2 -b .spawn
|
|
+%patch501 -p1 -b .pkgpath
|
|
-%patch8 -p2 -b .pgrp
|
|
+%patch502 -p1 -b .tk-init
|
|
-%patch10 -p1 -b .libspec
|
|
+%patch503 -p1 -b .match-gt-numchars-segfault
|
|
-%patch11 -p1 -b .libdir
|
|
+%patch504 -p1 -b .man-page
|
|
-
|
|
+# examples fixes
|
|
-# patch10 touch configure.in
|
|
+%patch600 -p1 -b .random
|
|
-autoconf-2.13
|
|
+%patch601 -p1 -b .unbuffer-exit-code
|
|
|
|
+%patch602 -p1 -b .passmass-su-full-path
|
|
|
|
+# -pkgpath.patch touch configure.in
|
|
|
|
+aclocal
|
|
|
|
+autoconf
|
|
|
|
+( cd testsuite
|
|
|
|
+ autoconf -I.. )
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure --enable-64bit \
|
|
+%configure --with-tcl=%{_libdir} --with-tk=%{_libdir} --enable-shared \
|
|
- --with-tcl=%{_libdir} --with-tk=%{_libdir} \
|
|
+ --with-tclinclude=%{_includedir}/tcl-private
|
|
- --with-tclinclude=%{_includedir}/tcl-private/generic \
|
|
+make %{?_smp_mflags}
|
|
- --with-tkinclude=%{_includedir}/tk-private/generic \
|
|
+
|
|
- --enable-shared --enable-threads --with-x=yes --enable-gcc
|
|
+%check
|
|
-make
|
|
+make test
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
-mkdir -p ${RPM_BUILD_ROOT}
|
|
+make install DESTDIR="$RPM_BUILD_ROOT"
|
|
-make INSTALL_ROOT=%{buildroot} install
|
|
+
|
|
|
|
+# move
|
|
|
|
+mv "$RPM_BUILD_ROOT"%{tcl_sitearch}/expect%{version}/libexpect%{version}.so "$RPM_BUILD_ROOT"%{_libdir}
|
|
|
|
|
|
# for linking with -lexpect
|
|
# for linking with -lexpect
|
|
-ln -s libexpect%{majorver}.so "$RPM_BUILD_ROOT"%{_libdir}/libexpect.so
|
|
+ln -s libexpect%{majorver}.1.15.so "$RPM_BUILD_ROOT"%{_libdir}/libexpect.so
|
|
|
|
|
|
# remove cryptdir/decryptdir, as Linux has no crypt command (bug 6668).
|
|
# remove cryptdir/decryptdir, as Linux has no crypt command (bug 6668).
|
|
rm -f "$RPM_BUILD_ROOT"%{_bindir}/{cryptdir,decryptdir}
|
|
rm -f "$RPM_BUILD_ROOT"%{_bindir}/{cryptdir,decryptdir}
|
|
rm -f "$RPM_BUILD_ROOT"%{_mandir}/man1/{cryptdir,decryptdir}.1*
|
|
rm -f "$RPM_BUILD_ROOT"%{_mandir}/man1/{cryptdir,decryptdir}.1*
|
|
rm -f "$RPM_BUILD_ROOT"%{_bindir}/autopasswd
|
|
rm -f "$RPM_BUILD_ROOT"%{_bindir}/autopasswd
|
|
|
|
|
|
|
|
+# remove rpath
|
|
|
|
+chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libexpect%{version}.so
|
|
|
|
+
|
|
|
|
+
|
|
%post -p /sbin/ldconfig -n expect
|
|
%post -p /sbin/ldconfig -n expect
|
|
|
|
|
|
%postun -p /sbin/ldconfig -n expect
|
|
%postun -p /sbin/ldconfig -n expect
|
|
@@ -108,9 +143,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_bindir}/unbuffer
|
|
%{_bindir}/unbuffer
|
|
%{_bindir}/weather
|
|
%{_bindir}/weather
|
|
%{_bindir}/xkibitz
|
|
%{_bindir}/xkibitz
|
|
-%dir %{_libdir}/expect%{majorver}
|
|
+%dir %{tcl_sitearch}/expect%{version}
|
|
-%{_libdir}/expect%{majorver}/pkgIndex.tcl
|
|
+%{tcl_sitearch}/expect%{version}/pkgIndex.tcl
|
|
-%{_libdir}/libexpect%{majorver}.so
|
|
+%{_libdir}/libexpect%{version}.so
|
|
%{_mandir}/man1/autoexpect.1.gz
|
|
%{_mandir}/man1/autoexpect.1.gz
|
|
%{_mandir}/man1/dislocate.1.gz
|
|
%{_mandir}/man1/dislocate.1.gz
|
|
%{_mandir}/man1/expect.1.gz
|
|
%{_mandir}/man1/expect.1.gz
|
|
@@ -123,8 +158,6 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%exclude %{_libdir}/expect%{majorver}/libexpect%{majorver}.a
|
|
|
|
-%exclude %{_libdir}/libexpect%{majorver}.a
|
|
|
|
%{_libdir}/libexpect.so
|
|
%{_libdir}/libexpect.so
|
|
%{_mandir}/man3/libexpect.3*
|
|
%{_mandir}/man3/libexpect.3*
|
|
%{_includedir}/*
|
|
%{_includedir}/*
|
|
@@ -142,6 +175,28 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Jan 4 2013 IWAI, Masaharu <iwai@alib.jp> 5.44.1.15-1
|
|
|
|
+- update to 5.44.1.15:sync ed Hat Enterprise Linux 6 expect-5.44.1.15-4.el6
|
|
|
|
+- add BuildRequires: tk, chrpath
|
|
|
|
+- update License: Public Domain
|
|
|
|
+- drop obsolete patches
|
|
|
|
+ - random patch (Patch0)
|
|
|
|
+ - spawn-43310 patch (Patch6)
|
|
|
|
+ - setpgrp patch (Patch8)
|
|
|
|
+ - lib spec patch (Patch10)
|
|
|
|
+ - libdir patch (Patch11)
|
|
|
|
+- add some patches from RHEL expect-5.44.1.15-4.el6
|
|
|
|
+ - fixes log file permissions patch (Patch500)
|
|
|
|
+ - fixes install location patch (Patch501)
|
|
|
|
+ - tk init patch (Patch502)
|
|
|
|
+ - match gt numchars segfault patch (Patch503)
|
|
|
|
+ - man page patch (Patch504)
|
|
|
|
+ - random patch (Patch600)
|
|
|
|
+ - unbuffer exit code patch (Patch601)
|
|
|
|
+ - passmass su full path Patch (Patch602)
|
|
|
|
+- update build and install section: sync RHEL expect-5.44.1.15-4.el6
|
|
|
|
+- add Vendor and Distribution tags
|
|
|
|
+
|
|
* Tue Apr 19 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.43-5
|
|
* Tue Apr 19 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.43-5
|
|
- add missing BuildRequires: libX11-devel
|
|
- add missing BuildRequires: libX11-devel
|
|
|
|
|