From 0e6b75933b9c8d6bafc8db6f62213716d3e9de15 Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: May 21 2007 17:08:37 +0000 Subject: Add migemo support for jd & kazehakase --- diff --git a/jd.spec b/jd.spec index 8412e3a..8fcf374 100644 --- a/jd.spec +++ b/jd.spec @@ -19,7 +19,7 @@ # Defined by vendor # -%define vendor_rel 1 +%define vendor_rel 2 # Tag name changed from vendor to vendorname so as not to # overwrite Vendor entry in Summary %define vendorname fedora @@ -35,6 +35,8 @@ %define rel %{vendor_rel}%{?dist} %endif +%define _with_migemo 1 +%define migemo_dic %{_datadir}/cmigemo/utf-8/migemo-dict ########################################## @@ -55,6 +57,9 @@ BuildRequires: libtool automake BuildRequires: openssl-devel BuildRequires: desktop-file-utils BuildRequires: libSM-devel +%if 0%{?_with_migemo} >= 1 +BuildRequires: cmigemo-devel +%endif Requires: fonts-japanese @@ -65,13 +70,24 @@ JD is a 2ch browser based on gtkmm2. %setup -q -n %{name}-%{main_ver}-%{strtag} find . -name .svn | sort -r | xargs %{__rm} -rf +%if 0%{?_with_migemo} >= 1 +%{__sed} -i \ + -e 's|/usr/share/migemo/utf-8/migemo-dict|%{migemo_dic}|' \ + src/config/configitems.cpp \ + src/jdlib/jdmigemo.h +%endif + %build sh autogen.sh # set TZ for __TIME__ export TZ='Asia/Tokyo' -%configure +%configure \ +%if 0%{?_with_migemo} >= 1 + --with-migemo +%endif + %{__make} %{?_smp_mflags} %install @@ -109,6 +125,9 @@ touch --no-create %{_datadir}/icons/hicolor || : %{icondir}/%{name}.png %changelog +* Tue May 22 2007 Mamoru Tasaka - 1.9.5-0.2.beta070516 +- Support C/Migemo search + * Tue May 15 2007 Mamoru Tasaka - 1.9.5-0.1.beta070516 - 1.9.5 beta 070516