[openteacher] Initial import openteacher 2.3 #861591

Eduardo Javier Echeverria Alvarado echevemaster at fedoraproject.org
Sat Oct 6 04:25:44 UTC 2012


commit 5346c8f1ca0270a05ed45341cb1d6eef33646c74
Author: Eduardo Echeverria <echevemaster at gmail.com>
Date:   Fri Oct 5 23:54:52 2012 -0430

    Initial import openteacher 2.3 #861591

 .gitignore                                         |    1 +
 ...teacher-fix-setup-version_and_fix_desktop.patch |   28 +++++
 openteacher.1                                      |   67 ++++++++++
 openteacher.spec                                   |  127 ++++++++++++++++++++
 sources                                            |    1 +
 5 files changed, 224 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..85613cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/openteacher-2.3-source.tar.gz
diff --git a/openteacher-fix-setup-version_and_fix_desktop.patch b/openteacher-fix-setup-version_and_fix_desktop.patch
new file mode 100644
index 0000000..315db5a
--- /dev/null
+++ b/openteacher-fix-setup-version_and_fix_desktop.patch
@@ -0,0 +1,28 @@
+diff -uNr openteacher-orig/linux/openteacher.desktop openteacher/linux/openteacher.desktop
+--- openteacher-orig/linux/openteacher.desktop	2011-09-18 10:33:48.000000000 -0430
++++ openteacher/linux/openteacher.desktop	2012-09-29 03:10:48.234063164 -0430
+@@ -1,5 +1,5 @@
+ [Desktop Entry]
+-Version=2.1
++Version=1.0
+ Name=OpenTeacher
+ Comment=Learn words in a foreign language.
+ GenericName=Vocabulary Trainer
+@@ -8,4 +8,4 @@
+ Type=Application
+ Exec=openteacher
+ Categories=Education;Qt;
+-MimeType=application/x-openteacher;applications/x-wrts;application/x-teach2000;
++MimeType=application/x-openteacher;application/x-wrts;application/x-teach2000;
+diff -uNr openteacher-orig/setup.py openteacher/setup.py
+--- openteacher-orig/setup.py	2011-05-12 14:54:45.000000000 -0430
++++ openteacher/setup.py	2012-09-29 02:40:28.669957715 -0430
+@@ -22,7 +22,7 @@
+ 
+ def main():
+     setup(
+-        version = "2.0",
++        version = "2.3",
+         name = "openteacher", # lower case name needed
+         description = "Learn words in a foreign language.",
+         author = "OpenTeacher Maintainers",
diff --git a/openteacher.1 b/openteacher.1
new file mode 100644
index 0000000..d45bb3d
--- /dev/null
+++ b/openteacher.1
@@ -0,0 +1,67 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH OPENTEACHER 1 "July 21, 2011"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+openteacher \- Learn words in a foreign language
+.SH SYNOPSIS
+.B openteacher
+.RI [filename] 
+.br
+.PP
+filename is name of file which contains list of words and was
+created by openteacher previously.
+.br
+.SH DESCRIPTION
+This manual page documents briefly
+.B OpenTeacher.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+OpenTeacher helps you to learn a foreign language.  Just enter some words in
+your native or foreign language, and OpenTeacher tests you. 
+
+OpenTeacher has the following features:
+ 
+* Read and write T2K and wrts files
+  
+* Easy-to-use interface
+ 
+* Support for synonyms
+ 
+* Greek input
+ 
+* txt-output to print or send
+ 
+* Available in English and Dutch
+.br
+.SH OPERATION
+.PP
+When openteacher starts, the user can do any of the following
+
+Enter list: User enters a list of words in the format '<known word> = <foreign word>'
+and optionally save the list. Alternatively, the user can open an already
+existing word list created earlier using openteacher.
+ 
+Teach Me: Questions will be asked from current loaded list of words.
+.br
+.SH AUTHOR
+OpenTeacher was written by Milan Boers, Marten de Vries, Roel Huybrechts,
+Cas Widdershoven and David D Lowe.
+.PP
+This manual page was written by Arvind S Raj <sraj.arvind at gmail.com>,
+for the Debian project (and may be used by others).
diff --git a/openteacher.spec b/openteacher.spec
new file mode 100644
index 0000000..d7e2f84
--- /dev/null
+++ b/openteacher.spec
@@ -0,0 +1,127 @@
+Name:		openteacher		
+Version:	2.3
+Release:	2%{?dist}
+Summary:	An application that helps you learn a foreign language		
+License:	GPLv3+
+URL:		http://www.openteacher.org
+Source0:	https://launchpad.net/openteacher/2.x/2.3/+download/%{name}-%{version}-source.tar.gz
+Source1:	openteacher.1
+Patch1:		openteacher-fix-setup-version_and_fix_desktop.patch
+BuildRequires:	python-devel
+BuildRequires:	desktop-file-utils
+Requires:	PyQt4
+BuildArch:	noarch	
+
+%description
+OpenTeacher has the following features:
+- Smart question asking and interval training
+- Think answer, shuffle answer and repeat answer input modes
+- Easy symbol, Greek and Cyrillic input
+- Read and write T2K (Teach2000), WRTS and read ABBYY Lingvo Tutor files
+- Save and open your online WRTS lists
+- Print your word lists
+- Available in different languages
+
+%prep
+%setup -q -c
+%patch1 -p1
+
+%build
+python setup.py build
+
+
+%install
+python setup.py install --skip-build --root %{buildroot}
+
+install -d %{buildroot}%{_datadir}/applications
+desktop-file-install \
+	--dir %{buildroot}%{_datadir}/applications \
+	linux/%{name}.desktop
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+
+install -d %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
+install -m 644 linux/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
+
+install -d %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes
+install -m 644 linux/application*.png %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/
+
+install -d %{buildroot}%{_datadir}/mime/packages
+install -m 644 linux/%{name}.xml %{buildroot}%{_datadir}/mime/packages/
+
+install -d %{buildroot}%{_mandir}/man1
+install -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
+
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files
+%doc COPYING NEWS README
+%{_bindir}/%{name}
+%{python_sitelib}/%{name}-2.3-py2.7.egg-info
+%{python_sitelib}/%{name}/__init__.py
+%{python_sitelib}/%{name}/__init__.pyc
+%{python_sitelib}/%{name}/__init__.pyo
+%{python_sitelib}/%{name}/api/__init__.py
+%{python_sitelib}/%{name}/api/__init__.pyc
+%{python_sitelib}/%{name}/api/__init__.pyo
+%attr(0755,root,root) %{python_sitelib}/%{name}/api/wrts.py
+%{python_sitelib}/%{name}/api/wrts.pyc
+%{python_sitelib}/%{name}/api/wrts.pyo
+%attr(0755,root,root) %{python_sitelib}/%{name}/errors.py
+%{python_sitelib}/%{name}/errors.pyc
+%{python_sitelib}/%{name}/errors.pyo
+%attr(0755,root,root) %{python_sitelib}/%{name}/fileTypes.py
+%{python_sitelib}/%{name}/fileTypes.pyc
+%{python_sitelib}/%{name}/fileTypes.pyo
+%{python_sitelib}/%{name}/gui/__init__.py
+%{python_sitelib}/%{name}/gui/__init__.pyc
+%{python_sitelib}/%{name}/gui/__init__.pyo
+%{python_sitelib}/%{name}/gui/about.py
+%{python_sitelib}/%{name}/gui/about.pyc
+%{python_sitelib}/%{name}/gui/about.pyo
+%{python_sitelib}/%{name}/gui/icons_rc.py
+%{python_sitelib}/%{name}/gui/icons_rc.pyc
+%{python_sitelib}/%{name}/gui/icons_rc.pyo
+%{python_sitelib}/%{name}/gui/%{name}.py
+%{python_sitelib}/%{name}/gui/%{name}.pyc
+%{python_sitelib}/%{name}/gui/%{name}.pyo
+%{python_sitelib}/%{name}/gui/settings.py
+%{python_sitelib}/%{name}/gui/settings.pyc
+%{python_sitelib}/%{name}/gui/settings.pyo
+%{python_sitelib}/%{name}/gui/wrtsListChoice.py
+%{python_sitelib}/%{name}/gui/wrtsListChoice.pyc
+%{python_sitelib}/%{name}/gui/wrtsListChoice.pyo
+%{python_sitelib}/%{name}/gui/wrtsLogin.py
+%{python_sitelib}/%{name}/gui/wrtsLogin.pyc
+%{python_sitelib}/%{name}/gui/wrtsLogin.pyo
+%attr(0755,root,root) %{python_sitelib}/%{name}/%{name}.py
+%{python_sitelib}/%{name}/%{name}.pyc
+%{python_sitelib}/%{name}/%{name}.pyo
+%{python_sitelib}/%{name}/resources.py
+%{python_sitelib}/%{name}/resources.pyc
+%{python_sitelib}/%{name}/resources.pyo
+%attr(0755,root,root) %{python_sitelib}/%{name}/words.py
+%{python_sitelib}/%{name}/words.pyc
+%{python_sitelib}/%{name}/words.pyo
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/mime/packages/%{name}.xml
+%{_datadir}/icons/hicolor/*/apps/%{name}.png
+%{_datadir}/icons/hicolor/*/mimetypes/application*.png
+%{_mandir}/man1/openteacher.1*
+
+%changelog
+* Sat Sep 29 2012 Eduardo Echeverria  <echevemaster at gmail.com> - 2.3-2
+- Implements desktop-file-install
+
+* Sat Sep 29 2012 Eduardo Echeverria  <echevemaster at gmail.com> - 2.3-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..85cbb54 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+94fa06f18f5f98080167048286b7251c  openteacher-2.3-source.tar.gz


More information about the scm-commits mailing list