File apel.spec of Package apel

#
# spec file for package apel
#
# 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:           apel
BuildRequires:  emacs-nox
Requires:       emacs
Requires:       emacs_program
Summary:        A Portable Emacs Library
License:        GPL-2.0+
Group:          Productivity/Editors/Emacs
Version:        10.8
Release:        0
Url:            http://www.m17n.org/index.html
Source0:        apel-%{version}.tar.bz2
# Source0:      ftp://ftp.jaist.ac.jp/pub/GNU/elisp/yamaoka/apel/apel-%{version}.tar.gz
# Source0:      http://kanji.zinbun.kyoto-u.ac.jp/~tomo/lemi/dist/apel/apel-%{version}.tar.gz
Source1:        suse-start-apel.el
Patch0:         prevent-fontset-error.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
A Portable Emacs Library

%prep
%setup -q
%patch0 -p1
cp -p %{S:1} .
iconv -fiso2022jp -tutf-8 README.ja > README.ja.new
mv README.ja.new README.ja

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

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

%files
%defattr(-,root,root)
%doc README.en README.ja ChangeLog
%config %{_prefix}/share/emacs/site-lisp/suse-start-apel.el
%{_prefix}/share/emacs/site-lisp/emu
%{_prefix}/share/emacs/site-lisp/apel

%changelog