ALT Linux repos
S: | 5.9-alt2 |
5.0: | 4.3.9-alt2 |
4.1: | 4.3.6-alt1 |
4.0: | 4.3.4-alt3 |
+updates: | 4.3.4-alt3 |
3.0: | 4.3.0-alt0.2 |
+backports: | 4.3.2-alt0.0.M30.1 |
Group :: Shells
RPM: zsh
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: zsh
Version: 4.3.0
Release: alt0.2
Epoch: 1
Summary: A shell with lots of features
License: BSD-like
Group: Shells
URL: http://www.%name.org/
#Source0: ftp://ftp.%name.org/pub/%name-%version.tar.bz2
# cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/zsh co zsh
Source0: %name-%version-20050718.tar.bz2
Source2: zsh4-zshenv
Source3: zsh4-zshrc
Source4: zsh4-zlogout
Source5: zsh4-zlerc
Patch1: %name-3.1.6-mdk-default-path.patch
Patch2: %name-4.0.4-rh-serial.patch
Patch3: %name-4.1.0-mdk-rebootin-completion.patch
Patch4: %name-4.2.0-alt-zpty.patch
Patch5: %name-4.2.1-alt-texinfo-yo.patch
Patch6: %name-4.2.1-alt-texinfo-texi.patch
Patch7: %name-4.2.1-rh-make-test-fail.patch
Patch8: %name-4.3.0-alt-ssh-known_hosts.patch
Patch10: %name-4.2.4-alt-apt4rpm-rpm_packages.patch
Patch11: %name-4.3.0-alt-apt4rpm-apt.patch
Patch12: %name-4.2.4-alt-apt4rpm-rpm.patch
Requires(post): %install_info
Requires(preun): %uninstall_info
Provides: %name-doc = %epoch:%version
Obsoletes: %name-doc < %epoch:%version
# Added by buildreq2 on Tue Jul 19 2005
BuildRequires: libcap-devel libncurses-devel libpcre-devel yodl
%description
Zsh is a UNIX command interpreter (shell) usable as an interactive
login shell and as a shell script command processor. Of the standard
shells, %name most closely resembles ksh but includes many enhancements.
Zsh has command-line editing, built-in spelling correction, programmable
command completion, shell functions (with autoloading), a history
mechanism, and a lots of other features.
%prep
%setup -q -n %name-%version-20050718
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
#patch6 -p1
%patch7 -p1
%patch8 -p1
%__bzip2 -9kf ChangeLog
# apt4rpm
%__mkdir_p Completion/Redhat/Type
%__cp -av Completion/Debian/Type/_deb_packages Completion/Redhat/Type/_rpm_packages
echo _rpm_packages >>Completion/Redhat/Type/.distfiles
%__subst -p 's/_deb_/_rpm_/g; s/_debs_/_rpms_/g; s/DEBS_/RPMS_/g' Completion/Redhat/Type/_rpm_packages
! %__grep -i deb Completion/Redhat/Type/_rpm_packages
%patch10 -p1
%patch11 -p1
%patch12 -p1
%build
[ -e configure -a configure -nt configure.ac ] || autoreconf -fisv
# Disable libnsl/NIS support.
export ac_cv_search_yp_all=no zsh_cv_sys_nis=no zsh_cv_sys_nis_plus=no
# YODL is not required, pre-generated man pages are shipped.
export YODL=yodl PDFETEX=pdfetex
# Avoid autoconf thinking it should strip when linking.
export LDFLAGS=
%configure \
--enable-etcdir=%_sysconfdir \
--enable-fndir=%_datadir/%name \
--enable-site-fndir=/usr/local/share/%name \
--enable-function-subdirs \
--enable-maildir-support \
--with-curses-terminfo \
--with-tcsetpgrp \
--enable-cap \
--enable-pcre \
%{?_enable_debug: --enable-zsh-{,mem-,hash-}debug } \
%{?_enable_debug: --enable-zsh-{mem-warning,secure-free} } \
#
# we don't expect that something is broken
! %__grep '^#define.*BROKEN' config.h
# Eliminate pcre deps for a while.
LIBS=`%__perl -ne 'print if s/^LIBS *=// && s/-lpcre//' Makefile`
[ -n "$LIBS" -a -z "${LIBS##*-ltinfo*}" ]
# SMP-incompatible.
%__make MODDIR=%_libdir LIBS="$LIBS"
%__make -C Etc
# Restore pcre deps.
cd Src/Modules
%__rm -fv pcre.so
%__make MODDIR=%_libdir
cd -
[ ! -e /dev/tty ] || %__make test
%install
# Zsh hardcodes the prefix in binary even at install.
%makeinstall MODDIR=%buildroot%_libdir -C Src
%make_install DESTDIR=%buildroot install.fns install.man install.info
# Relocate to /bin.
%__mkdir_p %buildroot/bin
%__mv %buildroot%_bindir/%name %buildroot/bin/%name
%__ln_s `relative /bin/%name %_bindir/%name` %buildroot%_bindir/%name
# Configuration files.
%__mkdir_p %buildroot%_sysconfdir
for f in %SOURCE2 %SOURCE3 %SOURCE4 %SOURCE5; do
%__install -p -m644 "$f" %buildroot%_sysconfdir/"${f##*-}"
done
# Fix paths.
find %buildroot%_datadir/%name -type f -print0 |
xargs -r0 %__grep -FZl /usr/local/bin/%name |
xargs -r0 %__subst -p s:/usr/local/bin/%name:/bin/%name:g
%post
%install_info %name.info
%preun
%uninstall_info %name.info
%files
/bin/%name
%_bindir/%name
%_libdir/%name/
%_datadir/%name/
%config(noreplace) %_sysconfdir/z*[a-z]
%_man1dir/zsh*.*
%_infodir/zsh.info*
%doc ChangeLog.bz2 LICENCE META-FAQ README StartupFiles/z*
%doc Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ Etc/STD-TODO Etc/TODO
%changelog
…
Full changelog you can see here
Version: 4.3.0
Release: alt0.2
Epoch: 1
Summary: A shell with lots of features
License: BSD-like
Group: Shells
URL: http://www.%name.org/
#Source0: ftp://ftp.%name.org/pub/%name-%version.tar.bz2
# cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/zsh co zsh
Source0: %name-%version-20050718.tar.bz2
Source2: zsh4-zshenv
Source3: zsh4-zshrc
Source4: zsh4-zlogout
Source5: zsh4-zlerc
Patch1: %name-3.1.6-mdk-default-path.patch
Patch2: %name-4.0.4-rh-serial.patch
Patch3: %name-4.1.0-mdk-rebootin-completion.patch
Patch4: %name-4.2.0-alt-zpty.patch
Patch5: %name-4.2.1-alt-texinfo-yo.patch
Patch6: %name-4.2.1-alt-texinfo-texi.patch
Patch7: %name-4.2.1-rh-make-test-fail.patch
Patch8: %name-4.3.0-alt-ssh-known_hosts.patch
Patch10: %name-4.2.4-alt-apt4rpm-rpm_packages.patch
Patch11: %name-4.3.0-alt-apt4rpm-apt.patch
Patch12: %name-4.2.4-alt-apt4rpm-rpm.patch
Requires(post): %install_info
Requires(preun): %uninstall_info
Provides: %name-doc = %epoch:%version
Obsoletes: %name-doc < %epoch:%version
# Added by buildreq2 on Tue Jul 19 2005
BuildRequires: libcap-devel libncurses-devel libpcre-devel yodl
%description
Zsh is a UNIX command interpreter (shell) usable as an interactive
login shell and as a shell script command processor. Of the standard
shells, %name most closely resembles ksh but includes many enhancements.
Zsh has command-line editing, built-in spelling correction, programmable
command completion, shell functions (with autoloading), a history
mechanism, and a lots of other features.
%prep
%setup -q -n %name-%version-20050718
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
#patch6 -p1
%patch7 -p1
%patch8 -p1
%__bzip2 -9kf ChangeLog
# apt4rpm
%__mkdir_p Completion/Redhat/Type
%__cp -av Completion/Debian/Type/_deb_packages Completion/Redhat/Type/_rpm_packages
echo _rpm_packages >>Completion/Redhat/Type/.distfiles
%__subst -p 's/_deb_/_rpm_/g; s/_debs_/_rpms_/g; s/DEBS_/RPMS_/g' Completion/Redhat/Type/_rpm_packages
! %__grep -i deb Completion/Redhat/Type/_rpm_packages
%patch10 -p1
%patch11 -p1
%patch12 -p1
%build
[ -e configure -a configure -nt configure.ac ] || autoreconf -fisv
# Disable libnsl/NIS support.
export ac_cv_search_yp_all=no zsh_cv_sys_nis=no zsh_cv_sys_nis_plus=no
# YODL is not required, pre-generated man pages are shipped.
export YODL=yodl PDFETEX=pdfetex
# Avoid autoconf thinking it should strip when linking.
export LDFLAGS=
%configure \
--enable-etcdir=%_sysconfdir \
--enable-fndir=%_datadir/%name \
--enable-site-fndir=/usr/local/share/%name \
--enable-function-subdirs \
--enable-maildir-support \
--with-curses-terminfo \
--with-tcsetpgrp \
--enable-cap \
--enable-pcre \
%{?_enable_debug: --enable-zsh-{,mem-,hash-}debug } \
%{?_enable_debug: --enable-zsh-{mem-warning,secure-free} } \
#
# we don't expect that something is broken
! %__grep '^#define.*BROKEN' config.h
# Eliminate pcre deps for a while.
LIBS=`%__perl -ne 'print if s/^LIBS *=// && s/-lpcre//' Makefile`
[ -n "$LIBS" -a -z "${LIBS##*-ltinfo*}" ]
# SMP-incompatible.
%__make MODDIR=%_libdir LIBS="$LIBS"
%__make -C Etc
# Restore pcre deps.
cd Src/Modules
%__rm -fv pcre.so
%__make MODDIR=%_libdir
cd -
[ ! -e /dev/tty ] || %__make test
%install
# Zsh hardcodes the prefix in binary even at install.
%makeinstall MODDIR=%buildroot%_libdir -C Src
%make_install DESTDIR=%buildroot install.fns install.man install.info
# Relocate to /bin.
%__mkdir_p %buildroot/bin
%__mv %buildroot%_bindir/%name %buildroot/bin/%name
%__ln_s `relative /bin/%name %_bindir/%name` %buildroot%_bindir/%name
# Configuration files.
%__mkdir_p %buildroot%_sysconfdir
for f in %SOURCE2 %SOURCE3 %SOURCE4 %SOURCE5; do
%__install -p -m644 "$f" %buildroot%_sysconfdir/"${f##*-}"
done
# Fix paths.
find %buildroot%_datadir/%name -type f -print0 |
xargs -r0 %__grep -FZl /usr/local/bin/%name |
xargs -r0 %__subst -p s:/usr/local/bin/%name:/bin/%name:g
%post
%install_info %name.info
%preun
%uninstall_info %name.info
%files
/bin/%name
%_bindir/%name
%_libdir/%name/
%_datadir/%name/
%config(noreplace) %_sysconfdir/z*[a-z]
%_man1dir/zsh*.*
%_infodir/zsh.info*
%doc ChangeLog.bz2 LICENCE META-FAQ README StartupFiles/z*
%doc Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ Etc/STD-TODO Etc/TODO
%changelog
…
Full changelog you can see here