2007-06-18 06:07:05 +00:00
|
|
|
%define _bindir /bin
|
|
|
|
|
|
|
|
Summary: MirBSD enhanced version of the Korn Shell
|
|
|
|
Name: mksh
|
2008-07-18 23:23:58 +00:00
|
|
|
Version: 35b
|
2008-03-03 12:28:36 +00:00
|
|
|
Release: 1%{?dist}
|
2007-08-28 18:30:27 +00:00
|
|
|
License: BSD with advertising
|
2007-06-18 06:07:05 +00:00
|
|
|
Group: System Environment/Shells
|
|
|
|
URL: http://www.mirbsd.de/%{name}/
|
2007-09-12 18:37:27 +00:00
|
|
|
Source0: http://www.mirbsd.org/MirOS/dist/mir/%{name}/%{name}-R%{version}.cpio.gz
|
|
|
|
Source1: http://www.mirbsd.org/MirOS/dist/hosted/other/arc4random.c
|
2007-06-18 06:07:05 +00:00
|
|
|
Requires(post): grep
|
|
|
|
Requires(postun): coreutils, grep
|
2007-09-12 18:37:27 +00:00
|
|
|
BuildRequires: util-linux, ed
|
2007-06-18 06:07:05 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
%description
|
|
|
|
mksh is the MirBSD enhanced version of the Public Domain Korn shell (pdksh),
|
|
|
|
a bourne-compatible shell which is largely similar to the original AT&T Korn
|
|
|
|
shell. It includes bug fixes and feature improvements in order to produce a
|
|
|
|
modern, robust shell good for interactive and especially script use, being a
|
|
|
|
bourne shell replacement, pdksh successor and an alternative to the C shell.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -T -c
|
|
|
|
|
2008-07-13 10:12:34 +00:00
|
|
|
# rpm.org has no support for *.cpio.gz
|
2007-06-18 06:07:05 +00:00
|
|
|
gzip -dc %{SOURCE0} | cpio -imd
|
|
|
|
mv %{name}/* . && rm -rf %{name}
|
2007-09-12 18:37:27 +00:00
|
|
|
cp -f %{SOURCE1} .
|
2007-06-18 06:07:05 +00:00
|
|
|
|
|
|
|
%build
|
2008-04-03 22:08:04 +00:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" sh Build.sh -r -Q -j
|
2007-06-18 06:07:05 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
install -D -m 755 %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
|
|
|
|
install -D -m 644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
|
|
|
|
|
|
|
|
%check
|
2007-11-09 23:49:42 +00:00
|
|
|
echo > test.wait
|
|
|
|
script -qc './test.sh -v; x=$?; rm -f test.wait; exit $x'
|
|
|
|
maxwait=0
|
|
|
|
while test -e test.wait; do
|
|
|
|
sleep 1
|
|
|
|
maxwait=$(expr $maxwait + 1)
|
|
|
|
test $maxwait -lt 900 || break
|
|
|
|
done
|
2007-06-18 06:07:05 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
if [ ! -f %{_sysconfdir}/shells ]; then
|
|
|
|
echo "%{_bindir}/%{name}" >> %{_sysconfdir}/shells
|
|
|
|
else
|
|
|
|
grep -q "^%{_bindir}/%{name}$" %{_sysconfdir}/shells || \
|
|
|
|
echo "%{_bindir}/%{name}" >> %{_sysconfdir}/shells
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ ! -x %{_bindir}/%{name} ]; then
|
|
|
|
grep -v "^%{_bindir}/%{name}$" %{_sysconfdir}/shells > %{_sysconfdir}/shells.rpm
|
|
|
|
cat %{_sysconfdir}/shells.rpm > %{_sysconfdir}/shells && rm -f %{_sysconfdir}/shells.rpm
|
|
|
|
fi
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc copyright dot.mkshrc
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
|
|
|
|
%changelog
|
2008-07-18 23:23:58 +00:00
|
|
|
* Sat Jul 19 2008 Robert Scheck <robert@fedoraproject.org> 35b-1
|
|
|
|
- Upgrade to 35b
|
|
|
|
|
2008-07-13 10:12:34 +00:00
|
|
|
* Sun Jul 13 2008 Robert Scheck <robert@fedoraproject.org> 35-1
|
|
|
|
- Upgrade to 35
|
|
|
|
|
2008-04-12 21:57:47 +00:00
|
|
|
* Sat Apr 12 2008 Robert Scheck <robert@fedoraproject.org> 33d-1
|
|
|
|
- Upgrade to 33d
|
|
|
|
|
2008-04-03 22:08:04 +00:00
|
|
|
* Fri Apr 04 2008 Robert Scheck <robert@fedoraproject.org> 33c-1
|
|
|
|
- Upgrade to 33c and updated arc4random.c file
|
|
|
|
|
2008-03-03 12:28:36 +00:00
|
|
|
* Mon Mar 03 2008 Robert Scheck <robert@fedoraproject.org> 33-1
|
|
|
|
- Upgrade to 33
|
|
|
|
|
2008-02-10 00:17:59 +00:00
|
|
|
* Sun Feb 10 2008 Robert Scheck <robert@fedoraproject.org> 32-2
|
|
|
|
- Rebuild against gcc 4.3
|
|
|
|
|
2007-11-09 23:49:42 +00:00
|
|
|
* Sat Nov 10 2007 Robert Scheck <robert@fedoraproject.org> 32-1
|
|
|
|
- Upgrade to 32
|
|
|
|
- Solved fork problems in %%check (thanks to Thorsten Glaser)
|
|
|
|
|
2007-10-15 17:59:07 +00:00
|
|
|
* Mon Oct 15 2007 Robert Scheck <robert@fedoraproject.org> 31d-1
|
|
|
|
- Upgrade to 31d
|
|
|
|
|
2007-09-12 18:37:27 +00:00
|
|
|
* Wed Sep 12 2007 Robert Scheck <robert@fedoraproject.org> 31c-1
|
|
|
|
- Upgrade to 31c
|
|
|
|
- Added a buildrequirement to ed, added arc4random.c file
|
|
|
|
|
2007-09-11 18:11:32 +00:00
|
|
|
* Tue Sep 11 2007 Robert Scheck <robert@fedoraproject.org> 31b-1
|
|
|
|
- Upgrade to 31b
|
|
|
|
- Use script to get %%check happy (thanks to Thorsten Glaser)
|
|
|
|
|
2007-09-08 00:27:41 +00:00
|
|
|
* Sat Sep 08 2007 Robert Scheck <robert@fedoraproject.org> 31-1
|
|
|
|
- Upgrade to 31
|
|
|
|
|
2007-08-28 18:30:27 +00:00
|
|
|
* Tue Aug 28 2007 Robert Scheck <robert@fedoraproject.org> 30-2
|
|
|
|
- Updated the license tag according to the guidelines
|
|
|
|
|
2007-07-28 11:30:15 +00:00
|
|
|
* Sat Jul 28 2007 Robert Scheck <robert@fedoraproject.org> 30-1
|
|
|
|
- Upgrade to 30
|
|
|
|
|
2007-07-14 13:48:04 +00:00
|
|
|
* Sat Jul 14 2007 Robert Scheck <robert@fedoraproject.org> 29g-1
|
|
|
|
- Upgrade to 29g
|
|
|
|
|
2007-06-18 06:07:05 +00:00
|
|
|
* Sun Jun 03 2007 Robert Scheck <robert@fedoraproject.org> 29f-1
|
|
|
|
- Upgrade to 29f
|
|
|
|
- Initial spec file for Fedora and Red Hat Enterprise Linux
|