Summary: Full featured multiple window programmer's text editor Summary(pl): Funkcjonalny edytor tekstu dla programistów Name: cooledit Version: 3.14.2 Release: 1 License: GPL Group: Applications/Editors Group(pt): X11/Aplicaçőes/Editores Group(pl): Aplikacje/Edytory Source0: ftp://sunsite.unc.edu/pub/Linux/apps/editors/X/%{name}-%{version}.tar.gz Patch0: cooledit-install.patch Icon: cooledit.gif BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Full-featured X Window text editor; multiple edit windows; 3D Motif-ish look and feel; shift-arrow and mouse text highlighting; column text highlighting and manipulation; key for key undo; macro recording; regular expression search and replace; pull-down menus; drag and drop; interactive man page browser; run make and other shell commands with seamless shell interface; redefine keys with an easy interactive key learner; syntax highlighting for various file types; full support for proportional fonts. %description -l pl Cooledit to pełnowartościowy edytor tekstowy dla X Window. Jego najistotniejsze cechy to: obsługa wielu okien edycyjnych, zaznaczanie tekstu za pomocą shift-strzałek i myszki, motiffowy wygląd, kolumnowe zaznaczanie i modyfikacja tekstu, wielopoziomowe undo, nagrywanie makr, wyszykaj i zamień za pomocą wyrażeń regularnych, menu, przeciągnij i upuść, interaktywna przeglądarka stron podręcznika systemowego (man), uruchamianie make oraz innych komend za pomocą zintegrowanego interfejsu powłoki, redefiniowanie klawiszy za pomocą interaktywnego narzędzia, podświetlanie składni rozmaitych typów plików, pełna obsługa fontów proporcjonalnych. %prep %setup -q -T -c -D (cd .. gzip -dc %{SOURCE0} | tar -x --no-same-permission -f - chmod -R +X %{name}-%{version}) %patch -p1 %build %configure make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \ ABOUT-NLS AUTHORS BUGS FAQ INTERNATIONAL \ MAILING_LIST NEWS PROGRAMMING README TODO VERSION ChangeLog \ cooledit.lsm coolicon.lsm coolman.lsm %find_lang %{name} %post check if the command is already present: if test -z "`grep coolicon %{_libdir}/X11/xinit/Xclients`" ; then estimate the speed of this machine: BOGOMIPS=`cat /proc/cpuinfo | grep bogomips | sed -e 's/^[^0-9]*//' -e 's/\..*$//'` BOGOMIPS="$BOGOMIPS" if test -z "$BOGOMIPS" ; then BOGOMIPS=50 fi if test "$BOGOMIPS" -gt "500" ; then BOGOMIPS=500 fi add use of shape extension if this is a fast machine: if test "$BOGOMIPS" -gt "80" ; then COOLICON_OPTIONS="-s -X $BOGOMIPS" else COOLICON_OPTIONS="-X $BOGOMIPS" fi cat > temp.Xclients < \$MAILFILE chmod 0600 \$MAILFILE fi coolicon $COOLICON_OPTIONS -M \$MAILFILE 2>&1 | coolmessage & EOF cat temp.Xclients %{_libdir}/X11/xinit/Xclients > temp2.Xclients cp temp2.Xclients %{_libdir}/X11/xinit/Xclients chmod 0755 %{_libdir}/X11/xinit/Xclients rm temp.Xclients temp2.Xclients fi %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) %doc {ABOUT-NLS,AUTHORS,BUGS,FAQ,INTERNATIONAL}.gz %doc {MAILING_LIST,NEWS,PROGRAMMING,README,TODO,VERSION,ChangeLog}.gz %doc {cooledit.lsm,coolicon.lsm,coolman.lsm}.gz %attr(755,root,root) %{_libdir}/libCw.so* %attr(755,root,root) %{_bindir}/* %{_libdir}/libCw.la %{_libdir}/libCw.a %{_libdir}/coolicon/* %{_libdir}/cooledit/* %{_mandir}/man1/*