/[packages]/cauldron/pdksh/current/SPECS/pdksh.spec
ViewVC logotype

Contents of /cauldron/pdksh/current/SPECS/pdksh.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 273158 - (show annotations) (download)
Sat Jul 21 17:42:31 2012 UTC (11 years, 8 months ago) by colin
File size: 1395 byte(s)
Update for usrmove
1 Summary: A public domain clone of the Korn shell (ksh)
2 Name: pdksh
3 Version: 5.2.14
4 Release: %mkrel 30
5 License: Public Domain and BSD-like and GPLv2+
6 Group: Shells
7 URL: http://www.cs.mun.ca/~michael/pdksh
8 Source: ftp://ftp.cs.mun.ca/pub/pdksh/%{name}-%{version}.tar.bz2
9 Patch0: pdksh-5.2.14-manloc.patch
10 # debian patch
11 Patch1: pdksh-5.2.14-debian.patch
12 Patch2: pdksh-child_max.patch
13 Patch3: pdksh-5.2.14-fix-str-fmt.patch
14 Provides: /usr/bin/ksh
15 Requires(pre): filesystem >= 2.1.9-18
16
17 %description
18 The pdksh package contains PD-ksh, a clone of the Korn shell (ksh).
19 The ksh shell is a command interpreter intended for both interactive
20 and shell script use. Ksh's command language is a superset of the
21 sh shell language.
22
23 Install the pdksh package if you want to use a version of the ksh
24 shell.
25
26 %prep
27 %setup -q
28 %patch0 -p1 -b .manloc
29 %patch1 -p1 -b .debian
30 %patch2 -p1 -b .jobs
31 %patch3 -p0 -b .str
32
33 %build
34 CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -DDEBIAN " %configure2_5x
35 %make
36
37 %install
38 rm -rf %{buildroot}
39 %makeinstall
40 # Create symlinks for pdksh
41 ln -s ksh %{buildroot}%{_bindir}/pdksh
42 ln -s ksh.1 %{buildroot}%{_mandir}/man1/pdksh.1
43
44 %post
45 /usr/share/rpm-helper/add-shell %{name} $1 /bin/ksh
46
47 %postun
48 /usr/share/rpm-helper/del-shell %{name} $1 /bin/ksh
49
50 %files
51 %defattr(-,root,root)
52 %doc LEGAL README NOTES PROJECTS NEWS BUG-REPORTS
53 %{_bindir}/ksh
54 %{_bindir}/pdksh
55 %{_mandir}/*/*
56
57

  ViewVC Help
Powered by ViewVC 1.1.30