Summary: eXe eLearning XHTML editor Name: exe Version: 2.1.3 Release: %mkrel 4 License: GPLv2+ Group: Editors Url: http://exelearning.net Source0: http://descargas.educalab.es/cedec/exe_learning/%{version}/intef-%{name}-%{version}-source.tgz Source2: getManual.sh Source3: %{name}-manual.tar.gz Patch1: %{name}-2.3-upstream-update-russian.patch BuildArch: noarch BuildRequires: pkgconfig(python2) BuildRequires: pythonegg(2)(setuptools) BuildRequires: gettext BuildRequires: python2dist(gitdb2) BuildRequires: python2dist(gitpython) BuildRequires: python2dist(pytz) BuildRequires: python2dist(babel) >= 1.3 Requires: python2dist(setuptools) Requires: python2dist(pillow) Requires: python2dist(zope.interface) Requires: python2dist(chardet) Requires: python2dist(lxml) Requires: python2dist(feedparser) Requires: python2dist(requests-oauthlib) Requires: python2dist(backports.ssl-match-hostname) Requires: python2dist(suds-jurko) Requires: python2dist(python-dateutil) Requires: python2dist(cssmin) Requires: python2dist(beautifulsoup) Requires: python2dist(webassets) Recommends: mimetex Provides: exelearning = %{version} %description eXe, the eLearning XHTML editor, is an authoring environment which enables teachers to publish web content in standard package formats (like IMS Content Packages and SCORM) without the need to become proficient in HTML or XML markup. Content generated using eXe can be used by any Learning Management System. %prep %setup -q -n %{name} %patch1 -p1 # remove the other platform binaries rm -f ./%{name}/webui/templates/mimetex* #Delete *.mo files find ./%{name}/locale \( -name '*.mo' \) -print -delete #Delete uncompilled locales (there is no support in python-babel) rm -rf ./%{name}/locale/le #Missing po file rm -rf ./%{name}/locale/br rm -rf ./%{name}/locale/tw ln -s ./tools/mki18n.sh ./ #Decompress manual instead of empty by default pushd ./%{name}/webui/docs rm -rf manual tar xvzf %{SOURCE3} popd %build #Build %py2_build #Compile translation ./mki18n.sh #Determine list of languages pushd ./%{name}/locale dir -1|grep -v .pot |grep -v .txt > ./langs.txt popd %install %py2_install mkdir -p %{buildroot}%{_datadir}/mime/packages/ install -m 644 %{name}.xml %{buildroot}%{_datadir}/mime/packages/ mkdir -p %{buildroot}%{_datadir}/%{name}/docs/manual cp -f ./%{name}/webui/docs/manual/* %{buildroot}%{_datadir}/%{name}/docs/manual/ #Localization mkdir -p %{buildroot}%{_datadir}/%{name}/locale pushd ./%{name}/locale cat ./langs.txt | while read lang do mkdir -p %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES cp -f ./$lang/LC_MESSAGES/*.mo %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/ done popd rm -rf %{buildroot}%{_datadir}/%{name}/locale ln -s %{_datadir}/locale %{buildroot}%{_datadir}/%{name}/locale rm -f %{buildroot}%{_datadir}/locale/langs.txt %find_lang %{name} %files -f %{name}.lang %{_bindir}/%{name} %{_bindir}/%{name}_do %{python2_sitelib}/%{name}/ %{python2_sitelib}/%{name}-*.egg-info %{_datadir}/%{name}/ %{_iconsdir}/hicolor/48x48/apps/%{name}.png %{_datadir}/mime/packages/%{name}.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.xpm %{_datadir}/doc/intef-exe/README %changelog * Wed Dec 26 2018 alexl <alexl> 2.1.3-4.mga7 + Revision: 1345024 - update Russian translation - add more dependencies - do not install langs.txt * Thu Sep 20 2018 umeabot <umeabot> 2.1.3-3.mga7 + Revision: 1278211 - Mageia 7 Mass Rebuild * Wed Mar 28 2018 daviddavid <daviddavid> 2.1.3-2.mga7 + Revision: 1213016 - fix requires * Sun Mar 25 2018 kekepower <kekepower> 2.1.3-1.mga7 + Revision: 1212451 - Update to version 2.1.3 * Sat May 21 2016 daviddavid <daviddavid> 2.0.4-3.mga7 + Revision: 1017291 - remove tg locale file as it is no more supported in python-babel thus fixing build - use new python macros * Thu Feb 18 2016 umeabot <umeabot> 2.0.4-2.mga6 + Revision: 967522 - Mageia 6 Mass Rebuild * Tue Jun 30 2015 alexl <alexl> 2.0.4-1.mga6 + Revision: 849217 - use desktop file from upstream - version 2.0.4 * Thu Jan 08 2015 alexl <alexl> 2.0.1-3.mga5 + Revision: 809392 - fixed GenericName for Khmer * Tue Jan 06 2015 alexl <alexl> 2.0.1-2.mga5 + Revision: 808804 - updated desktop file, added GenericName with translations * Tue Nov 11 2014 alexl <alexl> 2.0.1-1.mga5 + Revision: 796501 - version 2.0.1 * Wed Oct 15 2014 umeabot <umeabot> 2.0-3.mga5 + Revision: 740398 - Second Mageia 5 Mass Rebuild * Sat Sep 27 2014 luigiwalser <luigiwalser> 2.0-2.mga5 + Revision: 727972 - add missing BR python-pytz - add missing BR python-gitdb + tv <tv> - rebuild for missing pythoneggs deps * Wed Sep 17 2014 alexl <alexl> 2.0-1.mga5 + Revision: 693053 - updated to stable version 2.0 - translated desktop file with help intltool + umeabot <umeabot> - Mageia 5 Mass Rebuild + pterjan <pterjan> - Rebuild for new Python * Sun Apr 20 2014 alexl <alexl> 2.0-0.git20140507.1.mga5 + Revision: 617168 - imported package exe