wime-2.1.0-1kkr2009.0.spec
%define name wime
%define version 2.1.0
%define release %mkrel 1
%define libx11 %mklibname x11_ 6
%define libx11_devel %mklibname -d x11_ 6
%define winelibdir %{_prefix}/lib/wine
%define wimedir %{_datadir}/%{name}
Summary: Tool to use Win32 IME as Canna
Summary(ja): Win32 IMEをかんなとして使用するためのツール
Name: %{name}
Version: %{version}
Release: %{release}
Source: http://www.venus.sannet.ne.jp/thomas/wime/%{name}-%{version}.tar.bz2
# Size : 66,417
# MD5 : d13cb3aa0fdfba1381cfce955c927318
# SHA-1 : 6163ed931d7ad312549b3cfecfeada333e54c786
URL: http://www.venus.sannet.ne.jp/thomas/wime/
License: LGPLv2.1+
Group: System/Internationalization
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: wine >= 1.1.16 %{libx11}
BuildRequires: wine >= 1.1.16 libwine-devel >= 1.1.16 libcanna-devel %{libx11_devel}
ExclusiveArch: i586 x86_64
%description
wime is a program which allows using Win32 IME as Canna on GNU/Linux.
%description -l ja
wimeはGNU/Linux上でWin32 IMEをかんなとして使用することを可能にするプログラムです。
%prep
%setup -q
%build
# %{optflags} causes crash on i586
CFLAGS="-std=gnu99 -Wno-multichar -fgnu89-inline -fPIC"
%ifarch x86_64
CFLAGS="${CFLAGS} %{optflags}"
%endif
export CFLAGS
%make -C lib WINEINCDIR=%{_includedir}/wine
%make -C tools/wimectrl
%make -C xim
%{__rm} lib/*.[oa]
for dir in lib so dll exe tools/hinshi-list; do
%make -C ${dir} CFLAGS="${CFLAGS} -m32" LDFLAGS="-m32"
done
%install
%{__rm} %{buildroot} -fr
# fix wime to copy "hinshi" file automatically (first time)
sed -i 's:\(#!/bin/sh\):\1\n\n[ -d ~/.wime ] || ( mkdir ~/.wime \&\& cp %{_datadir}/wime/hinshi ~/.wime/)\n:' exe/wime
%{__install} -d %{buildroot}/{%{_bindir},%{winelibdir},%{wimedir}}
%{__install} -p -m 644 *.reg hinshi %{buildroot}/%{wimedir}/
for f in patch/*; do
%{__install} -D -p -m 644 ${f} %{buildroot}/%{wimedir}/${f}.patch
done
%makeinstall PREFIX=%{buildroot}/%{_prefix} WINELIBDIR=%{buildroot}/%{winelibdir}
%{__lzma} Changelog Readme
%clean
%{__rm} %{buildroot} -fr
%files
%defattr(-, root, root)
%{_bindir}/*
%{_prefix}/lib/libwime.so
%{winelibdir}/libwime.dll.so
%{wimedir}/
%doc Changelog* Readme*
%changelog
* Fri Mar 13 2009 kakurasan <kakurasan AT gmail DOT com> 2.1.0-1kkr2009.0
- new version
- BuildRequires: require Wine >= 1.1.16
* Fri Feb 20 2009 kakurasan <kakurasan AT gmail DOT com> 2.0.1-1kkr2009.0
- new version
* Fri Feb 20 2009 kakurasan <kakurasan AT gmail DOT com> 1.8.5-2kkr2009.0
- require Wine 1.1.15 (winegcc problem is fixed in this version)
* Thu Dec 18 2008 kakurasan <kakurasan AT gmail DOT com> 1.8.5-1kkr2009.0
- initial build