rpms/mksh/F-7 mksh.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Robert Scheck (robert) fedora-extras-commits at redhat.com
Mon Jun 18 06:09:46 UTC 2007


Author: robert

Update of /cvs/pkgs/rpms/mksh/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21694

Modified Files:
	.cvsignore sources 
Added Files:
	mksh.spec 
Log Message:
Initial checkin



--- NEW FILE mksh.spec ---
%define _bindir   /bin

Summary:          MirBSD enhanced version of the Korn Shell
Name:             mksh
Version:          29f
Release:          1
License:          BSD
Group:            System Environment/Shells
URL:              http://www.mirbsd.de/%{name}/
Source:           http://www.mirbsd.org/MirOS/dist/mir/%{name}/%{name}-R%{version}.cpio.gz
Requires(post):   grep
Requires(postun): coreutils, grep
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

# RPM 4.4.2 has no support for *.cpio.gz
gzip -dc %{SOURCE0} | cpio -imd
mv %{name}/* . && rm -rf %{name}

%build
CFLAGS="$RPM_OPT_FLAGS" sh Build.sh -r -d

%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
sh test.sh -v

%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
* Sun Jun 03 2007 Robert Scheck <robert at fedoraproject.org> 29f-1
- Upgrade to 29f
- Initial spec file for Fedora and Red Hat Enterprise Linux


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mksh/F-7/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	18 Jun 2007 05:00:28 -0000	1.1
+++ .cvsignore	18 Jun 2007 06:09:10 -0000	1.2
@@ -0,0 +1 @@
+mksh-R29f.cpio.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mksh/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	18 Jun 2007 05:00:28 -0000	1.1
+++ sources	18 Jun 2007 06:09:10 -0000	1.2
@@ -0,0 +1 @@
+83b4ca84faa1a1ea4cf6db6eb41a0384  mksh-R29f.cpio.gz




More information about the fedora-extras-commits mailing list