Name: moe Version: 1.0 Release: 2%{?dist} Summary: A powerful clean text editor Group: Applications/Editors License: GPLv3+ URL: http://www.gnu.org/software/moe/moe.html Source0: http://ftp.gnu.org/gnu/moe/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ncurses-devel Requires(post): info Requires(preun): info %description GNU Moe is a powerful, 8-bit clean, text editor for ISO-8859 and ASCII character encodings. It has a modeless, user-friendly interface, online help, multiple windows, unlimited undo/redo capability, unlimited line length, global search/replace (on all buffers at once), block operations, automatic indentation, word wrapping, filename completion, directory browser, duplicate removal from prompt histories, delimiter matching, etc. %prep %setup -q %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT %{__install} -p -d $RPM_BUILD_ROOT%{_mandir}/man1 %{__install} -p -m 644 ./doc/moe.1 $RPM_BUILD_ROOT%{_mandir}/man1/ rm -f $RPM_BUILD_ROOT%{_infodir}/dir %post /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : %preun if [ $1 = 0 ] ; then /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS COPYING README NEWS ChangeLog %{_datadir}/info/%{name}.info* %config(noreplace) %{_sysconfdir}/%{name}rc %{_bindir}/%{name} %{_mandir}/man1/%{name}* %changelog * Wed Sep 10 2008 Vivek Shah 1.0-2 - Fixed build dependencies - Added removal of infodir/dir to avoid overwriting - Added target for manpage * Sat Aug 23 2008 Vivek Shah 1.0-1 - Initial Package