File qemacs.spec of Package qemacs

#
# spec file for package qemacs (Version 0.3.1)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           qemacs
BuildRequires:  libpng-devel xorg-x11-devel
License:        LGPL v2.1 or later
Group:          Productivity/Editors/Other
AutoReqProv:    on
Version:        0.3.1
Release:        380
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Quick Emacs is a very small but powerful editor

%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

%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
* Thu Jun 29 2006 nadvornik@suse.cz
- don't use deprecated libpng functions
* Mon May 29 2006 schwab@suse.de
- Don't strip binaries.
* Wed May 24 2006 schwab@suse.de
- Use RPM_OPT_FLAGS.
- Don't strip binaries.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 08 2005 dmueller@suse.de
- don't build as root
* Thu Sep 08 2005 mfabian@suse.de
- Bugzilla #114849: man pages should not have executable
  permissions.
* Tue Apr 12 2005 mfabian@suse.de
- fix to build with gcc 4.
* Fri May 02 2003 mfabian@suse.de
- new package: qemacs-0.3.1
- add DESTDIR support to Makefile
- add a qemacs man page as a .so link to the qe man page
- avoid crash when ~/.qe/config contains errors, print error to
  stdout instead of to the qemacs screen which doesn't yet exist.
  when reading ~/.qe/config.
- move welcome message after the do_refresh() to make it actually
  visible.
openSUSE Build Service is sponsored by