# # spec file for package yudit # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: yudit BuildRequires: autoconf BuildRequires: dos2unix BuildRequires: xorg-x11-devel %if %suse_version > 1020 BuildRequires: fdupes %endif %define fontdir /usr/share/fonts/truetype %define xbindir /usr/bin BuildRequires: freetype2-devel BuildRequires: gcc-c++ BuildRequires: libjpeg-devel BuildRequires: openmotif BuildRequires: openmotif-devel BuildRequires: fontpackages-devel %reconfigure_fonts_prereq Version: 2.9.2 Release: 4.1.8 Url: http://www.yudit.org/ Icon: %{name}.gif Source0: http://yudit.org/download/yudit-%{version}.tar.bz2 Source1: fonts.scale.yudit Patch0: yudit-2.4.8-tempfile.patch Patch1: yudit-properties.patch Patch2: yudit-setlocale.patch Patch3: print-preview.patch Patch7: yudit-strip.patch Patch9: uniprint-catch-bad_alloc-exceptions.patch # PATCH-FIX-UPSTREAM yudit-2.9.2.patch0.txt dimstar@opensuse.org -- Fix segfault when hunspell is used on expanding line. Patch10: yudit-2.9.2.patch0.txt BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: Unicode text editor License: LGPL-2.1+ Group: Productivity/Editors/Other %description yudit is a unicode package to edit and convert text of different languages. %prep %setup -q #%patch0 -p1 %patch1 -p1 -b .properties %patch2 -p1 -b .setlocale %patch3 -p1 -b .print-preview %patch7 %patch9 -p1 -b .catch-bad_alloc-exceptions %patch10 -p1 for i in doc/HOWTO-baybayin.txt COPYING.TXT README.TXT doc/HOWTO-devanagari.txt doc/bidi/yudit.css doc/HOWTO-syntax.txt doc/notinstalled/cl.help do dos2unix $i done %build rm -f config.cache autoconf export CC="g++" export CFLAGS="$RPM_OPT_FLAGS -fPIE" export CXXFLAGS="$RPM_OPT_FLAGS -fPIE" export LDFLAGS="-pie" ./configure \ --prefix=%{_usr} \ --bindir=%{xbindir} \ --mandir=%{_mandir} \ --datadir=%{_datadir} \ --with-freetype-includes=%{_includedir}/freetype \ --with-freetype-libraries=%{_libdir} \ --without-x \ --build=i486-pc-linux-gnu \ --host=i486-pc-linux-gnu make %install make DESTDIR=$RPM_BUILD_ROOT install mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps install -m 644 gnome-yudit.png $RPM_BUILD_ROOT/usr/share/pixmaps/yudit.png mkdir -p $RPM_BUILD_ROOT%{fontdir} mv $RPM_BUILD_ROOT/%{_datadir}/%{name}/fonts/yudit.ttf \ $RPM_BUILD_ROOT%{fontdir} install -m 644 $RPM_SOURCE_DIR/fonts.scale.yudit \ $RPM_BUILD_ROOT%{fontdir} mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name} cp -a C* FAQ* READM* TOD* *BUG* $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name} cp -a doc $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name} %if %suse_version > 1020 %fdupes $RPM_BUILD_ROOT/usr/share %endif %clean %reconfigure_fonts_scriptlets %files %defattr(-,root,root) %doc %{_defaultdocdir}/%{name} %config /usr/share/pixmaps/yudit.png %{xbindir}/* %dir %{fontdir}/ %{fontdir}/* %doc %{_mandir}/man1/* %dir %{_datadir}/%{name}/ %dir %{_datadir}/%{name}/config %config %{_datadir}/%{name}/config/* %{_datadir}/%{name}/data/ %{_datadir}/%{name}/fonts/ %{_datadir}/%{name}/src/ %{_datadir}/%{name}/doc/ %{_datadir}/%{name}/locale/ %{_datadir}/%{name}/syntax/ %changelog * Sun Nov 25 2012 gber@opensuse.org - Switch to the new font macros and fix the build * Wed Dec 21 2011 coolo@suse.com - add autoconf as buildrequire to avoid implicit dependency * Mon Nov 8 2010 coolo@novell.com - remove support for pre-9.1 * Mon Feb 15 2010 dimstar@opensuse.org - Update to version 2.9.2: + Updated to Unicode 5.2.0 + Landscape printing bug fixed + DOS CRLF with uniconv bug fixed + Hungarian Runes (PUA) rovasiras glyph adjustments + Windows port now behaves itself + Minor enhancements - Drop bnc445708-delete-array.patch, merged upstream. - Add yudit-2.9.2.patch0.txt from upstream 'patch folder'. * Wed Dec 2 2009 coolo@novell.com - updated patches, fix build * Fri May 29 2009 werner@suse.de - Add missing patch for bnc#470998 uniprint consumes memory untilcw OOM Killer steps in * Tue Nov 18 2008 mfabian@suse.de - bnc#445708: undefined C++ code: delete arrays correctly. - use fdupes - fix wrong end-of-line-encoding (dos2unix). * Wed Jan 2 2008 mfabian@suse.de - update to 2.9.0. From CHANGELOG.TXT: • Added spell checking support for rovasiras (Hungarian Runes) * Mon Dec 17 2007 mfabian@suse.de - use the compiler option -fPIE instead of -fpie to make it build on s390 and s390x. * Mon Dec 17 2007 mfabian@suse.de - update to 2.8.2.beta36. From CHANGELOG.TXT: • Added change to SHunspellPattern.cpp so that it compiles with g++ 2.96 • Added -ldl detection to configure.in • Added dylib is loaded now for __APPLE__ • When printing from Editor window now prints only selected text if text is selected. • added canWrap to SGlyph.cpp so that STextView should use this instead of isDelimiter to decide on word wrap. • More information on printing from Yudit. • Windows ghostgun directory change in wuditw.properties • changed yudit.editor.syntax.error.foreground to red • Translation progres in history/translations.txt • Changed Highlighting(__H__) to __H__igghligting in all po files. • Display current highlighting mode in tooltip instead of main window. • Fixed redrwawing problems with small descent font. • Keyboard shortcut pastes syntax command in the command area instead of bringing up the dialog now. • ERROR and NONE now preserves default foreground color of original text. ERROR underlines it with the error foreground. • Fixed syntax none • Translation progres in history/translations.txt • Fixed generating too many glyphs problem when printing with bitmap fonts in direct mode. • Current geometry is now saved in config file, if changed • Made syntax selection dialog box. • Reporting errors when files are missing in syntax selection box. * Sat Dec 8 2007 mfabian@suse.de - update to 2.8.2.beta26. (fixes a problem in the Form Feed support). * Fri Dec 7 2007 mfabian@suse.de - update to 2.8.2.beta25. Fixes remaining issue in bug #343820 (Form Feed support) From CHANGELOG.TXT: • Commented out forceful gaining of focus in SX11Impl.cpp because this could cause an infinite loop when the window is mapped and none of FocusIn even occures and none of the windows are ours. • Increased stoolkit/syntax/SSyntax.h: [#]define SD_UNIT_WORK_COUNT 200 • Line Separator can be inserted with (it will be orange now) • Form Feed can be inserted with (orange) • Form feed now prints correctly on printer • Created new glyphs for FF and LS * Thu Dec 6 2007 mfabian@suse.de - update to 2.8.2.beta21. From CHANGELOG.TXT: • Added experimental support for hunspell spelling checker. • Changed selected background to DeepSkyBlue4. • Moved syntax colors in properties. * Wed Dec 5 2007 mfabian@suse.de - update to 2.8.2.beta18. From CHANGELOG.TXT: • Made a framework around "syntax" keyword that could help to integrate external spell-checkers into Yudit. • Fixed Freehand drawing in doublebuffer mode. • Embedded now also have proper colors. • syntax still does not work well. • Updated swindow/swin32 to do double buffering for flickerless rendering. You can switch off double buffering with the command line switch via -ndb for both Unix/Linux and Windows. • added doc/HOWTO-build.txt • Creating double buffer only when rendering. • Changed installed to install mytool files in chunks • Added double buffering to aoid flicker - ndb command line option switches off double buffering in editor window • Updated install.sh from /usr/share/automake-1.9/ • Added stub that can be used for syntax highlighting in stoolkit/SSyntax.cpp and defined xml and properties highlight type gui/SYudit.cpp. This is still not ready, but the framework works so I though I might just add it. • Added timer to have a time-window to collect more keypress events and accumulate STextDataEvents. This will give time for the SSyntax.cpp to work on the highlighting. • Modified simple color highlighting to distinguish only Letters, Numbers and Others • Modified STextData to return size() == 1 if it is empty, because this makes more sense. • Give a more meaningful error message if DISPLAY is wrong. • Updated SGML.kmap • Added cp-1252.txt from John Wehle • Fixed SXInputMethod.cpp XGetWindowProperty to use unsigned char • Fixed SX11Impl.cpp XGetWindowProperty to use unsigned char • changed Hangul.mys so that Yi can be typed not only as Ei 'w 'i -> 0214 'W 'i -> 0214 to 'y 'i -> 0214 'Y 'i -> 0214 Changed 'E 'u 'i to 'Y 'i C759 -> 'E 'u 'i 'g C75A -> 'E 'u 'i 'g 'g ... • Fixed setlocale bug. • fixed SCIM input method in yudit.properties.in • Added Bulgarian-Translit.kmap keyboard map from Alex Izvorski aizvorski/gmail.com • Added Simplified Chinese (zh_CN) gui translations from John: vunzndi/vfemail.net, translated by Zhou Jinnian: zhoujinnian168/yahoo.com • Fixed syriac shaping bug in SFontTTF::substituteOTFGlyph. Now Syriac should work again with truetype otf fonts. • Capital letters have been added to Pali.kmap. • Added SCIM to default yudit.properties.in: yudit.editor.xinputs=SCIM,... • Fixed compiler warnings with gcc 4.1.0 • Added Pali.kmap (original pali.kmap) from jon bressie box100/prodigy.net * Wed Nov 21 2007 mfabian@suse.de - update to 2.8.1. • Updated for Unicode 5.0.0 (cd bin; make map) • Preparing yudit-2.8.1. • Made Yudit understand +LINENO command line option. • Further Khanda Ta fixes. Made bangla.ttf (all small lettters) from http://www.omicronlab.com/avrokeyboard/bangla-fonts/index.htm the default Bengali font. • Added MuktiNarrow.ttf as the default bengali font from http://savannah.nongnu.org/download/freebangfont/MuktiNarrow-0.94.tar.bz2 • Added Bulgarian fixes from Alexander Shopov • Updated configure script to behave nicer. • Fixed some minor spelling mistakes. • Added a more detailed error message when yudit is built without X11. (The command line tools are still working fine without X11.) • Made icons/SS_Open.xpm look nicer. • Updated yudit.iss truetype.iss bitmap.iss for latest Inno Setup compiler (isetup-5.1.6.exe): • Fixed redrawing bug of highlighted text with bitmap font. • Added changes to compile with gcc 4.1. • adding new media types from Daryoush Javan . • Added changes to swindow/SPostscript.cpp swindow/SPostscript.h swindow/SPrinter.h swindow/SUniPrint.cpp swindow/SUniPrint.h uniprint/uniprint.1.in uniprint/Main.cpp from Daryoush Javan . • Added Polish-slash.kmap from Krzysztof SUCHECKI • Updated for Unicode 4.1.0 • Fixed bin/arabickmap.pl • Added one more null pointer patch from Marcus Meissner into swindow/sx11/SXInputMethod.cpp • Updated Slavic.kmap and added Glagolitic.kmap from Страхиња Радић • Added baybayin HOWTO-baybayin.txt Baybayin.kmap from roel cantada • Added Devanagari-Velthuis.kmap from Anshuman Pandey - remove yudit-null.patch, fix-c++-build-problem.patch (included upstream). * Thu Jan 18 2007 ssommer@suse.de - fix duplicated assignment * Fri Aug 11 2006 sndirsch@suse.de - fixed font path for X.Org 7 in yudit-properties.patch, but keep it backward compatible (/usr/X11R6/lib/X11/fonts still in font search path) * Thu Aug 10 2006 mfabian@suse.de - compile everything with -fpie, link everything with -pie. * Wed Aug 9 2006 mfabian@suse.de - move fonts to /usr/share/fonts/truetype and binaries to /usr/bin (openSUSE 10.2 will use X11R7). - use macro run_suseconfig_fonts * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Fri Jan 20 2006 schwab@suse.de - Don't strip binaries. * Tue Oct 18 2005 mfabian@suse.de - make it build with gcc 4.1. * Fri May 6 2005 mfabian@suse.de - update to 2.7.8. * Tue Feb 22 2005 meissner@suse.de - Fixed some 0 -> NULL, fixed one global C++ anon struct problem. * Sun Mar 21 2004 mfabian@suse.de - use %%suseconfig_fonts_prereq and run SuSEconfig.fonts * Thu Jan 15 2004 mfabian@suse.de - update to 2.7.6. - fix "command not found" when using the print preview. * Sat Jan 10 2004 adrian@suse.de - add %%defattr * Thu Sep 18 2003 mfabian@suse.de - segfault fixes from the author Gaspar Sinai: * fixed stoolkit/SString.cpp - fixed array overflow segfault. * fixed stoolkit/SParagraph.cpp - fixed array overflow segfault. * Mon Jun 16 2003 mfabian@suse.de - update to 2.5.7. * Fri Jun 13 2003 mfabian@suse.de - update to 2.5.7.beta15 - remove fixed local copy of yudit.ttf, fixed upstream now. - remove obsolete patches: SAMPA.kmap.diff.txt, yudit-2.7.2.patch1.txt, yudit-2.7.2.patch3.txt, yudit-2.7.2.patch2.txt, yudit-2.7.2.patch4.txt * Wed May 7 2003 ro@suse.de - use g++ as CC * Tue Apr 29 2003 mfabian@suse.de - yudit-setlocale.patch: set only LC_CTYPE instead of LC_ALL when switching input methods in order to avoid influencing LC_NUMERIC. Otherwise printing fails when running in a German locale after switching to the "German" input method because floating point numbers are then printed using ',' instead of '.' into the Postscript output. * Tue Jan 28 2003 mfabian@suse.de - update to 2.7.2 with yudit-2.7.2.patch{1,2,3,4}.txt and SAMPA.kmap.diff.txt from upstream author. - replace yudit.ttf with version which has the family name and PostScript name "Yudit" instead of "Yudit Unicode" (will be like that in the next upstream version as well, remember to remove the fixed yudit.ttf again during the next update). * Tue Nov 26 2002 mfabian@suse.de - update to 2.7 with yudit-2.7.patch{1,2,3,4}.txt from upstream author Gaspar Sinai. - add /usr/X11R6/lib/X11/fonts to yudit.fontpath - move yudit.ttf to /usr/X11R6/lib/X11/fonts/truetype to make it usable by other applications as well - add fonts.scale.yudit - use x-devel-packages in '# neededforbuild' * Mon Aug 19 2002 mfabian@suse.de - make it build again. * Mon Aug 19 2002 mfabian@suse.de - update to 2.6.2 - use buildroot * Wed Jan 23 2002 okir@suse.de - Fixed tempfile race * Thu Nov 15 2001 rolf@suse.de - update to 2.4.8 * Tue Oct 30 2001 ro@suse.de - removed qtlib/klibs from neededforbuild (never needed) * Wed May 9 2001 mfabian@suse.de - bzip2 sources * Wed Feb 7 2001 uli@suse.de - fixed for glibc 2.2.1 - fixed group tag * Wed Oct 25 2000 ro@suse.de - fixed neededforbuild for new openmotif package names * Tue Oct 24 2000 rolf@suse.de - patches for ia64 - switch to openmotif from lesstif * Wed Aug 23 2000 mfabian@suse.de - removed bogus 'Requires:' and 'neededforbuild' * Mon May 29 2000 rolf@suse.de - a few changes, no new version yet - changed yuditrc for SuSE freetype path * Fri Mar 3 2000 rolf@suse.de - changed manpath to %%{_mandir} * Sun Jan 23 2000 ro@suse.de - freetype includes are in usr/include/freetype now * Mon Dec 13 1999 ro@suse.de - added lesstif to neededforbuild * Thu Dec 9 1999 rolf@suse.de - build kde and motif versions as well * Thu Dec 9 1999 rolf@suse.de - new package yudit 1.5