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 http://bugs.opensuse.org/
#


Name:           qemacs
BuildRequires:  libpng-devel
BuildRequires:  xorg-x11-devel
Version:        0.3.1
Release:        0
Url:            http://fabrice.bellard.free.fr/qemacs/
Source0:        http://fabrice.bellard.free.fr/qemacs/qemacs-0.3.1.tar.bz2
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 -- pgajdos@suse.com; build with libpng15; sent today to fabrice.bellard@free.fr
# 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

%description
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
progress).

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.



Authors:
--------
    Fabrice Bellard  <fabrice.bellard@free.fr>

%prep
%setup -q
%patch0 -p1
%patch1 -p1 -b .lib64
%patch2 -p1
%patch3
%patch4
%patch5
%patch6 -p1

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure \
	--prefix=/usr \
	%{_target_platform}
make STRIP=:

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

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

%files
%defattr(-,root,root)
%doc COPYING Changelog README TODO qe-doc.html config.eg
%doc tests/
/usr/bin/*
/usr/share/qe/
%doc %{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by