1 Summary: Full featured multiple window programmer's text editor
2 Summary(pl.UTF-8): Funkcjonalny edytor tekstu dla programistów
7 Group: Applications/Editors
8 Source0: http://cooledit.sourceforge.net/%{name}-%{version}.tar.gz
9 # Source0-md5: 06e16994ebc2108e04dc7c6bd29981de
10 URL: http://cooledit.sourceforge.net/
11 BuildRequires: XFree86-devel
12 Requires(post): /sbin/ldconfig
13 Requires(post): coreutils
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Full-featured X Window text editor; multiple edit windows; 3D
20 Motif-ish look and feel; shift-arrow and mouse text highlighting;
21 column text highlighting and manipulation; key for key undo; macro
22 recording; regular expression search and replace; pull-down menus;
23 drag and drop; interactive man page browser; run make and other shell
24 commands with seamless shell interface; redefine keys with an easy
25 interactive key learner; syntax highlighting for various file types;
26 full support for proportional fonts.
28 %description -l pl.UTF-8
29 Cooledit to pełnowartościowy edytor tekstowy dla systemu X Window.
30 Jego najistotniejsze cechy to: obsługa wielu okien edycyjnych,
31 zaznaczanie tekstu za pomocą strzałek z shiftem i myszki, motifowy
32 wygląd, kolumnowe zaznaczanie i modyfikacja tekstu, wielopoziomowe
33 undo, nagrywanie makr, wyszukiwanie i zamiana za pomocą wyrażeń
34 regularnych, menu, "przeciągnij i upuść", interaktywna przeglądarka
35 stron podręcznika systemowego (man), uruchamianie make oraz innych
36 poleceń za pomocą zintegrowanego interfejsu powłoki, redefiniowanie
37 klawiszy za pomocą interaktywnego narzędzia, podświetlanie składni
38 rozmaitych typów plików, pełna obsługa fontów proporcjonalnych.
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
54 # no -devel package, so useless
55 rm -f $RPM_BUILD_ROOT%{_libdir}/libCw.{so,la}
60 rm -rf $RPM_BUILD_ROOT
65 # check if the command is already present:
66 if test -z "`grep coolicon %{_libdir}/X11/xinit/Xclients`" ; then
67 # estimate the speed of this machine:
68 BOGOMIPS=`cat /proc/cpuinfo | grep bogomips | sed -e 's/^[^0-9]*//' -e 's/\..*$//'`
70 if test -z "$BOGOMIPS" ; then
73 if test "$BOGOMIPS" -gt "500" ; then
76 # add use of shape extension if this is a fast machine:
77 if test "$BOGOMIPS" -gt "80" ; then
78 COOLICON_OPTIONS="-s -X $BOGOMIPS"
80 COOLICON_OPTIONS="-X $BOGOMIPS"
83 cat > temp.Xclients <<EOF
86 # coolicon needs an existing mail file, even if it is empty
87 MAILFILE=/var/mail/\$LOGNAME
88 if test -f \$MAILFILE ; then
89 coolicon $COOLICON_OPTIONS -M \$MAILFILE 2>&1 | coolmessage &
92 cat temp.Xclients %{_libdir}/X11/xinit/Xclients > temp2.Xclients
93 cp -f temp2.Xclients %{_libdir}/X11/xinit/Xclients
94 chmod 0755 %{_libdir}/X11/xinit/Xclients
95 rm -f temp.Xclients temp2.Xclients
98 %postun -p /sbin/ldconfig
100 %files -f %{name}.lang
101 %defattr(644,root,root,755)
102 %doc AUTHORS BUGS FAQ INTERNATIONAL
103 %doc MAILING_LIST NEWS PROGRAMMING README TODO VERSION ChangeLog
104 %doc cooledit.lsm coolicon.lsm coolman.lsm
105 %attr(755,root,root) %{_bindir}/*
106 %attr(755,root,root) %{_libdir}/libCw.so.*.*.*