LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File e3.spec of Package e3 (Project openSUSE:Factory)

#
# spec file for package e3
#
# 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:           e3
BuildRequires:  nasm
Url:            http://sites.google.com/site/e3editor/
Version:        2.8
Release:        0
Summary:        Tiny Editor with Many Different Modes like Vi, Emacs, and Wordstar
License:        GPL-2.0+
Group:          Productivity/Editors/Other
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A very tiny editor, which offers many different modes like Vi, Emacs,
and Wordstar. Wordstar is the default mode.

%prep
%setup

%build 
%ifnarch %ix86 x86_64 %arm ppc ppc64
cd e3c
rm -f Makefile
ln -sf Makefile.x86 Makefile
make -e CFLAGS="-Wall $RPM_OPT_FLAGS" PREFIX="%_prefix" %{?_smp_mflags}
%else
make -e EXMODE=SED %{?_smp_mflags}
%endif

%install
%ifnarch %ix86 x86_64 %arm ppc ppc64
cd e3c
%endif
make -e PREFIX=%buildroot/%_prefix MANDIR=$RPM_BUILD_ROOT%_mandir/man'$(MANSEC)' install
cd $RPM_BUILD_ROOT/usr/bin
for e in e3*; do if test $e != e3; then ln -sf e3 $e; fi; done

%files
%defattr(-,root,root)
%doc COPYING.GPL COPYRIGHT ChangeLog README
/usr/bin/e3*
%_mandir/man1/e3*.1.gz
%ifnarch %ix86 x86_64 %arm ppc ppc64
/usr/lib/e3*
%endif

%changelog