File emacs-apel.spec of Package emacs-apel

# spec file for package emacs-apel
# Copyright (c) 2014 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:           emacs-apel
Version:        10.8
Release:        0
Summary:        A Portable Emacs Library
License:        GPL-2.0+
Group:          Productivity/Editors/Emacs
Source1:        suse-start-apel.el
Patch0:         prevent-fontset-error.patch
Patch1:         apel-10.8-040_make-temp-file-for-Emacs-24.3.50.patch
BuildRequires:  emacs-nox
Requires:       emacs
Requires:       emacs_program
Provides:	apel = %{version}
Obsoletes:	apel < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

A Portable Emacs Library

%setup -q -n apel-%{version}
%patch0 -p1
%if 0%{?suse_version} > 1310
%patch1 -p1
cp -p %{SOURCE1} .
iconv -fiso2022jp -tutf-8 README.ja >
mv README.ja

make "CFLAGS=%{optflags}" LDFLAGS=-s EMACS=emacs PREFIX=%{_prefix} %{?_smp_mflags}

make install EMACS=emacs PREFIX=%{buildroot}%{_prefix}
install -m 644 suse-start-apel.el %{buildroot}%{_datadir}/emacs/site-lisp/
# make

%doc README.en README.ja ChangeLog

openSUSE Build Service is sponsored by