File qemacs.spec of Package qemacs

# spec file for package qemacs
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           qemacs
BuildRequires:  libpng-devel
BuildRequires:  xorg-x11-devel
Version:        0.3.1
Release:        0
Patch0:         qemacs.patch
Patch1:         qemacs-lib64.patch
Patch2:         gcc4.patch
Patch3:         includes.patch
Patch4:         initcall.patch
Patch5:         qemacs-libpng.patch
# PATCH-FIX-UPSTREAM pngtoico-libpng15.patch --; build with libpng15; sent today to
# build against libpng14 should not be affected, otherwise please let me know
Patch6:         qemacs-libpng15.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Quick Emacs is a very small but powerful editor
License:        LGPL-2.1+
Group:          Productivity/Editors/Other

Full screen editor with an Emacs look and feel with all Emacs common
features: multi-buffer, multi-window, command mode, universal argument,
keyboard macros, config file with C like syntax, minibuffer with
completion and history.

Full UTF8 support, including bidirectional editing respecting the
Unicode bidi algorithm. Arabic and Indic scripts handling (in

WYSIWYG HTML/XML/CSS2 mode graphical editing. Also supports lynx like
rendering on VT100 terminals.

WYSIWYG DocBook mode based on XML/CSS2 renderer.

C mode: coloring with immediate update. Emacs like auto-indent.

Shell mode: colorized VT100 emulation so that your shell work exactly
as you expect. Compile mode with next/prev error.

Input methods for most languages, including Chinese (input methods come
from the Yudit editor).

Hexadecimal editing mode with insertion and block commands. Unicode
hexa editing of UTF8 files also supported.

X11 support. Support multiple proportional fonts at the same time (as
XEmacs). X Input methods supported. Xft extension supported for anti
aliased font display.

    Fabrice Bellard  <>

%setup -q
%patch0 -p1
%patch1 -p1 -b .lib64
%patch2 -p1
%patch6 -p1

./configure \
	--prefix=/usr \
make STRIP=:

make -e DESTDIR=$RPM_BUILD_ROOT install
chmod 644 $RPM_BUILD_ROOT/%{_mandir}/man1/*

#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%doc COPYING Changelog README TODO qe-doc.html
%doc tests/
%doc %{_mandir}/man1/*