Compare commits
13 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dfe30f9f1d | ||
|
|
9caca004a1 | ||
|
|
c5ea4abf64 | ||
|
|
e52a801243 | ||
|
|
251980fd07 | ||
|
|
32c55a032d | ||
|
|
925122748a | ||
|
|
94a943aba8 | ||
|
|
1673fbb2a5 | ||
|
|
0c1f87284b | ||
|
|
12d6d701ba | ||
|
|
4e64038e04 | ||
|
|
6dc3c521f7 |
29 changed files with 1 additions and 26877 deletions
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
3257
French.txt
3257
French.txt
File diff suppressed because it is too large
Load diff
5160
Italian.txt
5160
Italian.txt
File diff suppressed because it is too large
Load diff
6
Makefile
6
Makefile
|
|
@ -1,6 +0,0 @@
|
|||
# Makefile for source rpm: wordtrans
|
||||
# $Id$
|
||||
NAME := wordtrans
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
include ../common/Makefile.common
|
||||
1375
Portuguese.txt
1375
Portuguese.txt
File diff suppressed because it is too large
Load diff
|
|
@ -1,12 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Name=Qt - Word Translator
|
||||
Name[es]=Qt - Traductor de palabras
|
||||
Name[de]=Qt - Welt-Wörterbuch
|
||||
Comment=A Word Translator which supports some dictionaries
|
||||
Comment[es]=Un traductor de palabras con soporte para varios diccionarios
|
||||
Comment[de]=Ein Wörterbuch mit mehr Sprachen-Untersttzung
|
||||
Exec=qwordtrans
|
||||
Icon=qwordtrans
|
||||
DocPath=kwordtrans/index.html
|
||||
Terminal=0
|
||||
Type=Application
|
||||
7487
Spanish.txt
7487
Spanish.txt
File diff suppressed because it is too large
Load diff
33
de-en.conf
33
de-en.conf
|
|
@ -1,33 +0,0 @@
|
|||
[General]
|
||||
alias = de-en
|
||||
separador = " :: "
|
||||
idioma1 = German
|
||||
idioma2 = English
|
||||
[Diccionarios]
|
||||
general = /usr/share/wordtrans/de-en.dict
|
||||
personal = .wordtrans/de-en.dict
|
||||
[Opciones]
|
||||
busqueda_inversa = true
|
||||
case_sensitive = true
|
||||
palabras_completas = true
|
||||
[Iconos]
|
||||
idioma1 = /usr/share/wordtrans/flags/germany.png
|
||||
idioma2 = /usr/share/wordtrans/flags/english.png
|
||||
[Descripcion]
|
||||
lineas=3
|
||||
linea0 = <h2>German-English Dictionary</h2>
|
||||
linea1 = Wordtrans comes pre-configured to use the German-English dictionary
|
||||
linea2 = <i>de-en</i>.
|
||||
|
||||
[Descripcion_es_ES]
|
||||
lineas = 3
|
||||
linea0 = <h2>Diccionario Alem<65>-Ingl<67></h2>
|
||||
linea1 = Wordtrans viene pre-configurado para usar el diccionario Alem<65>-Ingl<67>
|
||||
linea2 = <i>de-en</i>.
|
||||
|
||||
[Descripcion_es]
|
||||
lineas = 3
|
||||
linea0 = <h2>Diccionario Alem<65>-Ingl<67></h2>
|
||||
linea1 = Wordtrans viene pre-configurado para usar el diccionario Alem<65>-Ingl<67>
|
||||
linea2 = <i>de-en</i>.
|
||||
|
||||
1
dead.package
Normal file
1
dead.package
Normal file
|
|
@ -0,0 +1 @@
|
|||
This package was retired on 2012-02-06, as it failed to properly build for multiple releases.
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
[General]
|
||||
alias = dict.org
|
||||
idioma1 = N/A
|
||||
idioma2 = N/A
|
||||
strategy = .
|
||||
database = *
|
||||
server = dict.org
|
||||
port = 2628
|
||||
utf8 = false
|
||||
|
||||
[Iconos]
|
||||
idioma1 = /usr/share/wordtrans/unknown.xpm
|
||||
idioma2 = /usr/share/wordtrans/unknown.xpm
|
||||
|
||||
[Descripcion_es]
|
||||
lineas = 3
|
||||
linea0 = <h2>Diccionarios de dict.org</h2>
|
||||
linea1 = <p>Mediante esta opción podrás acceder a todos los diccionarios disponibles en dict.org. Para poder usarlo debes estar conectado a internet.</p>
|
||||
linea2 =
|
||||
|
||||
[Descripcion_en]
|
||||
lineas = 3
|
||||
linea0 = <h2>Dictionaries from dict.org</h2>
|
||||
linea1 = <p>From this option you can access to all available dictionaries from dict.org. But you have to be connected to the internet.</p>
|
||||
linea2 =
|
||||
|
||||
[Descripcion]
|
||||
lineas = 3
|
||||
linea0 = <h2>Dictionaries from dict.org</h2>
|
||||
linea1 = <p>From this option you can access to all available dictionaries from dict.org. But you have to be connected to the internet.</p>
|
||||
linea2 =
|
||||
|
||||
19
en-es.conf
19
en-es.conf
|
|
@ -1,19 +0,0 @@
|
|||
[General]
|
||||
alias = en-es
|
||||
separador = "\t"
|
||||
utf8 = false
|
||||
idioma1 = English
|
||||
idioma2 = Spanish
|
||||
[Diccionarios]
|
||||
general = /usr/share/wordtrans/en-es.txt
|
||||
personal = .wordtrans/en-es.dict
|
||||
[Opciones]
|
||||
busqueda_inversa = true
|
||||
case_sensitive = false
|
||||
palabras_completas = true
|
||||
[Iconos]
|
||||
idioma1 = /usr/share/wordtrans/flags/english.png
|
||||
idioma2 = /usr/share/wordtrans/flags/spain.png
|
||||
[Descripcion]
|
||||
lineas = 1
|
||||
linea0 = <h2>An English-Spanish Dictionary</h2>
|
||||
19
en-fr.conf
19
en-fr.conf
|
|
@ -1,19 +0,0 @@
|
|||
[General]
|
||||
alias = en-fr
|
||||
separador = "\t"
|
||||
utf8 = false
|
||||
idioma1 = English
|
||||
idioma2 = French
|
||||
[Diccionarios]
|
||||
general = /usr/share/wordtrans/en-fr.txt
|
||||
personal = .wordtrans/en-fr.dict
|
||||
[Opciones]
|
||||
busqueda_inversa = true
|
||||
case_sensitive = false
|
||||
palabras_completas = true
|
||||
[Iconos]
|
||||
idioma1 = /usr/share/wordtrans/flags/english.png
|
||||
idioma2 = /usr/share/wordtrans/flags/france.png
|
||||
[Descripcion]
|
||||
lineas = 1
|
||||
linea0 = <h2>An English-French Dictionary</h2>
|
||||
19
en-it.conf
19
en-it.conf
|
|
@ -1,19 +0,0 @@
|
|||
[General]
|
||||
alias = en-it
|
||||
separador = "\t"
|
||||
utf8 = false
|
||||
idioma1 = English
|
||||
idioma2 = Italian
|
||||
[Diccionarios]
|
||||
general = /usr/share/wordtrans/en-it.txt
|
||||
personal = .wordtrans/en-it.dict
|
||||
[Opciones]
|
||||
busqueda_inversa = true
|
||||
case_sensitive = false
|
||||
palabras_completas = true
|
||||
[Iconos]
|
||||
idioma1 = /usr/share/wordtrans/flags/english.png
|
||||
idioma2 = /usr/share/wordtrans/flags/italy.png
|
||||
[Descripcion]
|
||||
lineas = 1
|
||||
linea0 = <h2>An English-Italian Dictionary</h2>
|
||||
19
en-pt.conf
19
en-pt.conf
|
|
@ -1,19 +0,0 @@
|
|||
[General]
|
||||
alias = en-pt
|
||||
separador = "\t"
|
||||
utf8 = false
|
||||
idioma1 = English
|
||||
idioma2 = Portuguese
|
||||
[Diccionarios]
|
||||
general = /usr/share/wordtrans/en-pt.txt
|
||||
personal = .wordtrans/en-pt.dict
|
||||
[Opciones]
|
||||
busqueda_inversa = true
|
||||
case_sensitive = false
|
||||
palabras_completas = true
|
||||
[Iconos]
|
||||
idioma1 = /usr/share/wordtrans/flags/english.png
|
||||
idioma2 = /usr/share/wordtrans/flags/portug.png
|
||||
[Descripcion]
|
||||
lineas = 1
|
||||
linea0 = <h2>An English-Portuguese Dictionary</h2>
|
||||
2
sources
2
sources
|
|
@ -1,2 +0,0 @@
|
|||
80a68278f675f0050d2ec91d1c34500a wordtrans_1.1pre13.tar.gz
|
||||
9d4105ea0ca5550ce067b357076d4015 ger-eng.txt
|
||||
|
|
@ -1,223 +0,0 @@
|
|||
--- wordtrans-1.1pre12/src/qtdesigner/browser.ui.than 2003-02-10 10:11:06.000000000 +0100
|
||||
+++ wordtrans-1.1pre12/src/qtdesigner/browser.ui 2003-02-10 10:15:34.000000000 +0100
|
||||
@@ -1,13 +1,10 @@
|
||||
-<!DOCTYPE UI><UI>
|
||||
+<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
|
||||
<class>Browser</class>
|
||||
-<widget>
|
||||
- <class>QWidget</class>
|
||||
- <property stdset="1">
|
||||
- <name>name</name>
|
||||
+<widget class="QWidget">
|
||||
+ <property name="name">
|
||||
<cstring>Browser</cstring>
|
||||
</property>
|
||||
- <property stdset="1">
|
||||
- <name>geometry</name>
|
||||
+ <property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
@@ -15,122 +12,100 @@
|
||||
<height>299</height>
|
||||
</rect>
|
||||
</property>
|
||||
- <property stdset="1">
|
||||
- <name>caption</name>
|
||||
+ <property name="caption">
|
||||
<string>Form1</string>
|
||||
</property>
|
||||
<vbox>
|
||||
- <property stdset="1">
|
||||
- <name>margin</name>
|
||||
+ <property name="name">
|
||||
+ <cstring>unnamed</cstring>
|
||||
+ </property>
|
||||
+ <property name="margin">
|
||||
<number>11</number>
|
||||
</property>
|
||||
- <property stdset="1">
|
||||
- <name>spacing</name>
|
||||
+ <property name="spacing">
|
||||
<number>6</number>
|
||||
</property>
|
||||
- <widget>
|
||||
- <class>QGroupBox</class>
|
||||
- <property stdset="1">
|
||||
- <name>name</name>
|
||||
+ <widget class="QGroupBox">
|
||||
+ <property name="name">
|
||||
<cstring>grupoBrowser</cstring>
|
||||
</property>
|
||||
- <property stdset="1">
|
||||
- <name>title</name>
|
||||
+ <property name="title">
|
||||
<string>Browser</string>
|
||||
</property>
|
||||
- <property stdset="1">
|
||||
- <name>alignment</name>
|
||||
+ <property name="alignment">
|
||||
<set>AlignLeft</set>
|
||||
</property>
|
||||
- <property>
|
||||
- <name>hAlign</name>
|
||||
+ <property name="hAlign" stdset="0">
|
||||
</property>
|
||||
<vbox>
|
||||
- <property stdset="1">
|
||||
- <name>margin</name>
|
||||
+ <property name="name">
|
||||
+ <cstring>unnamed</cstring>
|
||||
+ </property>
|
||||
+ <property name="margin">
|
||||
<number>11</number>
|
||||
</property>
|
||||
- <property stdset="1">
|
||||
- <name>spacing</name>
|
||||
+ <property name="spacing">
|
||||
<number>6</number>
|
||||
</property>
|
||||
- <widget>
|
||||
- <class>QLabel</class>
|
||||
- <property stdset="1">
|
||||
- <name>name</name>
|
||||
+ <widget class="QLabel">
|
||||
+ <property name="name">
|
||||
<cstring>labelBrowser</cstring>
|
||||
</property>
|
||||
- <property stdset="1">
|
||||
- <name>text</name>
|
||||
+ <property name="text">
|
||||
<string>&Select a browser for viewing the documentation or web pages:</string>
|
||||
</property>
|
||||
- <property stdset="1">
|
||||
- <name>alignment</name>
|
||||
+ <property name="alignment">
|
||||
<set>WordBreak|AlignVCenter|AlignLeft</set>
|
||||
</property>
|
||||
- <property>
|
||||
- <name>buddy</name>
|
||||
+ <property name="buddy" stdset="0">
|
||||
<cstring>comboBrowser</cstring>
|
||||
</property>
|
||||
- <property>
|
||||
- <name>hAlign</name>
|
||||
+ <property name="hAlign" stdset="0">
|
||||
</property>
|
||||
- <property>
|
||||
- <name>wordwrap</name>
|
||||
+ <property name="wordwrap" stdset="0">
|
||||
</property>
|
||||
</widget>
|
||||
- <widget>
|
||||
- <class>QComboBox</class>
|
||||
+ <widget class="QComboBox">
|
||||
<item>
|
||||
- <property>
|
||||
- <name>text</name>
|
||||
- <string>opera</string>
|
||||
+ <property name="text">
|
||||
+ <string>konqueror</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
- <property>
|
||||
- <name>text</name>
|
||||
- <string>netscape</string>
|
||||
+ <property name="text">
|
||||
+ <string>mozilla</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
- <property>
|
||||
- <name>text</name>
|
||||
- <string>mozilla</string>
|
||||
+ <property name="text">
|
||||
+ <string>netscape</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
- <property>
|
||||
- <name>text</name>
|
||||
- <string>dillo</string>
|
||||
+ <property name="text">
|
||||
+ <string>opera</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
- <property>
|
||||
- <name>text</name>
|
||||
- <string>konqueror</string>
|
||||
+ <property name="text">
|
||||
+ <string>dillo</string>
|
||||
</property>
|
||||
</item>
|
||||
- <property stdset="1">
|
||||
- <name>name</name>
|
||||
+ <property name="name">
|
||||
<cstring>comboBrowser</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer>
|
||||
- <property>
|
||||
- <name>name</name>
|
||||
+ <property name="name">
|
||||
<cstring>Spacer5</cstring>
|
||||
</property>
|
||||
- <property stdset="1">
|
||||
- <name>orientation</name>
|
||||
+ <property name="orientation">
|
||||
<enum>Vertical</enum>
|
||||
</property>
|
||||
- <property stdset="1">
|
||||
- <name>sizeType</name>
|
||||
+ <property name="sizeType">
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
- <property>
|
||||
- <name>sizeHint</name>
|
||||
+ <property name="sizeHint">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
@@ -139,17 +114,15 @@
|
||||
</spacer>
|
||||
</vbox>
|
||||
</widget>
|
||||
- <widget>
|
||||
- <class>QCheckBox</class>
|
||||
- <property stdset="1">
|
||||
- <name>name</name>
|
||||
+ <widget class="QCheckBox">
|
||||
+ <property name="name">
|
||||
<cstring>useBrowser</cstring>
|
||||
</property>
|
||||
- <property stdset="1">
|
||||
- <name>text</name>
|
||||
+ <property name="text">
|
||||
<string>&Use internal browser for help pages (recommended)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
+<layoutdefaults spacing="6" margin="11"/>
|
||||
</UI>
|
||||
--- wordtrans-1.1pre12/src/setup.cpp.than 2003-02-10 10:10:31.000000000 +0100
|
||||
+++ wordtrans-1.1pre12/src/setup.cpp 2003-02-10 10:14:13.000000000 +0100
|
||||
@@ -351,12 +351,12 @@
|
||||
grupoBrowserLayout->addWidget( labelBrowser );
|
||||
|
||||
comboBrowser = new QComboBox( FALSE, grupoBrowser, "comboBrowser" );
|
||||
- comboBrowser->insertItem( "dillo" );
|
||||
- comboBrowser->insertItem( "opera" );
|
||||
- comboBrowser->insertItem( "netscape" );
|
||||
- comboBrowser->insertItem( "galeon" );
|
||||
comboBrowser->insertItem( "konqueror" );
|
||||
comboBrowser->insertItem( "mozilla" );
|
||||
+ comboBrowser->insertItem( "netscape" );
|
||||
+ comboBrowser->insertItem( "galeon" );
|
||||
+ comboBrowser->insertItem( "dillo" );
|
||||
+ comboBrowser->insertItem( "opera" );
|
||||
grupoBrowserLayout->addWidget( comboBrowser );
|
||||
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
|
||||
grupoBrowserLayout->addItem( spacer );
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
--- wordtrans-1.1pre12/src/QTextDiccionario.cpp.than 2003-02-09 18:36:19.000000000 +0100
|
||||
+++ wordtrans-1.1pre12/src/QTextDiccionario.cpp 2003-02-09 22:04:59.000000000 +0100
|
||||
@@ -112,15 +112,17 @@
|
||||
QCString comando;
|
||||
|
||||
if (comprimido(diccionario))
|
||||
- comando="zegrep -h ";
|
||||
+ comando="/usr/bin/zegrep -h ";
|
||||
else
|
||||
- comando="egrep -h ";
|
||||
+ comando="/bin/egrep -h ";
|
||||
|
||||
if (palabras_completas) comando += "-w ";
|
||||
if (!case_sensitive) comando += "-i ";
|
||||
|
||||
comando = comando + "-e \"" + palabra.latin1() + "\" " + diccionario.latin1();
|
||||
|
||||
+ comando = comando + "| /bin/grep -v \"^#\"";
|
||||
+
|
||||
qDebug("Comando: '%s'", comando.data() );
|
||||
|
||||
return comando;
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
--- wordtrans-1.1pre12/docs/Makefile.qt 2003-02-09 15:31:11.000000000 +0100
|
||||
+++ wordtrans-1.1pre12/docs/Makefile 2003-02-09 15:36:54.000000000 +0100
|
||||
@@ -61,24 +61,17 @@
|
||||
#Páginas man
|
||||
-install -d $(DESTDIR)/usr/share/man/es/man1/
|
||||
install -m 644 man.1 $(DESTDIR)/usr/share/man/es/man1/wordtrans.1
|
||||
- gzip -9 $(DESTDIR)/usr/share/man/es/man1/wordtrans.1
|
||||
- install -m 644 qwordtrans_man.1 $(DESTDIR)/usr/share/man/es/man1/qwordtrans.1
|
||||
- gzip -9 $(DESTDIR)/usr/share/man/es/man1/qwordtrans.1
|
||||
- install -m 644 qwordtrans_man.1 $(DESTDIR)/usr/share/man/es/man1/kwordtrans.1
|
||||
- gzip -9 $(DESTDIR)/usr/share/man/es/man1/kwordtrans.1
|
||||
# install -m 644 idp2text_man.1 $(DESTDIR)/usr/share/man/es/man1/idp2text.1
|
||||
# gzip -9 $(DESTDIR)/usr/share/man/es/man1/idp2text.1
|
||||
|
||||
-install -d $(DESTDIR)/usr/share/man/man1/
|
||||
install -m 644 man_en.1 $(DESTDIR)/usr/share/man/man1/wordtrans.1
|
||||
- gzip -9 $(DESTDIR)/usr/share/man/man1/wordtrans.1
|
||||
- install -m 644 qwordtrans_man_en.1 $(DESTDIR)/usr/share/man/man1/qwordtrans.1
|
||||
- gzip -9 $(DESTDIR)/usr/share/man/man1/qwordtrans.1
|
||||
- install -m 644 qwordtrans_man_en.1 $(DESTDIR)/usr/share/man/man1/kwordtrans.1
|
||||
- gzip -9 $(DESTDIR)/usr/share/man/man1/kwordtrans.1
|
||||
# install -m 644 idp2text_man_en.1 $(DESTDIR)/usr/share/man/man1/idp2text.1
|
||||
# gzip -9 $(DESTDIR)/usr/share/man/man1/idp2text.1
|
||||
|
||||
+intall_qt:
|
||||
+ install -m 644 qwordtrans_man_en.1 $(DESTDIR)/usr/share/man/man1/qwordtrans.1
|
||||
+ install -m 644 qwordtrans_man.1 $(DESTDIR)/usr/share/man/es/man1/qwordtrans.1
|
||||
|
||||
install_kde:
|
||||
-install -d $(DESTDIR)/usr/share/doc/kde/HTML/en/
|
||||
@@ -87,7 +80,8 @@
|
||||
ln -s ../../../wordtrans-doc/html.es/ $(DESTDIR)/usr/share/doc/kde/HTML/es/kwordtrans
|
||||
-install -d $(DESTDIR)/usr/share/doc/kde/HTML/fr/
|
||||
ln -s ../../../wordtrans-doc/html.fr/ $(DESTDIR)/usr/share/doc/kde/HTML/fr/kwordtrans
|
||||
-
|
||||
+ install -m 644 qwordtrans_man_en.1 $(DESTDIR)/usr/share/man/man1/kwordtrans.1
|
||||
+ install -m 644 qwordtrans_man.1 $(DESTDIR)/usr/share/man/es/man1/kwordtrans.1
|
||||
|
||||
clean:
|
||||
-rm salida/*.html
|
||||
--- wordtrans-1.1pre12/Makefile.qt 2002-11-30 17:50:53.000000000 +0100
|
||||
+++ wordtrans-1.1pre12/Makefile 2003-02-09 15:26:24.000000000 +0100
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
|
||||
-all: qwordtrans traduccion documentacion
|
||||
+all: traduccion documentacion
|
||||
|
||||
-all_kde: qwordtrans kwordtrans traduccion documentacion
|
||||
+all_kde: kwordtrans traduccion documentacion
|
||||
|
||||
wordtrans:
|
||||
cd src && make wordtrans
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#install: install_text install_qt install_kde
|
||||
|
||||
-install: install_text install_qt install_php
|
||||
+install: install_text install_php
|
||||
|
||||
install_text:
|
||||
cd src && make install_text
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
--- wordtrans-1.1pre12/src/Makefile.strip 2002-12-08 13:30:21.000000000 +0100
|
||||
+++ wordtrans-1.1pre12/src/Makefile 2002-12-08 13:32:12.000000000 +0100
|
||||
@@ -273,7 +273,7 @@
|
||||
|
||||
install_qt: qwordtrans
|
||||
-install -d $(DESTDIR)/usr/bin/
|
||||
- install -s qwordtrans $(DESTDIR)/usr/bin/
|
||||
+ install qwordtrans $(DESTDIR)/usr/bin/
|
||||
-install -d $(DESTDIR)/usr/share/applnk/Utilities/
|
||||
install -m 644 KWordtrans.desktop $(DESTDIR)/usr/share/applnk/Utilities/qwordtrans.desktop
|
||||
-install -d $(DESTDIR)/usr/share/icons
|
||||
@@ -281,7 +281,7 @@
|
||||
|
||||
install_kde: kwordtrans
|
||||
-install -d $(DESTDIR)/usr/X11R6/bin/
|
||||
- install -s kwordtrans $(DESTDIR)/usr/bin/
|
||||
+ install kwordtrans $(DESTDIR)/usr/bin/
|
||||
-install -d $(DESTDIR)/usr/share/icons/locolor/32x32/apps/
|
||||
install -m 644 pixmaps/qi2e.xpm $(DESTDIR)/usr/share/icons/locolor/32x32/apps/kwordtrans.xpm
|
||||
-install -d $(DESTDIR)/usr/share/icons/locolor/16x16/apps/
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
--- wordtrans-1.1pre13/src/Makefile.config 2003-09-26 13:58:54.000000000 +0200
|
||||
+++ wordtrans-1.1pre13/src/Makefile 2003-09-26 14:07:27.000000000 +0200
|
||||
@@ -77,7 +77,7 @@
|
||||
wordtrans: Makefile DiccionarioBase.o QTextDiccionario.o QBabyDiccionario.o \
|
||||
QDictDiccionario.o QDiccionarios.o qfunciones.o $(O_BABY) \
|
||||
salidas.o intern.o progress_nogui.o text_main.o $(QCONFIG)
|
||||
- $(COMP) -o wordtrans $(CFLAGS) $(QT_LIB) -lqt $(FRIBIDI_LINKS) \
|
||||
+ $(CCOMP) -o wordtrans $(CFLAGS) $(QT_LIB) -lqt-mt $(FRIBIDI_LINKS) \
|
||||
DiccionarioBase.o QTextDiccionario.o QBabyDiccionario.o \
|
||||
QDictDiccionario.o QDiccionarios.o $(O_BABY) \
|
||||
salidas.o qfunciones.o intern.o progress_nogui.o \
|
||||
@@ -86,7 +86,7 @@
|
||||
wordtrans_static: Makefile DiccionarioBase.o QTextDiccionario.o QBabyDiccionario.o \
|
||||
QDictDiccionario.o QDiccionarios.o qfunciones.o $(O_BABY) \
|
||||
salidas.o intern.o progress_nogui.o text_main.o $(QCONFIG)
|
||||
- $(COMP) -o wordtrans_static $(CFLAGS) $(QT_LIB) -L/usr/X11R6/lib -lX11 \
|
||||
+ $(CCOMP) -o wordtrans_static $(CFLAGS) $(QT_LIB) -L/usr/X11R6/lib -lX11 \
|
||||
-lpng -lstdc++ -lXext -lSM -lmng -ljpeg \
|
||||
DiccionarioBase.o QTextDiccionario.o QBabyDiccionario.o \
|
||||
QDictDiccionario.o QDiccionarios.o $(O_BABY) \
|
||||
@@ -94,11 +94,11 @@
|
||||
text_main.o $(QCONFIG) /usr/lib/libqt.a
|
||||
|
||||
qwordtrans: Makefile $(QOBJS) main.o $(QCONFIG) $(O_TEMAS)
|
||||
- $(COMP) -o qwordtrans $(CFLAGS) $(QT_LIB) -lqt $(FRIBIDI_LINKS) \
|
||||
+ $(COMP) -o qwordtrans $(CFLAGS) $(QT_LIB) -lqt-mt $(FRIBIDI_LINKS) \
|
||||
$(QOBJS) main.o $(QCONFIG) $(O_TEMAS) $(FRIBIDI_STATIC)
|
||||
|
||||
kwordtrans: Makefile $(KOBJS) kmain.o $(QCONFIG)
|
||||
- $(COMP) -o kwordtrans $(CFLAGS) $(QT_LIB) $(KDE_LIB) -lqt -lkdecore \
|
||||
+ $(COMP) -o kwordtrans $(CFLAGS) $(QT_LIB) $(KDE_LIB) -lqt-mt -lkdecore \
|
||||
$(KDELINK) $(FRIBIDI_LINKS) \
|
||||
$(KOBJS) kmain.o $(QCONFIG) $(FRIBIDI_STATIC)
|
||||
|
||||
@@ -106,12 +106,12 @@
|
||||
# idp2text
|
||||
# Conversor del formato IDP al del i2e
|
||||
idp2text: Makefile libidp.o idp2text.o
|
||||
- $(COMP) -o idp2text $(CFLAGS) -lstdc++ libidp.o idp2text.o
|
||||
+ $(CCOMP) -o idp2text $(CFLAGS) -lstdc++ libidp.o idp2text.o
|
||||
|
||||
|
||||
#Static
|
||||
qwordtrans_static: Makefile $(QOBJS) main.o $(QCONFIG)
|
||||
- $(COMP) -o qwordtrans $(CFLAGS) $(QT_LIB) -L/usr/X11R6/lib -lX11 \
|
||||
+ $(CCOMP) -o qwordtrans $(CFLAGS) $(QT_LIB) -L/usr/X11R6/lib -lX11 \
|
||||
-lpng -lstdc++ -lXext \
|
||||
$(QOBJS) main.o $(QCONFIG) /usr/lib/libqt.a
|
||||
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
--- wordtrans-1.1pre13/src/qconfig/appconf.h.gcc34 2000-10-13 16:54:38.000000000 +0200
|
||||
+++ wordtrans-1.1pre13/src/qconfig/appconf.h 2004-03-04 17:23:24.720064228 +0100
|
||||
@@ -106,7 +106,7 @@
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
-#include <iostream.h>
|
||||
+#include <iostream>
|
||||
#include <stdlib.h>
|
||||
|
||||
// make sure we have a Bool type
|
||||
@@ -475,7 +475,7 @@
|
||||
@param input stream to read from
|
||||
*/
|
||||
|
||||
- FileConfig(istream *iStream);
|
||||
+ FileConfig(std::istream *iStream);
|
||||
/**
|
||||
Another constructor, creating an empty object. For use with the
|
||||
readFile() method.
|
||||
@@ -520,7 +520,7 @@
|
||||
///
|
||||
Bool flush(Bool bCurrentOnly = FALSE);
|
||||
/// writes changes to ostream, returns TRUE on success
|
||||
- Bool flush(ostream *oStream, Bool /* bCurrentOnly */ = FALSE);
|
||||
+ Bool flush(std::ostream *oStream, Bool /* bCurrentOnly */ = FALSE);
|
||||
|
||||
/// parses one line of config file
|
||||
Bool parseLine(const char *psz);
|
||||
@@ -580,7 +580,6 @@
|
||||
void SetNext(ConfigEntry *pNext) { m_pNext = pNext; }
|
||||
};
|
||||
|
||||
-protected:
|
||||
class ConfigGroup
|
||||
{
|
||||
private:
|
||||
@@ -633,9 +632,10 @@
|
||||
void SetComment(char *szComment);
|
||||
|
||||
// write dirty data
|
||||
- Bool flush(ostream *ostr);
|
||||
+ Bool flush(std::ostream *ostr);
|
||||
};
|
||||
|
||||
+protected:
|
||||
// delete current group if has no more entries/subgroups
|
||||
// NB: changes m_pCurGroup is returns TRUE (i.e. the group was deleted)
|
||||
Bool DeleteIfEmpty();
|
||||
@@ -646,7 +646,7 @@
|
||||
// create all groups found in the strem under group pRootGroup or
|
||||
// m_pRootGroup if parameter is NULL
|
||||
// returns TRUE on success
|
||||
- Bool readStream(istream *istr, ConfigGroup *pRootGroup = NULL);
|
||||
+ Bool readStream(std::istream *istr, ConfigGroup *pRootGroup = NULL);
|
||||
|
||||
// construct global and local filenames based on the base file name
|
||||
// (which nevertheless may contain "/")
|
||||
--- wordtrans-1.1pre13/src/qconfig/SimpleConfig.cpp.gcc34 2004-03-04 17:30:44.919490393 +0100
|
||||
+++ wordtrans-1.1pre13/src/qconfig/SimpleConfig.cpp 2004-03-04 17:30:19.230275336 +0100
|
||||
@@ -85,7 +85,7 @@
|
||||
|
||||
bool SimpleConfig::save(const char *fileName) {
|
||||
if ( Salidas::getShowDebugMessages() )
|
||||
- cout << "Saving '" << fileName << "'" << endl;
|
||||
+ std::cout << "Saving '" << fileName << "'" << std::endl;
|
||||
|
||||
ofstream o(fileName);
|
||||
return flush(&o);
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
--- wordtrans-1.1pre13/src/main.cpp.orig 2007-02-02 18:09:28.000000000 +0100
|
||||
+++ wordtrans-1.1pre13/src/main.cpp 2007-02-02 19:35:04.000000000 +0100
|
||||
@@ -104,11 +104,11 @@
|
||||
KCmdLineArgs::init( argc, argv, &info );
|
||||
|
||||
KCmdLineArgs::addCmdLineOptions( options );
|
||||
- KCmdLineArgs *args=KCmdLineArgs::parsedArgs();
|
||||
|
||||
//KUniqueApplication
|
||||
KUniqueApplication::addCmdLineOptions();
|
||||
-
|
||||
+ KCmdLineArgs *args=KCmdLineArgs::parsedArgs();
|
||||
+
|
||||
if (!KUniqueApplication::start()) {
|
||||
puts("kwordtrans is already running!");
|
||||
exit(0);
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
--- wordtrans-1.1pre13/src/kdeui/Makefile.kde3 2001-11-03 19:18:19.000000000 +0100
|
||||
+++ wordtrans-1.1pre13/src/kdeui/Makefile 2003-09-26 14:26:48.000000000 +0200
|
||||
@@ -26,7 +26,7 @@
|
||||
$(COMP) -o prueba $(CFLAGS) $(QT_LIB) -lqt $(OBJS)
|
||||
|
||||
prueba2: Makefile $(OBJS)
|
||||
- $(COMP) -o prueba $(CFLAGS) $(QT_LIB) -lqt -lkdecore -lkdeui -lkfile $(OBJS)
|
||||
+ $(COMP) -o prueba $(CFLAGS) $(QT_LIB) -lqt -lkdecore -lkdeui -lkio $(OBJS)
|
||||
|
||||
|
||||
clean:
|
||||
--- wordtrans-1.1pre13/Makefile.dirs.kde3 2003-09-26 14:43:20.000000000 +0200
|
||||
+++ wordtrans-1.1pre13/Makefile.dirs 2003-09-26 14:43:28.000000000 +0200
|
||||
@@ -4,7 +4,7 @@
|
||||
# If you want to compile kwordtrans for KDE 3 then uncomment the
|
||||
# following line. This is needed because kde developers like a lot to
|
||||
# introduce incompatibilities between versions...
|
||||
-#KDE3=1
|
||||
+KDE3=1
|
||||
|
||||
# If you have set the QTDIR environment variable then
|
||||
# you don't need to change anything here.
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
--- wordtrans-1.1pre13/src/QApplicationWindow.cpp 2002-09-04 00:02:00.000000000 +0200
|
||||
+++ wordtrans-1.1pre13.new/src/QApplicationWindow.cpp 2003-09-26 14:14:21.000000000 +0200
|
||||
@@ -141,25 +141,9 @@
|
||||
|
||||
if (main_window) {
|
||||
dock=new MiSystemTray( this, "dock" );
|
||||
- //Para salir realmente del programa si el usuario seleccionar la
|
||||
- //opción de salir en el menú contextual.
|
||||
- //kapp->setMainWidget( dock );
|
||||
dock->setPixmap( icono_docked() );
|
||||
QToolTip::add( dock, "kwordtrans" );
|
||||
|
||||
- //Arreglamos la última opción del menú
|
||||
- //Ojo: es una chapuza, habrá que pensar en algo mejor...
|
||||
- /*
|
||||
- debug( "Items: %d", dock->menu()->count() );
|
||||
- //Parece que la opción de salir no se crea hasta que se muestra
|
||||
- //el widget.
|
||||
- dock->show();
|
||||
- debug( "Items: %d", dock->menu()->count() );
|
||||
- dock->hide();
|
||||
-
|
||||
- dock->menu()->removeItemAt( dock->menu()->count()-1 );
|
||||
- dock->menu()->insertItem( iconSalir, _("&Quit"), kapp, SLOT( quit() ) );
|
||||
- */
|
||||
|
||||
dock_clip_item= dock->menu()->insertItem( _("&Watch clipboard"), this, SLOT( cambiaClipboardMenu() ), 0, -1, 1 );
|
||||
#ifdef OPCION_AUTOPOPUP
|
||||
@@ -620,7 +604,7 @@
|
||||
connect( Setup::dialog(), SIGNAL( okClicked() ),
|
||||
this, SLOT( aplicaPreferencias() ) );
|
||||
|
||||
- cambiaTitulo( "","","",0); //Título por defecto
|
||||
+ cambiaTitulo( "","","",0);
|
||||
setStatusText( _("Ready") );
|
||||
|
||||
initConfig();
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
--- wordtrans-1.1pre13/src/acercade.cpp.rh 2003-02-02 17:53:29.000000000 +0100
|
||||
+++ wordtrans-1.1pre13/src/acercade.cpp 2003-10-14 23:39:29.000000000 +0200
|
||||
@@ -25,7 +25,10 @@
|
||||
#include <qpixmap.h>
|
||||
#include <qpalette.h> //QT3
|
||||
|
||||
+#ifdef DEBIAN
|
||||
#include "pixmaps/debian_powered.xpm"
|
||||
+#endif
|
||||
+
|
||||
#include "logo.cpp"
|
||||
#include "intern.h"
|
||||
#include "version.h"
|
||||
@@ -56,9 +59,11 @@
|
||||
texto->setPaper( QBrush(QApplication::palette().active().background()) );
|
||||
#endif
|
||||
|
||||
+#ifdef DEBIAN
|
||||
logo_debian->setPixmap( QPixmap(debian_xpm) );
|
||||
//QToolTip::add(logo_debian,
|
||||
// "This application has been made with the power of a Debian Potato");
|
||||
+#endif
|
||||
|
||||
setDefaultText();
|
||||
|
||||
--- wordtrans-1.1pre13/src/acercadeData.cpp.rh 2001-11-27 23:45:41.000000000 +0100
|
||||
+++ wordtrans-1.1pre13/src/acercadeData.cpp 2003-10-14 23:35:21.000000000 +0200
|
||||
@@ -66,11 +66,14 @@
|
||||
Layout6->setSpacing( 6 );
|
||||
Layout6->setMargin( 0 );
|
||||
|
||||
+#ifdef DEBIAN
|
||||
logo_debian = new QLabel( this, "logo_debian" );
|
||||
logo_debian->setMinimumSize( QSize( 92, 28 ) );
|
||||
logo_debian->setMaximumSize( QSize( 92, 28 ) );
|
||||
logo_debian->setText( _( "" ) );
|
||||
Layout6->addWidget( logo_debian );
|
||||
+#endif
|
||||
+
|
||||
QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
|
||||
Layout6->addItem( spacer_3 );
|
||||
Layout7->addLayout( Layout6 );
|
||||
--- wordtrans-1.1pre13/src/Makefile.rh 2003-02-02 17:10:16.000000000 +0100
|
||||
+++ wordtrans-1.1pre13/src/Makefile 2003-10-14 23:42:55.000000000 +0200
|
||||
@@ -170,6 +170,8 @@
|
||||
cp QApplicationWindow.h KApplicationWindow.h
|
||||
patch -p0 KApplicationWindow.h < KApplicationWindow.parche
|
||||
|
||||
+ -install -d $(DESTDIR)/usr/share/icons
|
||||
+ install -m 644 pixmaps/qi2e.xpm $(DESTDIR)/usr/share/icons/kwordtrans.xpm
|
||||
|
||||
QSimpleTextBrowser.o: QSimpleTextBrowser.h QSimpleTextBrowser.cpp \
|
||||
QSimpleTextBrowser.moc.cpp
|
||||
@@ -276,6 +278,10 @@
|
||||
install_qt: qwordtrans
|
||||
-install -d $(DESTDIR)/usr/bin/
|
||||
install -s qwordtrans $(DESTDIR)/usr/bin/
|
||||
+ -install -d $(DESTDIR)/usr/share/applnk/Utilities/
|
||||
+ install -m 644 KWordtrans.desktop $(DESTDIR)/usr/share/applnk/Utilities/qwordtrans.desktop
|
||||
+ -install -d $(DESTDIR)/usr/share/icons
|
||||
+ install -m 644 pixmaps/qi2e.xpm $(DESTDIR)/usr/share/icons/qwordtrans.xpm
|
||||
|
||||
install_kde: kwordtrans
|
||||
-install -d $(DESTDIR)/usr/X11R6/bin/
|
||||
@@ -293,6 +299,8 @@
|
||||
-install -d $(DESTDIR)/usr/share/applnk/Utilities/
|
||||
install -m 644 KWordtrans.desktop $(DESTDIR)/usr/share/applnk/Utilities/kwordtrans.desktop
|
||||
|
||||
+ -install -d $(DESTDIR)/usr/share/icons
|
||||
+ install -m 644 pixmaps/qi2e.xpm $(DESTDIR)/usr/share/icons/kwordtrans.xpm
|
||||
|
||||
clean:
|
||||
-rm *.o
|
||||
--- wordtrans-1.1pre13/Makefile.dirs.rh 2003-02-02 18:02:24.000000000 +0100
|
||||
+++ wordtrans-1.1pre13/Makefile.dirs 2003-10-14 23:35:21.000000000 +0200
|
||||
@@ -41,7 +41,7 @@
|
||||
# Directory where kapp.h (or kapplication.h) is:
|
||||
KDE_INC=-I/usr/include/kde
|
||||
# Directory where libkdeui.so is:
|
||||
-KDE_LIB=-L/usr/lib
|
||||
+KDE_LIB=-L$(libdir)
|
||||
|
||||
# Fribidi
|
||||
# If you don't want to use fribidi comment the following line
|
||||
@@ -50,7 +50,7 @@
|
||||
ifdef USE_FRIBIDI_LIB
|
||||
FLAGS_CONF+=-DUSE_FRIBIDI
|
||||
FRIBIDI_INC=-I/usr/include/fribidi
|
||||
-FRIBIDI_LIB=-L/usr/lib
|
||||
-#FRIBIDI_LINKS=-lfribidi
|
||||
-FRIBIDI_STATIC= /usr/lib/libfribidi.a
|
||||
+FRIBIDI_LIB=-L$(libdir)
|
||||
+FRIBIDI_LINKS=-lfribidi
|
||||
+#FRIBIDI_STATIC= $(libdir)/libfribidi.a
|
||||
endif
|
||||
--- wordtrans-1.1pre13/Makefile.common.rh 2002-09-08 23:56:15.000000000 +0200
|
||||
+++ wordtrans-1.1pre13/Makefile.common 2003-10-14 23:35:21.000000000 +0200
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
-COMP=cc
|
||||
-CCOMP=c++
|
||||
+COMP=gcc
|
||||
+CCOMP=g++
|
||||
|
||||
# GCC 3:
|
||||
#COMP=gcc-3.0
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
--- wordtrans-1.1pre13/src/KWordtrans.desktop.orig 2003-10-15 00:00:30.000000000 +0200
|
||||
+++ wordtrans-1.1pre13/src/KWordtrans.desktop 2003-10-14 23:58:33.000000000 +0200
|
||||
@@ -1,10 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Name=Word Translator
|
||||
Name[es]=Traductor de palabras
|
||||
-Name[de]=Welt-Wörterbuch
|
||||
+Name[de]=Welt-Wörterbuch
|
||||
Comment=A Word Translator which supports some dictionaries
|
||||
Comment[es]=Un traductor de palabras con soporte para varios diccionarios
|
||||
-Comment[de]=Ein Wörterbuch mit mehr Sprachen-Unterstützung
|
||||
+Comment[de]=Ein Wörterbuch mit mehr Sprachen-Untersttzung
|
||||
Exec=kwordtrans
|
||||
Icon=kwordtrans
|
||||
DocPath=kwordtrans/index.html
|
||||
|
|
@ -1 +0,0 @@
|
|||
Alias /wordtrans /var/www/wordtrans
|
||||
455
wordtrans.spec
455
wordtrans.spec
|
|
@ -1,455 +0,0 @@
|
|||
%define build_kde 1
|
||||
%define build_qt 0
|
||||
|
||||
%define qt_version 3.3.7
|
||||
%define kde_version 3.5.6
|
||||
%define iversion 1.1pre13
|
||||
|
||||
Name: wordtrans
|
||||
Group: Applications/Productivity
|
||||
URL: http://wordtrans.sourceforge.net
|
||||
Summary: Multi Language Word Translator for Linux
|
||||
Version: 1.1
|
||||
Release: 0.2.pre13%{?dist}
|
||||
Epoch: 1
|
||||
License: GPL
|
||||
Source: http://wordtrans.sourceforge.net/%{name}_%{iversion}.tar.gz
|
||||
Source1: ger-eng.txt
|
||||
Source2: http://www.aracnet.com/~tyler/IDP/files/French.txt
|
||||
Source3: http://www.aracnet.com/~tyler/IDP/files/Italian.txt
|
||||
Source4: http://www.aracnet.com/~tyler/IDP/files/Latin.txt
|
||||
Source5: http://www.aracnet.com/~tyler/IDP/files/Portuguese.txt
|
||||
Source6: http://www.aracnet.com/~tyler/IDP/files/Spanish.txt
|
||||
Source7: QWordtrans.desktop
|
||||
Source8: wordtrans.conf
|
||||
Source9: de-en.conf
|
||||
Source10: dict-org.conf
|
||||
Source11: en-es.conf
|
||||
Source12: en-fr.conf
|
||||
Source13: en-it.conf
|
||||
Source14: en-pt.conf
|
||||
|
||||
Patch: wordtrans-1.1pre13-rh.patch
|
||||
Patch1: wordtrans-1.1pre13-kde3.patch
|
||||
Patch2: wordtrans-1.1pre12-strip.patch
|
||||
Patch3: wordtrans-1.1pre13-config.patch
|
||||
Patch5: wordtrans-1.1pre12-qt.patch
|
||||
Patch6: wordtrans-1.1pre12-grep.patch
|
||||
Patch7: wordtrans-1.1pre12-browser.patch
|
||||
Patch8: wordtrans-1.1pre13-remove-non-ascii-chars.patch
|
||||
Patch9: wordtrans-1.1pre13-utf8.patch
|
||||
Patch10: wordtrans-1.1pre13-gcc34.patch
|
||||
Patch11: wordtrans-1.1pre13-kcmdlineargs.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires:desktop-file-utils
|
||||
|
||||
%if %{build_kde}
|
||||
BuildRequires: kdelibs-devel >= %{kde_version}
|
||||
%endif
|
||||
|
||||
BuildRequires: qt-devel >= %{qt_version}
|
||||
BuildRequires: openjade
|
||||
BuildRequires: linuxdoc-tools
|
||||
BuildRequires: fribidi-devel
|
||||
BuildRequires: gettext-devel
|
||||
|
||||
%description
|
||||
Wordtrans is a front-end for several dictionaries. It supports
|
||||
some dictionaries in plain text, dict servers and Babylon
|
||||
Translator's dictionaries.
|
||||
|
||||
%package kde
|
||||
Summary: KDE front-end for wordtrans
|
||||
Group: Applications/Productivity
|
||||
Requires: %{name} = 1:%{version}-%{release}
|
||||
|
||||
%description kde
|
||||
Wordtrans is a front-end for several dictionaries. It supports
|
||||
some dictionaries in plain text, dict servers and Babylon
|
||||
Translator's dictionaries.
|
||||
|
||||
This package contains a KDE front-end for wordtrans.
|
||||
|
||||
%package qt
|
||||
Summary: Qt front-end for wordtrans
|
||||
Group: Applications/Productivity
|
||||
Requires: %{name} = 1:%{version}-%{release}
|
||||
|
||||
%description qt
|
||||
Wordtrans is a front-end for several dictionaries. It supports
|
||||
some dictionaries in plain text, dict servers and Babylon
|
||||
Translator's dictionaries.
|
||||
|
||||
This package contains a Qt front-end for wordtrans.
|
||||
|
||||
%package web
|
||||
Summary: Web front-end for wordtrans
|
||||
Group: Applications/Productivity
|
||||
Requires: %{name} = 1:%{version}-%{release}
|
||||
Requires: php >= 4.2.2-10
|
||||
Requires: webserver
|
||||
|
||||
%description web
|
||||
Wordtrans is a front-end for several dictionaries. It supports
|
||||
some dictionaries in plain text, dict servers and Babylon
|
||||
Translator's dictionaries.
|
||||
|
||||
This package contains a Web front-end for wordtrans.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{iversion}
|
||||
%patch -p1 -b .rh
|
||||
%patch1 -p1 -b .kde3
|
||||
%patch2 -p1 -b .strip
|
||||
%patch3 -p1 -b .rhconfig
|
||||
%if !%{build_qt}
|
||||
%patch5 -p1 -b .qt
|
||||
%endif
|
||||
%patch6 -p1 -b .grep
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1 -b .utf8
|
||||
%patch10 -p1 -b .gcc34
|
||||
%patch11 -p1 -b .kcmdlineargs
|
||||
|
||||
%build
|
||||
QTDIR="" && source /etc/profile.d/qt.sh
|
||||
make QT_INC="-I$QTDIR/include" QT_LIB="-L$QTDIR/lib" \
|
||||
MOC="$QTDIR/bin/moc" CFLAGS="$RPM_OPT_FLAGS" all %{?_smp_mflags}
|
||||
|
||||
%if %{build_kde}
|
||||
make QT_INC="-I$QTDIR/include" QT_LIB="-L$QTDIR/lib" COMP="g++" KDE_LIB="-L%{_libdir}" \
|
||||
MOC="$QTDIR/bin/moc" CFLAGS="$RPM_OPT_FLAGS" kwordtrans %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
%if %{build_qt}
|
||||
make QT_INC="-I$QTDIR/include" QT_LIB="-L$QTDIR/lib" \
|
||||
MOC="$QTDIR/bin/moc" CFLAGS="$RPM_OPT_FLAGS" qwordtrans %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
pushd docs
|
||||
for i in man.1 qwordtrans_man.1 ; do
|
||||
iconv -f iso8859-3 -t utf-8 -o ${i}.tmp ${i} && mv ${i}.tmp ${i}
|
||||
done
|
||||
popd
|
||||
|
||||
%if %{build_kde}
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_kde
|
||||
make -C docs DESTDIR=$RPM_BUILD_ROOT install_kde
|
||||
%endif
|
||||
|
||||
%if %{build_qt}
|
||||
cp %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/applnk/Utilities/qwordtrans.desktop
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_qt
|
||||
make -C docs DESTDIR=$RPM_BUILD_ROOT install_qt
|
||||
%else
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/wordtrans
|
||||
rm -rf $RPM_BUILD_ROOT%{_docdir}/wordtrans-qt
|
||||
%endif
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d
|
||||
install -m 0644 %{SOURCE8} $RPM_BUILD_ROOT/etc/httpd/conf.d
|
||||
|
||||
rm -rf $RPM_BUILD_ROOT%{_docdir}/kde
|
||||
install -d $RPM_BUILD_ROOT%{_docdir}/HTML/en
|
||||
install -d $RPM_BUILD_ROOT%{_docdir}/HTML/es
|
||||
install -d $RPM_BUILD_ROOT%{_docdir}/HTML/fr
|
||||
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/wordtrans/de-en.dict
|
||||
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/wordtrans/en-fr.txt
|
||||
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/wordtrans/en-it.txt
|
||||
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/wordtrans/en-la.txt
|
||||
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/wordtrans/en-pt.txt
|
||||
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/wordtrans/en-es.txt
|
||||
|
||||
# Remove the sample 50 word dictionary (useless), throw in some good ones
|
||||
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/wordtrans/d2e.conf \
|
||||
$RPM_BUILD_ROOT%{_datadir}/wordtrans/de-es.dict \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/wordtrans/i2e.conf
|
||||
|
||||
cp %{SOURCE9} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/wordtrans/
|
||||
|
||||
pushd $RPM_BUILD_ROOT%{_docdir}/HTML/en/
|
||||
ln -s ../../wordtrans-doc/html.en kwordtrans
|
||||
popd
|
||||
|
||||
pushd $RPM_BUILD_ROOT%{_docdir}/HTML/es/
|
||||
ln -s ../../wordtrans-doc/html.es kwordtrans
|
||||
popd
|
||||
|
||||
pushd $RPM_BUILD_ROOT%{_docdir}/HTML/fr/
|
||||
ln -s ../../wordtrans-doc/html.fr kwordtrans
|
||||
popd
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_docdir}/wordtrans-doc/html.en/html.en \
|
||||
$RPM_BUILD_ROOT%{_docdir}/wordtrans-doc/html.en/*.png \
|
||||
$RPM_BUILD_ROOT%{_docdir}/wordtrans-doc/html.es/html.es \
|
||||
$RPM_BUILD_ROOT%{_docdir}/wordtrans-doc/html.fr/html.fr \
|
||||
$RPM_BUILD_ROOT%{_docdir}/wordtrans-doc/html.fr/*.png
|
||||
|
||||
cp -f $RPM_BUILD_ROOT%{_docdir}/wordtrans-doc/html.es/*.png \
|
||||
$RPM_BUILD_ROOT%{_docdir}/wordtrans-doc/html.en
|
||||
cp -f $RPM_BUILD_ROOT%{_docdir}/wordtrans-doc/html.es/*.png \
|
||||
$RPM_BUILD_ROOT%{_docdir}/wordtrans-doc/html.fr
|
||||
|
||||
rm -rf $RPM_BUILD_ROOT%{_docdir}/wordtrans-web \
|
||||
$RPM_BUILD_ROOT/etc/wordtrans/babylon* \
|
||||
$RPM_BUILD_ROOT/etc/wordtrans/de-en.conf.rh \
|
||||
$RPM_BUILD_ROOT/etc/wordtrans/dictd.dconf
|
||||
|
||||
# use desktop-file-install
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
||||
%if %{build_kde} == 1
|
||||
desktop-file-install \
|
||||
--vendor kde \
|
||||
--delete-original \
|
||||
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
||||
--add-category "Application;Utility;X-Red-Hat-Extra" \
|
||||
$RPM_BUILD_ROOT%{_datadir}/applnk/Utilities/kwordtrans.desktop
|
||||
%endif
|
||||
|
||||
%if %{build_qt} == 1
|
||||
desktop-file-install \
|
||||
--vendor qt \
|
||||
--delete-original \
|
||||
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
||||
--add-category "Application;Utility;X-Red-Hat-Extra" \
|
||||
$RPM_BUILD_ROOT%{_datadir}/applnk/Utilities/qwordtrans.desktop
|
||||
%endif
|
||||
|
||||
rm -frv $RPM_BUILD_ROOT%{_datadir}/applnk
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir /etc/wordtrans
|
||||
%config(noreplace) /etc/wordtrans/*.conf
|
||||
%config(noreplace) /etc/wordtrans/dict-org.dconf
|
||||
%if %{build_qt}
|
||||
%{_bindir}/wordtrans
|
||||
%endif
|
||||
%{_datadir}/wordtrans
|
||||
%{_mandir}/man1/wordtrans.1*
|
||||
%{_docdir}/wordtrans-doc
|
||||
%{_docdir}/wordtrans-data
|
||||
%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/wordtrans.mo
|
||||
%lang(es) %{_datadir}/locale/es/LC_MESSAGES/wordtrans.mo
|
||||
%lang(es) %{_mandir}/es/man1/wordtrans.1*
|
||||
|
||||
%if %{build_qt}
|
||||
%files qt
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/qwordtrans
|
||||
%{_datadir}/applications/*qwordtrans.desktop
|
||||
%{_datadir}/icons/qwordtrans.*
|
||||
%lang(es) %{_mandir}/es/man1/qwordtrans.1*
|
||||
%{_mandir}/man1/qwordtrans.1*
|
||||
%doc %{_docdir}/wordtrans-qt
|
||||
%endif
|
||||
|
||||
%if %{build_kde}
|
||||
%files kde
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/kwordtrans
|
||||
%{_datadir}/applications/*kwordtrans.desktop
|
||||
%{_datadir}/icons/*/*/apps/*
|
||||
%{_datadir}/icons/kwordtrans.*
|
||||
%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/kwordtrans.mo
|
||||
%lang(es) %{_datadir}/locale/es/LC_MESSAGES/kwordtrans.mo
|
||||
%lang(es) %{_mandir}/es/man1/kwordtrans.1*
|
||||
%{_mandir}/man1/kwordtrans.1*
|
||||
%doc %{_docdir}/HTML/en/kwordtrans
|
||||
%doc %{_docdir}/HTML/fr/kwordtrans
|
||||
%{_docdir}/wordtrans-kde
|
||||
%lang(es) %doc %{_docdir}/HTML/es/kwordtrans
|
||||
%endif
|
||||
|
||||
%files web
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) /etc/httpd/conf.d/wordtrans.conf
|
||||
/var/www/wordtrans
|
||||
|
||||
%changelog
|
||||
* Wed Mar 28 2007 Than Ngo <than@redhat.com> - 1:1.1-0.2.pre13.fc7
|
||||
- apply patch to fix crash in kwordtrans
|
||||
|
||||
* Thu Mar 15 2007 Than Ngo <than@redhat.com> - 1:1.1-0.1.pre13.fc7
|
||||
- introduce Epoch to fix Versioning mess
|
||||
- use preferred BuildRoot
|
||||
- use of cat inside of specfile is replaced by SourceX
|
||||
- s/BuildPreReq:/BuildRequires:
|
||||
|
||||
* Mon Jul 17 2006 Than Ngo <than@redhat.com> 1.1pre13-14
|
||||
- rebuild
|
||||
|
||||
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.1pre13-13.1
|
||||
- rebuild
|
||||
|
||||
* Wed Jun 07 2006 Than Ngo <than@redhat.com> 1.1pre13-13
|
||||
- add BR on gettext-devel #130581
|
||||
|
||||
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.1pre13-12.2.1
|
||||
- bump again for double-long bug on ppc(64)
|
||||
|
||||
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.1pre13-12.2
|
||||
- rebuilt for new gcc4.1 snapshot and glibc changes
|
||||
|
||||
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Tue Oct 25 2005 Than Ngo <than@redhat.com> 1.1pre13-12
|
||||
- rebuilt
|
||||
|
||||
* Thu Aug 04 2005 Karsten Hopp <karsten@redhat.de> 1.1pre13-11
|
||||
- fix build on a rawhide system
|
||||
|
||||
* Sat Mar 05 2005 Than Ngo <than@redhat.com> 1.1pre13-10
|
||||
- rebuilt
|
||||
|
||||
* Tue Nov 16 2004 Jindrich Novy <jnovy@redhat.com> 1.1pre13-9
|
||||
- avoid to install man pages in old encoding #139341
|
||||
|
||||
* Mon Oct 18 2004 Than Ngo <than@redhat.com> 1.1pre13-8
|
||||
- fix recursive directory link #136098
|
||||
|
||||
* Sun Jun 20 2004 Than Ngo <than@redhat.com> 1.1pre13-7
|
||||
- fix build problem
|
||||
|
||||
* Sun Jun 20 2004 Than Ngo <than@redhat.com> 1.1pre13-6
|
||||
- rebuilt
|
||||
|
||||
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Thu Mar 04 2004 Than Ngo <than@redhat.com> 1.1pre13-4
|
||||
- fixed gcc 3.4 build problem
|
||||
|
||||
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Tue Oct 14 2003 Than Ngo <than@redhat.com> 1.1pre13-2
|
||||
- enable fribidi
|
||||
- fixes utf8 issue
|
||||
|
||||
* Fri Sep 26 2003 Harald Hoyer <harald@redhat.de> 1.1pre13-1
|
||||
- 1.1pre13
|
||||
|
||||
* Wed Jun 25 2003 Than Ngo <than@redhat.com> 1.1pr12-12
|
||||
- rebuilt
|
||||
|
||||
* Tue Jun 17 2003 Than Ngo <than@redhat.com> 1.1pr12-11
|
||||
- rebuilt
|
||||
|
||||
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Wed May 28 2003 Than Ngo <than@redhat.com> 1.1pr12-9
|
||||
- bug #90258
|
||||
|
||||
* Wed Apr 30 2003 Than Ngo <than@redhat.com> 1.1pr12-8
|
||||
- add openjade in buildprereq
|
||||
|
||||
* Wed Feb 12 2003 Than Ngo <than@redhat.com> 1.1pr12-7
|
||||
- fix dangling symlink, #84022
|
||||
|
||||
* Mon Feb 10 2003 Than Ngo <than@redhat.com> 1.1pr12-6
|
||||
- obsolete qt frontend
|
||||
- set correct browser
|
||||
- add some missing html files
|
||||
|
||||
* Sun Feb 9 2003 Than Ngo <than@redhat.com> 1.1pr12-5
|
||||
- remove duplicate frontend
|
||||
- ignore comment in dictionary
|
||||
- add missing config file english-german
|
||||
|
||||
* Tue Feb 4 2003 Than Ngo <than@redhat.com> 1.1pr12-4
|
||||
- add description for Qt frontend, #81870
|
||||
|
||||
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Tue Dec 10 2002 Than Ngo <than@redhat.com> 1.1pr12-2
|
||||
- add Alias /wordtrans /var/www/wordtrans
|
||||
|
||||
* Sun Dec 8 2002 Than Ngo <than@redhat.com> 1.1pr12-1
|
||||
- 1.1pr12
|
||||
- remove some patch files, which are in new upstream
|
||||
- adjust some patch files
|
||||
|
||||
* Wed Dec 4 2002 Than Ngo <than@redhat.com> 1.1pr9-11
|
||||
- use new PHP script style (bug #73513)
|
||||
- wordtrans-web requires php >= 4.2.2-10, webserver
|
||||
- clean up specfile
|
||||
- remove unneeded files
|
||||
- lib64 issue
|
||||
- add Buildprereq: qt-devel
|
||||
|
||||
* Sat Aug 31 2002 Than Ngo <than@redhat.com> 1.1pr9-10
|
||||
- Added a security fix from Guardent
|
||||
|
||||
* Mon Aug 26 2002 Than Ngo <than@redhat.com> 1.1pr9-9
|
||||
- fixed a typo bug (bug #71663)
|
||||
|
||||
* Thu Aug 22 2002 Than Ngo <than@redhat.com> 1.1pr9-8
|
||||
- Fixed Makefile issue
|
||||
|
||||
* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt with gcc-3.2 (we hope)
|
||||
|
||||
* Tue Jul 23 2002 Tim Powers <timp@redhat.com> 1.1pr9-6
|
||||
- build using gcc-3.2-0.1
|
||||
|
||||
* Tue Jul 09 2002 Than Ngo <than@redhat.com> 1.1pr9-5
|
||||
- use desktop-file-install
|
||||
|
||||
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
||||
- automated rebuild
|
||||
|
||||
* Thu Jun 20 2002 Than Ngo <than@redhat.com> 1.1pr9-3
|
||||
- Don't forcibly strip binaries
|
||||
|
||||
* Fri Jun 07 2002 Than Ngo <than@redhat.com> 1.1pre9-2
|
||||
- fixed double entries (bug #65175)
|
||||
|
||||
* Thu Apr 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1pre8-9
|
||||
- Rebuild with correct (threaded) Qt
|
||||
- Fix up default settings
|
||||
|
||||
* Tue Apr 9 2002 Than Ngo <than@redhat.com> 1.1pre8-8
|
||||
- remove duplicate file (bug #62756)
|
||||
|
||||
* Tue Apr 2 2002 Than Ngo <than@redhat.com> 1.1pre8-7
|
||||
- fix Dangling symlinks (#62557)
|
||||
|
||||
* Sun Mar 24 2002 Than Ngo <than@redhat.com> 1.1pre8-6
|
||||
- fix bug # 61515
|
||||
|
||||
* Tue Mar 6 2002 Than Ngo <than@redhat.com> 1.1pre8-5
|
||||
- add wordtrans-1.1pre8-kde3.patch from bero
|
||||
- fix a cosmetic bug
|
||||
|
||||
* Tue Feb 26 2002 Than Ngo <than@redhat.com> 1.1pre8-4
|
||||
- rebuild
|
||||
|
||||
* Fri Jan 18 2002 Than Ngo <than@redhat.com> 1.1pre8-3
|
||||
- rebuild against qt 3
|
||||
|
||||
* Wed Jan 9 2002 Than Ngo <than@redhat.com> 1.1pre8-1
|
||||
- update to 1.1pre8
|
||||
- build against qt 3
|
||||
- clean up patch file for 1.1pre8
|
||||
|
||||
* Mon Nov 27 2001 Than Ngo <than@redhat.com> 1.1pre7-1
|
||||
- update to 1.1pre7
|
||||
- clean up patch file for 1.1pre7
|
||||
|
||||
* Fri Nov 09 2001 Than Ngo <than@redhat.com> 1.0.2pre4-1
|
||||
- initial rpm for RHL 8.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue