File apel.spec of Package apel

#
# spec file for package apel
#
# Copyright (c) 2011 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
License:        GPL v2 or later
Group:          Productivity/Editors/Emacs
Requires:       emacs emacs_program
Summary:        A Portable Emacs Library
Version:        10.7
Release:        1
Url:            ftp://ftp.m17n.org/pub/mule/apel/
Source0:        ftp://ftp.m17n.org/pub/mule/apel/apel-%{version}.tar.bz2
# Source0:     ftp://ftp.jaist.ac.jp/pub/GNU/elisp/yamaoka/apel/apel-%{version}.tar.gz
Source1:        suse-start-apel.el
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
A Portable Emacs Library

%prep
%setup -q
cp -p $RPM_SOURCE_DIR/suse-start-apel.el .
iconv -fiso2022jp -tutf-8 README.ja > README.ja.new
mv README.ja.new README.ja

%build
pushd /
  [ -f usr/bin/emacs ] || ln -sf emacs-nox usr/bin/emacs
popd
make "CFLAGS=$RPM_OPT_FLAGS" LDFLAGS=-s EMACS=emacs PREFIX=%{_prefix} \
	%{?_smp_mflags}

%install
make install EMACS=emacs  PREFIX=$RPM_BUILD_ROOT%{_prefix}
install -m 644 suse-start-apel.el $RPM_BUILD_ROOT%{_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
openSUSE Build Service is sponsored by