2007-01-16 00:46:06 +01:00
|
|
|
#
|
2011-03-07 15:14:09 +01:00
|
|
|
# spec file for package zsh
|
2007-01-16 00:46:06 +01:00
|
|
|
#
|
2011-03-07 15:14:09 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:46:06 +01:00
|
|
|
#
|
2008-09-24 00:56:32 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:46:06 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-21 05:17:09 +01:00
|
|
|
|
2007-01-16 00:46:06 +01:00
|
|
|
Name: zsh
|
2011-02-11 11:49:56 +01:00
|
|
|
Version: 4.3.11
|
2011-03-16 11:21:38 +01:00
|
|
|
Release: 2
|
2009-08-19 00:11:24 +02:00
|
|
|
License: Other uncritical OpenSource License
|
2007-01-16 00:46:06 +01:00
|
|
|
Group: System/Shells
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-03-30 16:36:08 +02:00
|
|
|
BuildRequires: ncurses-devel
|
2007-01-16 00:46:06 +01:00
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: yodl
|
2009-08-19 00:11:24 +02:00
|
|
|
BuildRequires: fdupes
|
2007-01-16 00:46:06 +01:00
|
|
|
PreReq: %{install_info_prereq}
|
2007-12-04 00:03:34 +01:00
|
|
|
Url: http://www.zsh.org
|
2007-01-16 00:46:06 +01:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: zshrc
|
|
|
|
Source2: zshenv
|
|
|
|
Source3: _yast2
|
|
|
|
Source4: _SuSEconfig
|
|
|
|
Source5: _hwinfo
|
|
|
|
Source6: _make
|
2007-12-04 00:03:34 +01:00
|
|
|
Source7: zprofile
|
2009-05-25 17:28:59 +02:00
|
|
|
Source8: _osc
|
|
|
|
Source9: _zypper
|
2007-01-16 00:46:06 +01:00
|
|
|
# unused atm. we build the docs with yodl on our own.
|
|
|
|
Source20: %{name}-%{version}-doc.tar.bz2
|
2009-08-19 00:11:24 +02:00
|
|
|
Patch0: %{name}-%{version}-doc_makefile.patch
|
|
|
|
Patch1: %{name}-%{version}-doc_intro_paths.patch
|
|
|
|
Patch2: %{name}-%{version}-run-help_pager.patch
|
|
|
|
Patch3: zsh-cleanup.patch
|
2011-03-15 15:12:09 +01:00
|
|
|
Patch4: subst-crash.patch
|
2007-01-16 00:46:06 +01:00
|
|
|
Summary: Shell with comprehensive completion
|
2009-10-13 17:27:29 +02:00
|
|
|
%define do_profiling 0
|
2007-01-16 00:46:06 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Zsh is a UNIX command interpreter (shell) that resembles the Korn shell
|
|
|
|
(ksh). It is not completely compatible. It includes many enhancements,
|
|
|
|
notably in the command-line editor, options for customizing its
|
|
|
|
behavior, file name globbing, features to make C-shell (csh) users feel
|
|
|
|
at home, and extra features drawn from tcsh (another `custom' shell).
|
|
|
|
Zsh is well known for its command line completion.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Paul Falstad
|
|
|
|
|
|
|
|
%prep
|
2007-07-04 23:21:41 +02:00
|
|
|
%setup -q
|
2007-01-16 00:46:06 +01:00
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch2
|
2009-08-19 00:11:24 +02:00
|
|
|
%patch3
|
2011-03-15 15:12:09 +01:00
|
|
|
%patch4 -p1
|
2009-08-19 00:11:24 +02:00
|
|
|
# Fix bindir path in some files
|
|
|
|
perl -p -i -e 's|/usr/local/bin|%{_bindir}|' \
|
|
|
|
Functions/Misc/zcalc Functions/Example/cat \
|
|
|
|
Functions/Misc/checkmail Functions/Misc/run-help Misc/globtests \
|
|
|
|
Misc/globtests.ksh Test/ztst.zsh Util/reporter Misc/lete2ctl \
|
|
|
|
Util/check_exports Util/helpfiles
|
|
|
|
# Get rid of /usr/princeton examples
|
|
|
|
perl -p -i -e 's|/usr/princeton|%{_bindir}|' \
|
|
|
|
Doc/intro.ms
|
2007-01-16 00:46:06 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CC="gcc" CFLAGS="%{optflags} -pipe -fno-strict-aliasing"
|
|
|
|
# readd the site-* dir.
|
|
|
|
%configure \
|
|
|
|
--enable-site-scriptdir=%{_datadir}/%{name}/site/scripts/ \
|
|
|
|
--enable-site-fndir=%{_datadir}/%{name}/site/scripts/ \
|
|
|
|
--enable-maildir-support \
|
|
|
|
--with-tcsetpgrp \
|
|
|
|
--enable-zsh-debug \
|
|
|
|
--enable-cap \
|
|
|
|
--enable-multibyte
|
|
|
|
# compiling with profiling data is default.
|
|
|
|
%if %do_profiling
|
|
|
|
# compile with profiling data writing enabled
|
|
|
|
make VERSION="%{version}" CFLAGS="$CFLAGS "%cflags_profile_generate \
|
|
|
|
DLCFLAGS="-fPIC -fno-profile-arcs" LDFLAGS="-fprofile-arcs"
|
|
|
|
# this is needed to create the profiling data files *.gcda
|
2009-08-19 00:11:24 +02:00
|
|
|
make check
|
2007-01-16 00:46:06 +01:00
|
|
|
make clean
|
|
|
|
# compile with profiling data reading enabled and writing disabled
|
|
|
|
make VERSION="%{version}" CFLAGS="$CFLAGS "%cflags_profile_feedback \
|
|
|
|
DLCFLAGS="-fPIC -fno-branch-probabilities" LDFLAGS="-fprofile-arcs"
|
2009-08-19 00:11:24 +02:00
|
|
|
make check
|
2007-01-16 00:46:06 +01:00
|
|
|
make clean
|
|
|
|
%else
|
|
|
|
make VERSION="%{version}"
|
|
|
|
%endif
|
|
|
|
# make html documentation
|
|
|
|
make -C Doc all zsh.info zsh_toc.html VERSION="%{version}"
|
|
|
|
# make help text files
|
|
|
|
mkdir -p Help
|
|
|
|
pushd Help/
|
|
|
|
troff -Tlatin1 -t -mandoc ../Doc/zshbuiltins.1 | \
|
|
|
|
grotty -cbou | \
|
2009-08-19 00:11:24 +02:00
|
|
|
sed -e 's/±/{+|-}/' | \
|
2007-01-16 00:46:06 +01:00
|
|
|
../Util/helpfiles
|
|
|
|
popd
|
|
|
|
# generate intro.txt
|
|
|
|
groff Doc/intro.ms > intro.txt
|
|
|
|
# better name for html documentation
|
|
|
|
%{__mkdir} Doc/htmldoc/
|
|
|
|
%{__mv} Doc/*.html Doc/htmldoc
|
|
|
|
# remove some unwanted files in Etc/
|
|
|
|
%{__rm} -f Etc/Makefile* Etc/*.yo
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall install.info VERSION="%{version}"
|
|
|
|
# install SUSE configuration
|
|
|
|
%{__install} -m 0755 -Dd %{buildroot}/{etc,bin}
|
2007-12-04 00:03:34 +01:00
|
|
|
%{__install} -m 0644 %{S:1} %{S:2} %{S:7} %{buildroot}/etc
|
2009-05-25 17:28:59 +02:00
|
|
|
%{__install} -m 0644 %{S:3} %{S:4} %{S:5} %{S:6} %{S:8} %{S:9} %{buildroot}%{_datadir}/%{name}/%version/functions
|
2007-01-16 00:46:06 +01:00
|
|
|
# install help files
|
2009-08-19 00:11:24 +02:00
|
|
|
%{__install} -m 0755 -Dd %{buildroot}%{_datadir}/%{name}/%{version}/help
|
|
|
|
%{__install} -m 0644 Help/* %{buildroot}%{_datadir}/%{name}/%{version}/help/
|
2007-01-16 00:46:06 +01:00
|
|
|
# link zsh binary
|
|
|
|
%{__mv} %{buildroot}%{_bindir}/zsh %{buildroot}/bin/zsh
|
|
|
|
%{__ln_s} -f ../../bin/zsh %{buildroot}/usr/bin/zsh
|
2009-08-19 00:11:24 +02:00
|
|
|
%fdupes $RPM_BUILD_ROOT
|
2007-01-16 00:46:06 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Etc/* intro.txt Misc/compctl-examples Doc/htmldoc
|
|
|
|
%config(noreplace) /etc/zshrc
|
|
|
|
%config(noreplace) /etc/zshenv
|
2007-12-04 00:03:34 +01:00
|
|
|
%config(noreplace) /etc/zprofile
|
2007-01-16 00:46:06 +01:00
|
|
|
%{_bindir}/zsh
|
|
|
|
/bin/zsh
|
|
|
|
%{_libdir}/zsh/
|
|
|
|
%{_datadir}/zsh/
|
|
|
|
%{_infodir}/zsh.info*.gz
|
|
|
|
%{_mandir}/man1/zsh*.1.gz
|
|
|
|
|
2007-03-30 16:36:08 +02:00
|
|
|
%changelog
|