]> git.pld-linux.org Git - packages/tcsh.git/blame - tcsh.spec
Release 2 (by relup.sh)
[packages/tcsh.git] / tcsh.spec
CommitLineData
df4910bf 1#
0f8067ae 2# Conditional build:
9bef067a 3%bcond_with working_history # compiles tcsh with timestamps in
72d1d050
PG
4 # ~/.history file so it serves any real purpose (which
5 # is not the case for default PLD tcsh)
18e22217 6%bcond_with static # don't build static version
0f8067ae 7#
366b6df6 8Summary: Enhanced c-shell
44776055
ER
9Summary(de.UTF-8): Erweiterte C-Shell
10Summary(es.UTF-8): C-shell mejorada
11Summary(fr.UTF-8): Shell C amélioré
12Summary(ko.UTF-8): csh의 향상된 버전
13Summary(pl.UTF-8): Zaawansowany C-shell
14Summary(pt_BR.UTF-8): C-shell melhorada
15Summary(ru.UTF-8): Улучшеная версия csh
16Summary(tr.UTF-8): Gelişmiş c-kabuğu (c-shell)
17Summary(uk.UTF-8): Покращена верся csh
366b6df6 18Name: tcsh
58d3c433 19Version: 6.20.00
febf864b 20Release: 2
0bea26fe 21License: distributable
6a3eb4fb 22Group: Applications/Shells
c486a896 23Source0: ftp://ftp.astron.com/pub/tcsh/%{name}-%{version}.tar.gz
58d3c433 24# Source0-md5: 59d40ef40a68e790d95e182069431834
366b6df6 25Source1: csh.cshrc
71c6987d 26Source2: csh.login
27Source3: %{name}-skel-.login
cd37c0fb
JR
28Patch0: %{name}-misc.patch
29Patch1: %{name}-termios.patch
30Patch2: %{name}-no-timestamp-history.patch
31Patch3: %{name}-time.patch
32Patch4: %{name}-rlimit_locks.patch
33Patch5: %{name}-no_TERMCAP.patch
df91bec4 34Patch6: %{name}-format-security.patch
9ac38fcf 35URL: http://www.tcsh.org/Home
9bb0f4d1 36BuildRequires: autoconf >= 2.59
ad17217d 37BuildRequires: automake
37250147 38BuildRequires: groff
654ca8ad
JB
39# for gencat
40BuildRequires: iconv
0f8067ae 41BuildRequires: ncurses-devel >= 5.0
411bfd85 42%if %{with static}
5865fac9 43BuildRequires: glibc-static
0f8067ae 44BuildRequires: ncurses-static
411bfd85 45%endif
0f8067ae
JB
46Requires(post,preun): grep
47Requires(preun): fileutils
48Provides: csh
17f34f29 49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
945c0ef7 50
7957f4c8 51%define _bindir /bin
52
945c0ef7 53%description
51a10b24 54'tcsh' is an enhanced version of csh (the C shell), with additional
55features such as command history, filename completion, and fancier
56prompts.
945c0ef7 57
db8b7afb 58%description -l de.UTF-8
51a10b24 59'tcsh' ist eine erweiterte Version von csh (der C-Shell) mit
db8b7afb
JR
60zusätzlichen Funktionen wie Befehlsgeschichte,
61Dateinamenvervollständigung und attraktiveren Prompts.
945c0ef7 62
db8b7afb
JR
63%description -l es.UTF-8
64"tcsh" es una versión mejorada de la csh (C shell), con
65características adicionales como historia de los comandos, complemento
95b50800 66de nombre de archivo y prompts.
67
db8b7afb
JR
68%description -l fr.UTF-8
69'tcsh' est une version améliorée de csh (le shell C), avec des
70fonctionnalités supplémentaires comme un historique des commandes, la
71complétion des noms de fichiers, et des prompts sympas.
945c0ef7 72
db8b7afb
JR
73%description -l pl.UTF-8
74Tcsh jest zaawansowaną wersją powłoki csh (C-shell), z różnorodnymi
1133eb89 75udogodnieniami takimi jak historia komend itp.
76
db8b7afb
JR
77%description -l pt_BR.UTF-8
78"tcsh" é uma versão melhorada da csh (C shell), com características
95b50800 79adicionais como history dos comandos, complemento de nome de arquivo e
80prompts.
81
db8b7afb
JR
82%description -l ru.UTF-8
83Это улучшенная версия csh (the C shell) с дополнительными
84возможностями, такими как история комманд, дополнение имен файлов и
85т.д.
95b50800 86
db8b7afb
JR
87%description -l tr.UTF-8
88tcsh, csh'in (C kabuğu) gelişkin bir sürümüdür ve komut tarihçesi,
89dosya adı tamamlama ve şık komut imleri gibi özellikler sunar.
95b50800 90
db8b7afb
JR
91%description -l uk.UTF-8
92Це покращена версія csh (the C shell) з додатковими можливостями,
93такими як історія команд, завершення імен файлів і т.і.
945c0ef7 94
63346b4a 95%package static
5257cfc7 96Summary: Statically linked Enhanced c-shell
44776055 97Summary(pl.UTF-8): Skonsolidowana statycznie zaawansowana powłoka C
6a3eb4fb 98Group: Applications/Shells
0f8067ae
JB
99Requires(post,preun): grep
100Requires(preun): fileutils
5865fac9 101Requires: %{name} = %{version}-%{release}
63346b4a
JR
102
103%description static
51a10b24 104'tcsh' is an enhanced version of csh (the C shell), with additional
105features such as command history, filename completion, and fancier
106prompts.
63346b4a 107
b583e8db 108This packege contains statically linked version of tcsh.
63346b4a 109
db8b7afb
JR
110%description static -l pl.UTF-8
111Tcsh jest zaawansowaną wersją powłoki csh (C-shell), z różnorodnymi
63346b4a
JR
112udogodnieniami takimi jak historia komend itp.
113
33f2344a 114W tym pakiecie jest statycznie skonsolidowany tcsh.
63346b4a 115
945c0ef7 116%prep
f01f4c8f 117%setup -q
cd37c0fb
JR
118%patch0 -p1
119%patch1 -p1
120%{!?with_working_history:%patch2 -p1}
121%patch3 -p1
122%patch4 -p1
123%patch5 -p1
df91bec4 124%patch6 -p1
945c0ef7 125
126%build
e3afa17b 127cp /usr/share/automake/config.sub .
ad17217d 128%{__aclocal}
a7e280ec 129%{__autoconf}
674d7ca0 130%configure
411bfd85 131%if %{with static}
5865fac9
JB
132%{__make} \
133 LDFLAGS="-static %{rpmldflags}" \
e436a48a 134 LIBES="-lncurses -lcrypt"
73ed54b0 135mv -f tcsh tcsh.static
411bfd85 136%endif
5865fac9
JB
137%{__make} \
138 LDFLAGS="%{rpmldflags}" \
e436a48a 139 LIBES="-lncurses -lcrypt"
8843be5d 140
6f178a16 141%{__make} -C nls
945c0ef7 142
143%install
144rm -rf $RPM_BUILD_ROOT
18e22217
JR
145install -d $RPM_BUILD_ROOT/etc/skel
146
147%{__make} install \
148 DESTDIR=$RPM_BUILD_ROOT
945c0ef7 149
12f8b424 150# fix lang code
952034f5 151%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{gr,el}
12f8b424 152# it's Ukrainian in UTF-8, not Russian in KOI8-U
58d3c433 153%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{ru_UA,uk}
952034f5 154
411bfd85
MP
155%if %{with static}
156install tcsh.static $RPM_BUILD_ROOT%{_bindir}
157%endif
1deb40f6
JR
158
159nroff -me eight-bit.me > eight-bit.txt
945c0ef7 160
784da6ca 161echo .so tcsh.1 > $RPM_BUILD_ROOT%{_mandir}/man1/csh.1
945c0ef7 162
a3a19f15 163ln -sf tcsh $RPM_BUILD_ROOT%{_bindir}/csh
945c0ef7 164
71c6987d 165install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
166install %{SOURCE3} $RPM_BUILD_ROOT/etc/skel/.login
945c0ef7 167
09fea393
JB
168%clean
169rm -rf $RPM_BUILD_ROOT
170
945c0ef7 171%post
0f8067ae 172umask 022
945c0ef7 173if [ ! -f /etc/shells ]; then
a3a19f15 174 echo "%{_bindir}/tcsh" > /etc/shells
175 echo "%{_bindir}/csh" >> /etc/shells
945c0ef7 176else
62f9ba61
JB
177 grep -q '^%{_bindir}/tcsh$' /etc/shells || echo "%{_bindir}/tcsh" >> /etc/shells
178 grep -q '^%{_bindir}/csh$' /etc/shells || echo "%{_bindir}/csh" >> /etc/shells
945c0ef7 179fi
180
f01f4c8f
JB
181%preun
182umask 022
183if [ "$1" = "0" ]; then
184 grep -v '^%{_bindir}/t\?csh$' /etc/shells > /etc/shells.new
185 mv -f /etc/shells.new /etc/shells
186fi
187
63346b4a 188%post static
0f8067ae 189umask 022
63346b4a 190if [ ! -f /etc/shells ]; then
a3a19f15 191 echo "%{_bindir}/tcsh.static" > /etc/shells
63346b4a 192else
62f9ba61 193 grep -q '^%{_bindir}/tcsh\.static$' /etc/shells || echo "%{_bindir}/tcsh.static" >> /etc/shells
63346b4a 194fi
945c0ef7 195
62f9ba61 196%preun static
0f8067ae 197umask 022
62f9ba61
JB
198if [ "$1" = "0" ]; then
199 grep -v '^%{_bindir}/tcsh\.static$' /etc/shells > /etc/shells.new
200 mv -f /etc/shells.new /etc/shells
63346b4a
JR
201fi
202
945c0ef7 203%files
70bd5214 204%defattr(644,root,root,755)
24a6af52 205%doc NewThings FAQ eight-bit.txt complete.tcsh
366b6df6 206
15fd3d93
ER
207%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/csh.*
208%config(noreplace,missingok) %verify(not md5 mtime size) /etc/skel/.login
1133eb89 209
a3a19f15 210%attr(755,root,root) %{_bindir}/csh
211%attr(755,root,root) %{_bindir}/tcsh
952034f5 212#%{_datadir}/locale/C/LC_MESSAGES/tcsh.cat
18e22217 213%lang(de) %{_datadir}/locale/de/LC_MESSAGES/tcsh.cat
952034f5 214%lang(el) %{_datadir}/locale/el/LC_MESSAGES/tcsh.cat
18e22217
JR
215%lang(es) %{_datadir}/locale/es/LC_MESSAGES/tcsh.cat
216%lang(et) %{_datadir}/locale/et/LC_MESSAGES/tcsh.cat
217%lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/tcsh.cat
218%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/tcsh.cat
18e22217
JR
219%lang(it) %{_datadir}/locale/it/LC_MESSAGES/tcsh.cat
220%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/tcsh.cat
221%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/tcsh.cat
222%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/tcsh.cat
12f8b424
JB
223%lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/tcsh.cat
224%{_mandir}/man1/csh.1*
225%{_mandir}/man1/tcsh.1*
945c0ef7 226
411bfd85 227%if %{with static}
63346b4a
JR
228%files static
229%defattr(644,root,root,755)
a3a19f15 230%attr(755,root,root) %{_bindir}/tcsh.static
411bfd85 231%endif
This page took 0.144048 seconds and 4 git commands to generate.