1 Summary: Full featured multiple window programmer's text editor
2 Summary(pl): Funkcjonalny edytor tekstu dla programistów
7 Group: Applications/Editors
8 Group(pt): X11/Aplicações/Editores
9 Group(pl): Aplikacje/Edytory
10 Source0: ftp://sunsite.unc.edu/pub/Linux/apps/editors/X/%{name}-%{version}.tar.gz
11 Patch0: cooledit-install.patch
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 BuildRequires: autoconf
15 BuildRequires: automake
18 Full-featured X Window text editor; multiple edit windows; 3D
19 Motif-ish look and feel; shift-arrow and mouse text highlighting;
20 column text highlighting and manipulation; key for key undo; macro
21 recording; regular expression search and replace; pull-down menus;
22 drag and drop; interactive man page browser; run make and other shell
23 commands with seamless shell interface; redefine keys with an easy
24 interactive key learner; syntax highlighting for various file types;
25 full support for proportional fonts.
28 Cooledit to pe³nowarto¶ciowy edytor tekstowy dla X Window. Jego
29 najistotniejsze cechy to: obs³uga wielu okien edycyjnych, zaznaczanie
30 tekstu za pomoc± shift-strza³ek i myszki, motifowy wygl±d, kolumnowe
31 zaznaczanie i modyfikacja tekstu, wielopoziomowe undo, nagrywanie
32 makr, wyszykaj i zamieñ za pomoc± wyra¿eñ regularnych, menu,
33 przeci±gnij i upu¶æ, interaktywna przegl±darka stron podrêcznika
34 systemowego (man), uruchamianie make oraz innych komend za pomoc±
35 zintegrowanego interfejsu pow³oki, redefiniowanie klawiszy za pomoc±
36 interaktywnego narzêdzia, pod¶wietlanie sk³adni rozmaitych typów
37 plików, pe³na obs³uga fontów proporcjonalnych.
42 gzip -dc %{SOURCE0} | tar -x --no-same-permission -f -
43 chmod -R +X %{name}-%{version})
53 rm -rf $RPM_BUILD_ROOT
54 %{__make} install DESTDIR=$RPM_BUILD_ROOT
56 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
57 ABOUT-NLS AUTHORS BUGS FAQ INTERNATIONAL \
58 MAILING_LIST NEWS PROGRAMMING README TODO VERSION ChangeLog \
59 cooledit.lsm coolicon.lsm coolman.lsm
64 check if the command is already present:
65 if test -z "`grep coolicon %{_libdir}/X11/xinit/Xclients`" ; then
66 estimate the speed of this machine:
67 BOGOMIPS=`cat /proc/cpuinfo | grep bogomips | sed -e 's/^[^0-9]*//' -e 's/\..*$//'`
69 if test -z "$BOGOMIPS" ; then
72 if test "$BOGOMIPS" -gt "500" ; then
75 add use of shape extension if this is a fast machine:
76 if test "$BOGOMIPS" -gt "80" ; then
77 COOLICON_OPTIONS="-s -X $BOGOMIPS"
79 COOLICON_OPTIONS="-X $BOGOMIPS"
82 cat > temp.Xclients <<EOF
85 coolicon needs an existing mail file, even if it is empty
86 MAILFILE=/var/spool/mail/\$LOGNAME
87 if test -f \$MAILFILE ; then
90 cat /dev/null > \$MAILFILE
93 coolicon $COOLICON_OPTIONS -M \$MAILFILE 2>&1 | coolmessage &
96 cat temp.Xclients %{_libdir}/X11/xinit/Xclients > temp2.Xclients
97 cp temp2.Xclients %{_libdir}/X11/xinit/Xclients
98 chmod 0755 %{_libdir}/X11/xinit/Xclients
99 rm temp.Xclients temp2.Xclients
103 rm -rf $RPM_BUILD_ROOT
105 %files -f %{name}.lang
106 %defattr(644,root,root,755)
107 %doc {ABOUT-NLS,AUTHORS,BUGS,FAQ,INTERNATIONAL}.gz
108 %doc {MAILING_LIST,NEWS,PROGRAMMING,README,TODO,VERSION,ChangeLog}.gz
109 %doc {cooledit.lsm,coolicon.lsm,coolman.lsm}.gz
111 %attr(755,root,root) %{_libdir}/libCw.so*
112 %attr(755,root,root) %{_bindir}/*
117 %{_libdir}/coolicon/*
118 %{_libdir}/cooledit/*