diff --git a/zsh.spec b/zsh.spec index 6ae91d6..ac25896 100644 --- a/zsh.spec +++ b/zsh.spec @@ -3,7 +3,7 @@ Summary: A powerful interactive shell Name: zsh Version: 4.2.6 -Release: 3%{?dist} +Release: 4%{?dist} License: BSD URL: http://zsh.sunsite.dk/ Group: System Environment/Shells @@ -19,13 +19,9 @@ Patch0: zsh-serial.patch Patch1: zsh-4.0.6-make-test-fail.patch #Patch3: zsh-4.0.7-bckgrnd-bld-102042.patch Prereq: fileutils grep /sbin/install-info -Buildroot: %{_tmppath}/%{name}-%{version}-root -Requires: libcap +Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: ncurses-devel libcap-devel texinfo tetex texi2html -%{?_without_check: %define _without_check 1} -%{!?_without_check: %define _without_check 0} - %description The zsh shell is a command interpreter usable as an interactive login shell and as a shell script command processor. Zsh resembles the ksh @@ -66,8 +62,9 @@ export LDFLAGS="" %configure --enable-etcdir=%{_sysconfdir} --with-tcsetpgrp --enable-maildir-support make all html + +%check # Run the testsuite -%if ! %{_without_check} # the completion tests hang on s390 and s390x %ifarch s390 s390x ppc ppc64 ( cd Test @@ -75,25 +72,27 @@ make all html mv Y*.ztst skipped ) %endif ZTST_verbose=0 make test -%endif %install rm -rf $RPM_BUILD_ROOT %makeinstall install.info \ - fndir=$RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions \ - sitefndir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions + fndir=$RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions \ + sitefndir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions rm -f ${RPM_BUILD_ROOT}%{_bindir}/zsh-%{version} rm -f $RPM_BUILD_ROOT%{_infodir}/dir mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir} for i in zshrc zlogin zlogout zshenv zprofile; do - install -m 644 $RPM_SOURCE_DIR/${i}.rhs ${RPM_BUILD_ROOT}%{_sysconfdir}/$i + install -m 644 $RPM_SOURCE_DIR/${i}.rhs ${RPM_BUILD_ROOT}%{_sysconfdir}/$i done mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/skel install -m 644 %{SOURCE6} ${RPM_BUILD_ROOT}%{_sysconfdir}/skel/.zshrc +sed -ie 's!/usr/local/bin/zsh!%{_bindir}/zsh!' \ + ${RPM_BUILD_ROOT}%{_datadir}/zsh/*/functions/* + %clean rm -rf $RPM_BUILD_ROOT @@ -105,24 +104,24 @@ else fi /sbin/install-info %{_infodir}/zsh.info.gz %{_infodir}/dir \ - --entry="* zsh: (zsh). An enhanced bourne shell." + --entry="* zsh: (zsh). An enhanced bourne shell." : %preun if [ "$1" = 0 ] ; then /sbin/install-info --delete %{_infodir}/zsh.info.gz %{_infodir}/dir \ - --entry="* zsh: (zsh). An enhanced bourne shell." + --entry="* zsh: (zsh). An enhanced bourne shell." fi : %postun if [ "$1" = 0 ] ; then if [ -f %{_sysconfdir}/shells ] ; then - TmpFile=`%{_bindir}/mktemp /tmp/.zshrpmXXXXXX` - grep -v '^%{_bindir}/zsh$' %{_sysconfdir}/shells > $TmpFile - cp -f $TmpFile %{_sysconfdir}/shells - rm -f $TmpFile - chmod 644 %{_sysconfdir}/shells + TmpFile=`%{_bindir}/mktemp /tmp/.zshrpmXXXXXX` + grep -v '^%{_bindir}/zsh$' %{_sysconfdir}/shells > $TmpFile + chown --reference %{_sysconfdir}/shells $TmpFile + chmod --reference %{_sysconfdir}/shells $TmpFile + mv -f $TmpFile %{_sysconfdir}/shells fi fi @@ -135,13 +134,22 @@ fi %{_infodir}/* %{_datadir}/zsh %{_libdir}/zsh -%config(noreplace) %{_sysconfdir}/* +%config(noreplace) %{_sysconfdir}/skel/.* +%config(noreplace) %{_sysconfdir}/z* %files html %defattr(-,root,root) %doc Doc/zsh/*.html %changelog +* Tue Feb 27 2007 James Antill - 4.2.6-4 +- Fix buildroot to new Fedora default. +- Remove /etc/skel from ownership. +- Remove explicit libcap dep. +- Tweak postun script. +- Move checking to generic rpm infrastructure. +Resolves: rhbz#226813 + * Tue Jan 16 2007 Miroslav Lichvar - 4.2.6-3 - Link with ncurses - Add dist tag @@ -160,7 +168,7 @@ fi * Fri Feb 10 2006 Jesse Keating - 4.2.5-1.2.2 - bump again for double-long bug on ppc(64) -* Tue Feb 07 2006 Jesse Keating - %{version}-%{release} +* Tue Feb 07 2006 Jesse Keating - 4.2.5 - rebuilt for new gcc4.1 snapshot and glibc changes * Wed Jan 4 2006 Jesse Keating 0 4.2.5-1.2 @@ -253,7 +261,7 @@ fi * Fri Nov 29 2002 Florian La Roche 4.0.6-2 - make sure /bin/zsh is owned by root and not bhcompile -- do not package zsh-%{version} into binary rpm +- do not package zsh-%%{version} into binary rpm * Thu Nov 28 2002 Jens Petersen 4.0.6-1 - define _bindir to be /bin and use it