forked from pool/anthy
47b1a48ca9
update license to new format OBS-URL: https://build.opensuse.org/request/show/150928 OBS-URL: https://build.opensuse.org/package/show/M17N/anthy?expand=0&rev=16
144 lines
4.6 KiB
RPMSpec
144 lines
4.6 KiB
RPMSpec
#
|
|
# spec file for package anthy
|
|
#
|
|
# Copyright (c) 2013 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: anthy
|
|
BuildRequires: emacs-x11
|
|
%if 0%{?suse_version} >= 1110
|
|
BuildRequires: fdupes
|
|
%endif
|
|
BuildRequires: giflib-devel
|
|
BuildRequires: krb5
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: openldap2-devel
|
|
BuildRequires: xemacs
|
|
BuildRequires: xorg-x11-devel
|
|
Provides: locale(emacs:ja)
|
|
Provides: locale(m17n-lib:ja)
|
|
Provides: locale(scim-anthy:ja)
|
|
Provides: locale(uim:ja)
|
|
Provides: locale(xemacs:ja)
|
|
Version: 9100h
|
|
Release: 0
|
|
Url: http://sourceforge.jp/projects/anthy/
|
|
# old URL, still some information only there: http://www.kmc.kyoto-u.ac.jp/proj/heke/
|
|
# cvs -d:pserver:anonymous@cvs.sourceforge.jp:/cvsroot/anthy login
|
|
# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.jp:/cvsroot/anthy co modulename
|
|
Source0: anthy-%{version}.tar.bz2
|
|
Source1: suse-start-anthy.el
|
|
Source2: baselibs.conf
|
|
Patch2: anthy-last-command-char-xemacs.patch
|
|
Patch3: bugzilla-224463-comparison-with-string-literal.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Summary: Kana-Kanji Conversion Engine
|
|
License: GPL-2.0+ and LGPL-2.1+
|
|
Group: System/I18n/Japanese
|
|
# Summary(ja): 仮名漢字変換エンジン
|
|
# Anthy(旧称Ancy)
|
|
#
|
|
# PC-Unix用の仮名漢字変換エンジンとしては Canna、 FreeWnn等が有名ですが、
|
|
# いずれも1990年前後の国産Unixワークステーションのために開発され、 フリー
|
|
# なものの開発はほぼ停止している状態です。 Hekeプロジェクトでは新たな変
|
|
# 換エンジンを辞書を除いてフルスクラッチで 開発を行っています。
|
|
#
|
|
# 著者:
|
|
# ------
|
|
# 田畑 悠介 <yusuke@kmc.kyoto-u.ac.jp>
|
|
|
|
%description
|
|
Anthy (previously called 'Ancy'):
|
|
|
|
Canna, FreeWnn, and others are famous Kana-Kanji conversion engines
|
|
usable for Unix on PCs. They were originally developed for Japanese
|
|
Unix workstations around 1990 and development has practically stopped.
|
|
Therefore, the Heke Project is writing a free conversion engine from
|
|
scratch (apart from the dictionary, which is developed outside of the
|
|
Heke Project).
|
|
|
|
%package devel
|
|
Summary: Include Files and Libraries mandatory for Development.
|
|
License: GPL-2.0+
|
|
Group: System/I18n/Japanese
|
|
Requires: %{name} = %{version}
|
|
# Summary(ja): Anthy のヘッダファイル及びライブラリです。
|
|
# %description devel -l ja
|
|
# Anthy のヘッダファイル及びライブラリです。
|
|
|
|
%description devel
|
|
This package contains all necessary include files and libraries needed
|
|
to develop applications that require these.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch2 -p 1
|
|
%patch3 -p 1
|
|
|
|
%build
|
|
autoreconf --force --install
|
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
|
CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
|
%configure --disable-static --with-pic
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
cd test
|
|
./anthy --all
|
|
|
|
%install
|
|
%makeinstall
|
|
install -m 644 $RPM_SOURCE_DIR/suse-start-anthy.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/
|
|
# compile the XEmacs versions of the emacs-lisp files and install them:
|
|
pushd src-util
|
|
rm -f *.elc
|
|
make EMACS=xemacs
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/anthy
|
|
install -m 644 *.el *.elc $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/anthy
|
|
popd
|
|
%if %suse_version > 1110
|
|
%fdupes $RPM_BUILD_ROOT/usr/share
|
|
%endif
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
|
# remove unneeded Makefiles for documents
|
|
rm -f doc/Makefile.*
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS COPYING ChangeLog DIARY INSTALL NEWS README
|
|
%doc doc
|
|
%config %{_sysconfdir}/anthy-conf
|
|
%dir /usr/share/anthy/
|
|
/usr/share/anthy/*
|
|
%{_bindir}/*
|
|
%{_libdir}/*.so.*
|
|
/usr/share/emacs/site-lisp/*
|
|
/usr/share/xemacs/*
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%dir /usr/include/anthy/
|
|
/usr/include/anthy/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/anthy.pc
|
|
|
|
%changelog
|