forked from pool/kasumi
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
227
64bit.patch
Normal file
227
64bit.patch
Normal file
@@ -0,0 +1,227 @@
|
|||||||
|
diff -ru kasumi-2.0.1.orig/KasumiDic.cxx kasumi-2.0.1/KasumiDic.cxx
|
||||||
|
--- kasumi-2.0.1.orig/KasumiDic.cxx 2006-05-26 19:41:25.000000000 +0200
|
||||||
|
+++ kasumi-2.0.1/KasumiDic.cxx 2006-08-29 17:24:58.000000000 +0200
|
||||||
|
@@ -148,7 +148,7 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-void KasumiDic::removeWord(size_t id)
|
||||||
|
+void KasumiDic::removeWord(unsigned int id)
|
||||||
|
{
|
||||||
|
int flag = 0;
|
||||||
|
|
||||||
|
diff -ru kasumi-2.0.1.orig/KasumiDic.hxx kasumi-2.0.1/KasumiDic.hxx
|
||||||
|
--- kasumi-2.0.1.orig/KasumiDic.hxx 2006-05-26 19:41:25.000000000 +0200
|
||||||
|
+++ kasumi-2.0.1/KasumiDic.hxx 2006-08-29 17:25:39.000000000 +0200
|
||||||
|
@@ -56,7 +56,7 @@
|
||||||
|
~KasumiDic();
|
||||||
|
void store() throw(KasumiException);
|
||||||
|
void appendWord(KasumiWord *word); // returns this word's ID
|
||||||
|
- void removeWord(size_t id);
|
||||||
|
+ void removeWord(unsigned int id);
|
||||||
|
|
||||||
|
void registerEventListener(KasumiDicEventListener *listener);
|
||||||
|
void removeEventListener(KasumiDicEventListener *listener);
|
||||||
|
@@ -69,7 +69,7 @@
|
||||||
|
void changedSound(KasumiWord *word);
|
||||||
|
void changedWordType(KasumiWord *word);
|
||||||
|
|
||||||
|
-// KasumiWord *getWordWithID(size_t id) throw(KasumiException);
|
||||||
|
+// KasumiWord *getWordWithID(unsigned int id) throw(KasumiException);
|
||||||
|
// int getUpperBoundOfWordID();
|
||||||
|
};
|
||||||
|
|
||||||
|
diff -ru kasumi-2.0.1.orig/KasumiDicEventListener.hxx kasumi-2.0.1/KasumiDicEventListener.hxx
|
||||||
|
--- kasumi-2.0.1.orig/KasumiDicEventListener.hxx 2006-05-26 19:41:25.000000000 +0200
|
||||||
|
+++ kasumi-2.0.1/KasumiDicEventListener.hxx 2006-08-29 17:25:53.000000000 +0200
|
||||||
|
@@ -35,7 +35,7 @@
|
||||||
|
class KasumiDicEventListener{
|
||||||
|
private:
|
||||||
|
public:
|
||||||
|
- virtual void removedWord(size_t id) = 0;
|
||||||
|
+ virtual void removedWord(unsigned int id) = 0;
|
||||||
|
virtual void appendedWord(KasumiWord *word) = 0;
|
||||||
|
virtual void modifiedWord(KasumiWord *word) = 0;
|
||||||
|
};
|
||||||
|
diff -ru kasumi-2.0.1.orig/KasumiMainWindow.cxx kasumi-2.0.1/KasumiMainWindow.cxx
|
||||||
|
--- kasumi-2.0.1.orig/KasumiMainWindow.cxx 2006-05-29 06:59:37.000000000 +0200
|
||||||
|
+++ kasumi-2.0.1/KasumiMainWindow.cxx 2006-08-29 17:26:17.000000000 +0200
|
||||||
|
@@ -435,7 +435,7 @@
|
||||||
|
void KasumiMainWindow::ClickedRemoveButton(){
|
||||||
|
GtkTreeModel *model = GTK_TREE_MODEL(SortList);
|
||||||
|
GtkTreeIter iter;
|
||||||
|
- int id;
|
||||||
|
+ unsigned int id;
|
||||||
|
|
||||||
|
if(gtk_tree_selection_get_selected(SortListSelection, &model, &iter)){
|
||||||
|
gtk_tree_model_get(model, &iter, COL_ID, &id, -1);
|
||||||
|
@@ -476,7 +476,7 @@
|
||||||
|
GtkTreeIter iter;
|
||||||
|
gtk_tree_model_get_iter(SortList, &iter, editingPath);
|
||||||
|
|
||||||
|
- size_t id;
|
||||||
|
+ unsigned int id;
|
||||||
|
gtk_tree_model_get(SortList, &iter, COL_ID, &id, -1);
|
||||||
|
|
||||||
|
KasumiWord *word = KasumiWord::getWordFromID(id);
|
||||||
|
@@ -568,7 +568,7 @@
|
||||||
|
if(editingPath == NULL)
|
||||||
|
throw KasumiException(string("internal error: editingPath is already freed."), STDERR, KILL);
|
||||||
|
gtk_tree_model_get_iter(SortList, &iter, editingPath);
|
||||||
|
- size_t id;
|
||||||
|
+ unsigned int id;
|
||||||
|
gtk_tree_model_get(SortList, &iter, COL_ID, &id, -1);
|
||||||
|
KasumiWord *word = KasumiWord::getWordFromID(id);
|
||||||
|
|
||||||
|
@@ -587,7 +587,7 @@
|
||||||
|
KasumiWord *word;
|
||||||
|
bool fromFirst = false;
|
||||||
|
GtkTreeIter StartIter;
|
||||||
|
- int id;
|
||||||
|
+ unsigned int id;
|
||||||
|
string searchString = string(gtk_entry_get_text(GTK_ENTRY(mSearchEntry)));
|
||||||
|
string comparedString;
|
||||||
|
GtkWidget *dialog;
|
||||||
|
@@ -714,7 +714,7 @@
|
||||||
|
gtk_tree_view_column_set_sort_order(column,order);
|
||||||
|
}
|
||||||
|
|
||||||
|
-void KasumiMainWindow::removedWord(size_t id){
|
||||||
|
+void KasumiMainWindow::removedWord(unsigned int id){
|
||||||
|
refresh();
|
||||||
|
modificationFlag = true;
|
||||||
|
}
|
||||||
|
@@ -754,7 +754,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
void KasumiMainWindow::modifiedWord(KasumiWord *word){
|
||||||
|
- size_t id = word->getID();
|
||||||
|
+ unsigned int id = word->getID();
|
||||||
|
GtkTreeIter *iter = findCorrespondingIter(id);
|
||||||
|
|
||||||
|
if(iter != NULL)
|
||||||
|
@@ -772,8 +772,8 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
// Do not returns iter of SortList but WordList
|
||||||
|
-GtkTreeIter *KasumiMainWindow::findCorrespondingIter(size_t id){
|
||||||
|
- size_t i;
|
||||||
|
+GtkTreeIter *KasumiMainWindow::findCorrespondingIter(unsigned int id){
|
||||||
|
+ unsigned int i;
|
||||||
|
GtkTreeModel *model = GTK_TREE_MODEL(WordList);
|
||||||
|
GtkTreeIter *iter = (GtkTreeIter*)calloc(1,sizeof(GtkTreeIter));
|
||||||
|
|
||||||
|
@@ -978,7 +978,7 @@
|
||||||
|
|
||||||
|
i = key.find("+",0);
|
||||||
|
|
||||||
|
- if(i == key.npos){
|
||||||
|
+ if(i == (unsigned int) key.npos){
|
||||||
|
return (GdkModifierType)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -997,7 +997,7 @@
|
||||||
|
GtkTreeIter *a,
|
||||||
|
GtkTreeIter *b,
|
||||||
|
gpointer user_data){
|
||||||
|
- int id_a, id_b;
|
||||||
|
+ unsigned int id_a, id_b;
|
||||||
|
gtk_tree_model_get(model, a, COL_ID, &id_a, -1);
|
||||||
|
gtk_tree_model_get(model, b, COL_ID, &id_b, -1);
|
||||||
|
KasumiWord *word_a = KasumiWord::getWordFromID(id_a);
|
||||||
|
@@ -1010,7 +1010,7 @@
|
||||||
|
GtkTreeIter *iter_a,
|
||||||
|
GtkTreeIter *iter_b,
|
||||||
|
gpointer user_data){
|
||||||
|
- int id_a, id_b;
|
||||||
|
+ unsigned int id_a, id_b;
|
||||||
|
gtk_tree_model_get(model, iter_a, COL_ID, &id_a, -1);
|
||||||
|
gtk_tree_model_get(model, iter_b, COL_ID, &id_b, -1);
|
||||||
|
KasumiWord *word_a = KasumiWord::getWordFromID(id_a);
|
||||||
|
@@ -1075,7 +1075,7 @@
|
||||||
|
GtkTreeIter *iter_a,
|
||||||
|
GtkTreeIter *iter_b,
|
||||||
|
gpointer user_data){
|
||||||
|
- int id_a, id_b;
|
||||||
|
+ unsigned int id_a, id_b;
|
||||||
|
gtk_tree_model_get(model, iter_a, COL_ID, &id_a, -1);
|
||||||
|
gtk_tree_model_get(model, iter_b, COL_ID, &id_b, -1);
|
||||||
|
KasumiWord *word_a = KasumiWord::getWordFromID(id_a);
|
||||||
|
diff -ru kasumi-2.0.1.orig/KasumiMainWindow.hxx kasumi-2.0.1/KasumiMainWindow.hxx
|
||||||
|
--- kasumi-2.0.1.orig/KasumiMainWindow.hxx 2006-05-29 06:59:37.000000000 +0200
|
||||||
|
+++ kasumi-2.0.1/KasumiMainWindow.hxx 2006-08-29 17:26:55.000000000 +0200
|
||||||
|
@@ -174,7 +174,7 @@
|
||||||
|
void changedWordTypeColumn(GtkComboBox *combo);
|
||||||
|
|
||||||
|
void FindNext(bool fromCurrent);
|
||||||
|
- GtkTreeIter *findCorrespondingIter(size_t id);
|
||||||
|
+ GtkTreeIter *findCorrespondingIter(unsigned int id);
|
||||||
|
|
||||||
|
void SortBy(GtkTreeViewColumn *column);
|
||||||
|
|
||||||
|
@@ -182,7 +182,7 @@
|
||||||
|
KasumiMainWindow(KasumiDic *aDictionary, KasumiConfiguration *conf);
|
||||||
|
virtual ~KasumiMainWindow();
|
||||||
|
void refresh();
|
||||||
|
- void removedWord(size_t id);
|
||||||
|
+ void removedWord(unsigned int id);
|
||||||
|
void appendedWord(KasumiWord *word);
|
||||||
|
void modifiedWord(KasumiWord *word);
|
||||||
|
};
|
||||||
|
diff -ru kasumi-2.0.1.orig/KasumiWord.cxx kasumi-2.0.1/KasumiWord.cxx
|
||||||
|
--- kasumi-2.0.1.orig/KasumiWord.cxx 2006-05-29 16:04:39.000000000 +0200
|
||||||
|
+++ kasumi-2.0.1/KasumiWord.cxx 2006-08-29 17:27:15.000000000 +0200
|
||||||
|
@@ -41,7 +41,7 @@
|
||||||
|
iconv_t KasumiWord::IconvUTF8_To_EUCJP = iconv_open("EUC-JP", "UTF-8");
|
||||||
|
iconv_t KasumiWord::IconvEUCJP_To_UTF8 = iconv_open("UTF-8", "EUC-JP");
|
||||||
|
|
||||||
|
-size_t KasumiWord::id_generator = 0;
|
||||||
|
+unsigned int KasumiWord::id_generator = 0;
|
||||||
|
|
||||||
|
vector<KasumiWord*> KasumiWord::words = vector<KasumiWord*>(VECTOR_UNIT);
|
||||||
|
|
||||||
|
@@ -273,7 +273,7 @@
|
||||||
|
return string("");
|
||||||
|
}
|
||||||
|
|
||||||
|
-KasumiWord* KasumiWord::getWordFromID(size_t id)
|
||||||
|
+KasumiWord* KasumiWord::getWordFromID(unsigned int id)
|
||||||
|
{
|
||||||
|
return KasumiWord::words[id];
|
||||||
|
}
|
||||||
|
diff -ru kasumi-2.0.1.orig/KasumiWord.hxx kasumi-2.0.1/KasumiWord.hxx
|
||||||
|
--- kasumi-2.0.1.orig/KasumiWord.hxx 2006-05-26 19:41:25.000000000 +0200
|
||||||
|
+++ kasumi-2.0.1/KasumiWord.hxx 2006-08-29 17:21:31.000000000 +0200
|
||||||
|
@@ -48,7 +48,7 @@
|
||||||
|
int Frequency; // corresponding "Hindo"
|
||||||
|
string Spelling; // corresponding "Tango"
|
||||||
|
string Spelling_UTF8;
|
||||||
|
- size_t id;
|
||||||
|
+ unsigned int id;
|
||||||
|
vector<KasumiWordEventListener*> EventListeners;
|
||||||
|
|
||||||
|
KasumiWordType *mWordType;
|
||||||
|
@@ -60,7 +60,7 @@
|
||||||
|
// if no invalid character, returns empty string
|
||||||
|
static string extractInvalidCharacterFromSound(string soundByUTF8);
|
||||||
|
|
||||||
|
- static size_t id_generator;
|
||||||
|
+ static unsigned int id_generator;
|
||||||
|
static vector<KasumiWord*> words;
|
||||||
|
|
||||||
|
KasumiWord(KasumiConfiguration *conf);
|
||||||
|
@@ -87,12 +87,12 @@
|
||||||
|
KasumiWordType *getWordType() { return mWordType; };
|
||||||
|
string getWordTypeUIString(); // UTF8
|
||||||
|
|
||||||
|
- size_t getID(){ return id; };
|
||||||
|
+ unsigned int getID(){ return id; };
|
||||||
|
|
||||||
|
void registerEventListener(KasumiWordEventListener *listener);
|
||||||
|
void removeEventListener(KasumiWordEventListener *listener);
|
||||||
|
|
||||||
|
- static KasumiWord *getWordFromID(size_t id);
|
||||||
|
+ static KasumiWord *getWordFromID(unsigned int id);
|
||||||
|
|
||||||
|
static string convertUTF8ToEUCJP(const string &aEUCJP);
|
||||||
|
static string convertEUCJPToUTF8(const string &aUTF8);
|
62
gcc41.patch
Normal file
62
gcc41.patch
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
diff -ru kasumi-2.0.1/KasumiMainWindow.hxx kasumi-2.0.1.new/KasumiMainWindow.hxx
|
||||||
|
--- kasumi-2.0.1/KasumiMainWindow.hxx 2006-05-29 06:59:37.000000000 +0200
|
||||||
|
+++ kasumi-2.0.1.new/KasumiMainWindow.hxx 2006-08-28 22:28:40.000000000 +0200
|
||||||
|
@@ -64,6 +64,58 @@
|
||||||
|
typedef _TextColumnEnum SearchBy;
|
||||||
|
typedef _TextColumnEnum TextColumn;
|
||||||
|
|
||||||
|
+void _call_back_delete_event(GtkWidget *widget,
|
||||||
|
+ GdkEvent *event,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_quit(GtkWidget *widget,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_store(GtkWidget *widget,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_add(GtkWidget *widget,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_remove(GtkWidget *widget,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_changed_search_entry(GtkWidget *widget,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_activate_search_entry(GtkWidget *widget,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_clicked_column_header(GtkTreeViewColumn *column,
|
||||||
|
+ gpointer data);
|
||||||
|
+gboolean _call_back_key_pressed_text_column(GtkWidget *widget,
|
||||||
|
+ GdkEventKey *event,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_editing_started_sound_column(GtkCellRenderer *render,
|
||||||
|
+ GtkCellEditable *editable,
|
||||||
|
+ gchar *path,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_edited_sound_column(GtkCellRendererText *renderer,
|
||||||
|
+ gchar *arg1,
|
||||||
|
+ gchar *arg2,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_editing_started_spelling_column(GtkCellRenderer *render,
|
||||||
|
+ GtkCellEditable *editable,
|
||||||
|
+ gchar *path,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_edited_spelling_column(GtkCellRendererText *renderer,
|
||||||
|
+ gchar *arg1,
|
||||||
|
+ gchar *arg2,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_editing_started_freq_column(GtkCellRenderer *render,
|
||||||
|
+ GtkCellEditable *editable,
|
||||||
|
+ gchar *path,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_edited_freq_column(GtkCellRendererText *renderer,
|
||||||
|
+ gchar *arg1,
|
||||||
|
+ gchar *arg2,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_editing_started_wordtype_column(GtkCellRenderer *render,
|
||||||
|
+ GtkCellEditable *editable,
|
||||||
|
+ gchar *path,
|
||||||
|
+ gpointer data);
|
||||||
|
+void _call_back_changed_wordtype_column(GtkComboBox *combo,
|
||||||
|
+ gpointer data);
|
||||||
|
+
|
||||||
|
+
|
||||||
|
class KasumiMainWindow : public KasumiDicEventListener{
|
||||||
|
friend void _call_back_delete_event(GtkWidget *widget,
|
||||||
|
GdkEvent *event,
|
3
kasumi-2.0.1.tar.bz2
Normal file
3
kasumi-2.0.1.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3df6dc416c43e4add6701ac341e5838b81cd7d4f87f51deb7ec2923033a03164
|
||||||
|
size 215894
|
46
kasumi.changes
Normal file
46
kasumi.changes
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 28 21:54:37 CEST 2006 - mfabian@suse.de
|
||||||
|
|
||||||
|
- update to 2.0.1.
|
||||||
|
• search function for KasumiMainWindow
|
||||||
|
• obsolete "Add Mode" button
|
||||||
|
• set an alternative word type if specified one does not exist
|
||||||
|
• measures against an anthy's defect that it returns error code
|
||||||
|
even when it is right and no word is registered.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 28 18:37:56 CET 2006 - mfabian@suse.de
|
||||||
|
|
||||||
|
- add: "Provides: locale(anthy:ja)".
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 25 21:37:06 CET 2006 - mls@suse.de
|
||||||
|
|
||||||
|
- converted neededforbuild to BuildRequires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 13 14:44:29 CET 2006 - mfabian@suse.de
|
||||||
|
|
||||||
|
- update to 1.0.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 19 11:57:20 CEST 2005 - mfabian@suse.de
|
||||||
|
|
||||||
|
- update to 0.10.
|
||||||
|
- fix build problem with gcc 4.1.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 05 14:47:52 CEST 2005 - mfabian@suse.de
|
||||||
|
|
||||||
|
- update to 0.9.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 23 12:43:39 CET 2005 - mfabian@suse.de
|
||||||
|
|
||||||
|
- fix some typos.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 17 14:18:48 CET 2005 - mfabian@suse.de
|
||||||
|
|
||||||
|
- new package: kasumi, version 0.7.
|
||||||
|
|
97
kasumi.spec
Normal file
97
kasumi.spec
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
#
|
||||||
|
# spec file for package kasumi (Version 2.0.1)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
# This file and all modifications and additions to the pristine
|
||||||
|
# package are under the same license as the package itself.
|
||||||
|
#
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
Name: kasumi
|
||||||
|
BuildRequires: anthy-devel gcc-c++ gtk2-devel update-desktop-files
|
||||||
|
License: GPL
|
||||||
|
Group: System/I18n/Japanese
|
||||||
|
Autoreqprov: on
|
||||||
|
Provides: locale(anthy:ja)
|
||||||
|
Version: 2.0.1
|
||||||
|
Release: 1
|
||||||
|
URL: http://kasumi.sourceforge.jp/
|
||||||
|
Source0: http://osdn.dl.sourceforge.jp/kasumi/20684/kasumi-2.0.1.tar.bz2
|
||||||
|
Patch0: 64bit.patch
|
||||||
|
Patch1: gcc41.patch
|
||||||
|
Patch2: typo.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
Summary: Dictionary Tool for Anthy
|
||||||
|
|
||||||
|
%description
|
||||||
|
A graphical tool to edit the personal dictionary for Anthy.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Takashi Nakamoto <bluedwarf@openoffice.org>
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup0 -q -n %{name}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
rm -f config.cache
|
||||||
|
# update config.{guess,sub}
|
||||||
|
%{?suse_update_config}
|
||||||
|
libtoolize --force
|
||||||
|
autoreconf --force --install
|
||||||
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
export CFLAGS="-g -O0"
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--bindir=%{_bindir} \
|
||||||
|
--libdir=%{_libdir} \
|
||||||
|
--sysconfdir=%{_sysconfdir} \
|
||||||
|
--mandir=%{_mandir} \
|
||||||
|
--infodir=%{_infodir} \
|
||||||
|
%{_target_cpu}-suse-linux
|
||||||
|
make
|
||||||
|
|
||||||
|
%install
|
||||||
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
%find_lang kasumi
|
||||||
|
|
||||||
|
%clean
|
||||||
|
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
||||||
|
|
||||||
|
%files -n kasumi -f kasumi.lang
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
|
||||||
|
%{_bindir}/*
|
||||||
|
%dir %{_datadir}/kasumi/
|
||||||
|
%dir %{_datadir}/kasumi/kasumi.png
|
||||||
|
|
||||||
|
%changelog -n kasumi
|
||||||
|
* Mon Aug 28 2006 - mfabian@suse.de
|
||||||
|
- update to 2.0.1.
|
||||||
|
• search function for KasumiMainWindow
|
||||||
|
• obsolete "Add Mode" button
|
||||||
|
• set an alternative word type if specified one does not exist
|
||||||
|
• measures against an anthy's defect that it returns error code
|
||||||
|
even when it is right and no word is registered.
|
||||||
|
* Tue Feb 28 2006 - mfabian@suse.de
|
||||||
|
- add: "Provides: locale(anthy:ja)".
|
||||||
|
* Wed Jan 25 2006 - mls@suse.de
|
||||||
|
- converted neededforbuild to BuildRequires
|
||||||
|
* Fri Jan 13 2006 - mfabian@suse.de
|
||||||
|
- update to 1.0.
|
||||||
|
* Wed Oct 19 2005 - mfabian@suse.de
|
||||||
|
- update to 0.10.
|
||||||
|
- fix build problem with gcc 4.1.
|
||||||
|
* Fri Aug 05 2005 - mfabian@suse.de
|
||||||
|
- update to 0.9.
|
||||||
|
* Wed Feb 23 2005 - mfabian@suse.de
|
||||||
|
- fix some typos.
|
||||||
|
* Thu Feb 17 2005 - mfabian@suse.de
|
||||||
|
- new package: kasumi, version 0.7.
|
18
typo.patch
Normal file
18
typo.patch
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
diff -ru kasumi-2.0.1.orig/main.cxx kasumi-2.0.1/main.cxx
|
||||||
|
--- kasumi-2.0.1.orig/main.cxx 2006-05-28 11:00:07.000000000 +0200
|
||||||
|
+++ kasumi-2.0.1/main.cxx 2006-08-29 02:04:02.000000000 +0200
|
||||||
|
@@ -166,12 +166,12 @@
|
||||||
|
while (gtk_events_pending())
|
||||||
|
gtk_main_iteration();
|
||||||
|
if (instance > 0) {
|
||||||
|
- /* Kasumi process is already exists */
|
||||||
|
+ /* Kasumi process already exists */
|
||||||
|
while (arg_text != NULL)
|
||||||
|
while (gtk_events_pending())
|
||||||
|
gtk_main_iteration();
|
||||||
|
gtk_widget_destroy(window);
|
||||||
|
- cerr << "Kasumi process is already exists." << endl;
|
||||||
|
+ cerr << "Kasumi process already exists." << endl;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
g_free(arg_text);
|
Reference in New Issue
Block a user