Name: mg Version: 20130922 Release: 1%{?dist} Summary: Tiny Emacs-like editor Group: Applications/Editors License: BSD and ISC and MirOS URL: http://homepage.boetes.org/software/mg/ Source0: http://homepage.boetes.org/software/mg/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ncurses-devel BuildRequires: bmake BuildRequires: clens %description mg is a tiny, mostly public-domain Emacs-like editor included in the base OpenBSD system. It is compatible with Emacs because there shouldn't be any reason to learn more editor types than Emacs or vi. %prep %setup -q %build bmake %{?_smp_mflags} CFLAGS="%{optflags} -DFKEYS -DREGEX -DXKEYS -I/usr/include/clens" %install rm -rf %{buildroot} # pmake/bmake is weird and painful to work with. It puts stuff in the wrong # location. This package is simple, instead of spending time fixing the # mistakes, just do it by hand mkdir -p %{buildroot}%{_bindir} cp -p %{name} %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_mandir}/man1/ cp -p mg.1 %{buildroot}%{_mandir}/man1/ %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README tutorial %{_bindir}/mg %{_mandir}/man1/mg.1.* %changelog * Wed Sep 25 2013 Mark McKinstry - 20130922-1 - upgrade to version 20130922 (BZ #1010897) * Thu Sep 08 2011 Mark McKinstry - 20110905-1 - upgrade to version 20110905 * Wed Mar 02 2011 Mark McKinstry - 20110120-1 - upgrade to version 20110120 * Wed Oct 6 2010 Mark McKinstry - 20090107-6 - update Source0 line to use macros * Tue Oct 5 2010 Mark McKinstry - 20090107-4 - add libdir to build - update license * Sat May 8 2010 Mark McKinstry - 20090107-3 - switch to one style of RPM macros - include LDFLAGS * Wed Apr 28 2010 Mark McKinstry - 20090107-2 - update license - apply patch from Terje Rosten to preserve timstamps on man page, handle changes in compression of man pages more robustly, include CFLAGS, and include debug info * Tue Apr 27 2010 Mark McKinstry - 20090107-1 - initial build