[writetype] Initial import (#698362)

PRABIN KUMAR DATTA prabindatta at fedoraproject.org
Mon Jun 20 12:46:25 UTC 2011


commit bb5a68c6311b82cc3b63239bb43af2d55d74876d
Author: Prabin Kumar Datta <prabindatta at localhost.localdomain>
Date:   Mon Jun 20 18:16:10 2011 +0530

    Initial import (#698362)

 .gitignore                                         |    1 +
 ...e_path_in_binary-executive_file_writetype.patch |    8 ++
 ...olution_for_no_sound_problem_tts-festival.patch |   12 +++
 sources                                            |    1 +
 writetype.spec                                     |   82 ++++++++++++++++++++
 5 files changed, 104 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4a2e94e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/writetype_1.2.130.tar.gz
diff --git a/fixed_the_path_in_binary-executive_file_writetype.patch b/fixed_the_path_in_binary-executive_file_writetype.patch
new file mode 100644
index 0000000..49eacbd
--- /dev/null
+++ b/fixed_the_path_in_binary-executive_file_writetype.patch
@@ -0,0 +1,8 @@
+diff -up ./scripts/writetype.fix ./scripts/writetype
+--- ./scripts/writetype.fix	2011-04-20 15:21:51.337917978 +0530
++++ ./scripts/writetype	2011-04-20 15:22:13.809917995 +0530
+@@ -1,2 +1,3 @@
+ #!/bin/bash
+-/usr/bin/python /usr/share/writetype/writetype/main.py $@
++/usr/bin/python /usr/lib/python2.7/site-packages/writetype/main.py $@
++
diff --git a/quick_solution_for_no_sound_problem_tts-festival.patch b/quick_solution_for_no_sound_problem_tts-festival.patch
new file mode 100644
index 0000000..52253c1
--- /dev/null
+++ b/quick_solution_for_no_sound_problem_tts-festival.patch
@@ -0,0 +1,12 @@
+diff -up writetype-1.2.130/platformSettings.ini.fix writetype-1.2.130/platformSettings.ini
+--- writetype-1.2.130/platformSettings.ini.fix	2011-06-19 01:08:58.194685599 +0530
++++ writetype-1.2.130/platformSettings.ini	2011-06-19 01:09:25.544035637 +0530
+@@ -5,7 +5,7 @@ pathToRes = res
+ pathToWordlists = ../wordlists
+ language = en_US
+ statsId = debbuild
+-ttsEngines = festival,espeak,pyttsx
++ttsEngines = espeak,pyttsx,festival
+ pathToFestival = festival
+ pathToEspeak = espeak
+ updateServer = http://update.bernsteinforpresident.com/writetype.php?os=gnu
diff --git a/sources b/sources
index e69de29..326cd48 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e2dc6e3331c8869993a3157e4df0c593  writetype_1.2.130.tar.gz
diff --git a/writetype.spec b/writetype.spec
new file mode 100644
index 0000000..94bb193
--- /dev/null
+++ b/writetype.spec
@@ -0,0 +1,82 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%endif
+
+Name:		writetype
+Version:	1.2.130
+Release:	6%{?dist}
+Summary:	Light word processor
+Group:		Applications/Editors
+License:	GPLv3+
+URL:		http://writetype.bernsteinforpresident.com/
+Source0:	http://bernsteinforpresident.com/programs/%{name}_%{version}.tar.gz
+Patch0:		fixed_the_path_in_binary-executive_file_writetype.patch
+Patch1:		quick_solution_for_no_sound_problem_tts-festival.patch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:	noarch
+BuildRequires:	python2-devel
+BuildRequires:	python-setuptools, desktop-file-utils
+
+Requires:	PyQt4, pyttsx, enchant, festival
+
+%description
+WriteType is a free  (and open source) program that helps 
+younger students experience success in writing. It is designed 
+especially for schools to transform technology from a barrier 
+into an opportunity for success.
+
+%prep
+%setup -q -n %{name}-%{version}
+%patch0 -p1 -b .fix
+%patch1 -p1 -b .fix
+%build
+%{__python} setup.py build
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install --skip-build --root %{buildroot}
+# Handling desktop file
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+# Remove shebang
+sed -i -e '/^#!\//, 1d' %{buildroot}%{python_sitelib}/%{name}/espeakInterface.py
+sed -i -e '/^#!\//, 1d' %{buildroot}%{python_sitelib}/%{name}/listWidget.py
+sed -i -e '/^#!\//, 1d' %{buildroot}%{python_sitelib}/%{name}/ttsInterface.py
+sed -i -e '/^#!\//, 1d' %{buildroot}%{python_sitelib}/%{name}/festivalInterface.py
+sed -i -e '/^#!\//, 1d' %{buildroot}%{python_sitelib}/%{name}/pyttsxInterface.py
+sed -i -e '/^#!\//, 1d' %{buildroot}%{python_sitelib}/%{name}/main.py
+# Delete zero length file
+find %{buildroot}%{_datadir}/%{name} -size 0 -delete
+
+#%%files -f %%{name}.lang
+%files
+%defattr(-,root,root,-)
+%doc README COPYING
+%{python_sitelib}/%{name}
+%{python_sitelib}/WriteType-%{version}-py?.?.egg-info
+%{_bindir}/%{name}
+%{_datadir}/%{name}
+%attr(0644,root,root) %{_datadir}/applications/%{name}.desktop
+
+
+%changelog
+* Sun Jun 19 2011 Prabin Kumar Datta <prabindatta at fedoraproject.org> - 1.2.130-6
+- removed shebangs
+
+* Sun Jun 19 2011 Prabin Kumar Datta <prabindatta at fedoraproject.org> - 1.2.130-5
+- added desktop-file-utils in build requires
+- corrected License field in specfile
+- patch as a quick solution for no sound in case of festival
+
+* Mon May 09 2011 Prabin Kumar Datta <prabindatta at fedoraproject.org> - 1.2.130-4
+- updated Requires packages
+
+* Fri Apr 22 2011 Prabin Kumar Datta <prabindatta at fedoraproject.org> - 1.2.130-3
+- Add COPYING file which contains Upstream License
+
+* Wed Apr 20 2011 Prabin Kumar Datta <prabindatta at fedoraproject.org> - 1.2.130-2
+- removed clean section since not required
+- added desktop file handing section
+
+* Wed Apr 20 2011 Prabin Kumar Datta <prabindatta at fedoraproject.org> - 1.2.130-1
+- Initial build


More information about the scm-commits mailing list