File yudit.spec of Package yudit

# spec file for package yudit (Version 2.9.0)
# Copyright (c) 2008 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

# norootforbuild

Name:           yudit
BuildRequires:  dos2unix xorg-x11-devel
%if %suse_version > 1020
BuildRequires:  fdupes
%if "%(xft-config --prefix)" == "/usr"
%define	fontdir     /usr/share/fonts/truetype
%define	xbindir     /usr/bin
%define	fontdir     /usr/X11R6/lib/X11/fonts/truetype
%define	xbindir     /usr/X11R6/bin
BuildRequires:  freetype2-devel gcc-c++ libjpeg-devel openmotif openmotif-devel
License:        LGPL v2.1 or later
Group:          Productivity/Editors/Other
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
Version:        2.9.0
Release:        71
Icon:         %{name}.gif
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
Patch8:         bnc445708-delete-array.patch 
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Unicode text editor

yudit is a unicode package to edit and convert text of different

    Gaspar Sinai <>

%setup -q
#%patch0 -p1
%patch1 -p1 -b .properties
%patch2 -p1 -b .setlocale
%patch3 -p1 -b .print-preview
%patch8 -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/
    dos2unix $i

rm -f config.cache
export CC="g++"
export LDFLAGS="-pie"
./configure \
	--prefix=%{_usr} \
	--bindir=%{xbindir} \
	--mandir=%{_mandir} \
	--datadir=%{_datadir} \
	--with-freetype-includes=%{_includedir}/freetype \
	--with-freetype-libraries=%{_libdir} \

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 \
install -m 644 $RPM_SOURCE_DIR/fonts.scale.yudit \
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




%doc %{_defaultdocdir}/%{name}
%config /usr/share/pixmaps/yudit.png
%dir %{fontdir}/
%doc %{_mandir}/man1/*
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/config
%config %{_datadir}/%{name}/config/*

* Tue Nov 18 2008
- bnc#445708: undefined C++ code: delete arrays correctly.
- use fdupes
- fix wrong end-of-line-encoding (dos2unix).
* Wed Jan 02 2008
- update to 2.9.0. From CHANGELOG.TXT:
  • Added spell checking support for rovasiras (Hungarian Runes)
* Mon Dec 17 2007
- use the compiler option -fPIE instead of -fpie to make it
  build on s390 and s390x.
* Mon Dec 17 2007
- 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
  • 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
  • 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
* Sat Dec 08 2007
- update to 2.8.2.beta26.
  (fixes a problem in the Form Feed support).
* Fri Dec 07 2007
- update to 2.8.2.beta25.
  Fixes remaining issue in bug #343820 (Form Feed support)
  • 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 <alt><enter>
  (it will be orange now)
  • Form Feed can be inserted with <ctrl><enter> (orange)
  • Form feed now prints correctly on printer
  • Created new glyphs for FF and LS
* Thu Dec 06 2007
- 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 05 2007
- 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
  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 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
  '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
  • Added Bulgarian-Translit.kmap
  keyboard map from Alex Izvorski aizvorski/
  • Added Simplified Chinese (zh_CN) gui translations from
  John: vunzndi/, translated by
  Zhou Jinnian: zhoujinnian168/
  • 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
  • Fixed compiler warnings with gcc 4.1.0
  • Added Pali.kmap (original pali.kmap) from jon bressie
* Wed Nov 21 2007
- 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)
  the default Bengali font.
  • Added  MuktiNarrow.ttf as the default bengali font from
  • 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 <djavan/>.
  • Added changes to
  from Daryoush Javan <djavan/>.
  • Added Polish-slash.kmap from Krzysztof SUCHECKI <hs6_06/>
  • Updated for Unicode 4.1.0
  • Fixed bin/
  • Added one more null pointer patch from
  Marcus Meissner <meissner/>
  into swindow/sx11/SXInputMethod.cpp
  • Updated Slavic.kmap and added Glagolitic.kmap from
  Страхиња Радић <>
  • Added baybayin
  from roel cantada <rcantada2002/>
  • Added Devanagari-Velthuis.kmap
  from Anshuman Pandey <apandey/>
- remove yudit-null.patch, fix-c++-build-problem.patch
  (included upstream).
* Thu Jan 18 2007
- fix duplicated assignment
* Fri Aug 11 2006
- 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
- compile everything with -fpie, link everything with -pie.
* Wed Aug 09 2006
- 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
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006
- Don't strip binaries.
* Tue Oct 18 2005
- make it build with gcc 4.1.
* Fri May 06 2005
- update to 2.7.8.
* Tue Feb 22 2005
- Fixed some 0 -> NULL, fixed one global C++ anon struct
* Sun Mar 21 2004
- use %%suseconfig_fonts_prereq and run SuSEconfig.fonts
* Thu Jan 15 2004
- update to 2.7.6.
- fix "command not found" when using the print preview.
* Sat Jan 10 2004
- add %%defattr
* Thu Sep 18 2003
- 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
- update to 2.5.7.
* Fri Jun 13 2003
- 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 07 2003
- use g++ as CC
* Tue Apr 29 2003
- 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
- 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
* Wed Nov 27 2002
- 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
- make it build again.
* Mon Aug 19 2002
- update to 2.6.2
- use buildroot
* Wed Jan 23 2002
- Fixed tempfile race
* Thu Nov 15 2001
- update to 2.4.8
* Tue Oct 30 2001
- removed qtlib/klibs from neededforbuild (never needed)
* Wed May 09 2001
- bzip2 sources
* Wed Feb 07 2001
- fixed for glibc 2.2.1
- fixed group tag
* Wed Oct 25 2000
- fixed neededforbuild for new openmotif package names
* Tue Oct 24 2000
- patches for ia64
- switch to openmotif from lesstif
* Wed Aug 23 2000
- removed bogus 'Requires:' and 'neededforbuild'
* Mon May 29 2000
- a few changes, no new version yet
- changed yuditrc for SuSE freetype path
* Fri Mar 03 2000
- changed manpath to %%{_mandir}
* Mon Jan 24 2000
- freetype includes are in usr/include/freetype now
* Mon Dec 13 1999
- added lesstif to neededforbuild
* Thu Dec 09 1999
- build kde and motif versions as well
* Thu Dec 09 1999
- new package yudit 1.5
openSUSE Build Service is sponsored by