%define cvssnap 20040412 Summary: FTE Text Editor (programmer oriented) Name: fte Epoch: 1 Version: 0.50 Release: 0.%{cvssnap}.3mdk Source: http://fte.sourceforge.net/fte/%{name}-cvs-%{cvssnap}.tar.bz2 Patch0: %{name}-20040412-rpmopt.patch.bz2 Patch1: %{name}-20040412-slang.patch.bz2 License: GPL Group: Editors URL: http://fte.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: libgpm-devel BuildRequires: libncurses-devel BuildRequires: libslang-devel BuildRequires: libxfree86-devel %description FTE is a Text Mode text editor for xterm sessions. Color syntax highlighting for C/C++, REXX, HTML, IPF, PERL, Ada, Pascal, TEX. Multiple file/window editing, Column blocks, configurable menus and keyboard bindings, mouse support, undo/redo, regular expression search and replace, folding, background compiler execution. %prep %setup -q -n fte %patch0 -p0 %patch1 -p1 -b .slang %build make PREFIX=%{_prefix} %install rm -rf $RPM_BUILD_ROOT %makeinstall_std INSTALL_NONROOT=1 PREFIX=%{buildroot}%{_prefix} mkdir -p %{buildroot}/%{_menudir} cat << EOF > %{buildroot}/%{_menudir}/%{name} ?package(%name):command="%{_bindir}/%name"\ icon="editors_section.png" needs="X11" section="Applications/Editors"\ title="FTE" longtitle="FTE Text Editor" EOF %clean rm -rf $RPM_BUILD_ROOT %post %update_menus %postun %clean_menus %files %defattr(0755,root,root,0755) %{_bindir}/* %defattr(0644,root,root,0755) %doc README COPYING Artistic CHANGES HISTORY TODO BUGS doc/*.html %{_libdir}/fte %{_libdir}/menu/* %changelog * Sun Jul 25 2004 Marcel Pol <mpol@mandrake.org> 0.50-0.20040412.3mdk - patch1: build against new slang * Thu Jun 17 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.50-0.20040412.2mdk - REbuild * Mon Apr 12 2004 Michael Reinsch <mr@uue.org> 0.50-0.20040412.1mdk - cvs snapshot 20040412 - rediffed patch to use $(RPM_OPT_FLAGS) - spec cleanups * Tue Apr 29 2003 Lenny Cartier <lenny@mandrakesoft.com> 20020318-4mdk - buildrequires * Fri Jan 17 2003 Lenny Cartier <lenny@mandrakesoft.com> 20020318-3mdk - rebuild * Thu Sep 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 20020318-2mdk - rebuild * Thu Jun 06 2002 Lenny Cartier <lenny@mandrakesoft.com> 20020318-1mdk - 20020318 * Sat Jan 19 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0.49.13-7mdk - Fix menu entry - Add missing files * Tue Jul 10 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.49.13-6mdk - rebuild * Tue Jan 09 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.49.13-5mdk - rebuild * Tue Aug 31 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.49.13-4mdk - menu * Thu Aug 3 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.49.13-3mdk - macros - fix docs * Wed Apr 26 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.49.13-2mdk - fix group - bzip2 patch * Tue Feb 29 2000 Vincent Danen <vdanen@linux-mandrake.com> - initial specfile - bzip sources - patchfile for RPM optimization and proper location of binaries