]>
Commit | Line | Data |
---|---|---|
8c676cc9 | 1 | Summary: Full featured multiple window programmer's text editor |
9dd0a7e1 | 2 | Summary(pl.UTF-8): Funkcjonalny edytor tekstu dla programistów |
8c676cc9 | 3 | Name: cooledit |
d73bb264 | 4 | Version: 3.17.7 |
8c676cc9 | 5 | Release: 1 |
929ed410 | 6 | License: GPL |
8c676cc9 | 7 | Group: Applications/Editors |
d73bb264 | 8 | Source0: http://cooledit.sourceforge.net/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 06e16994ebc2108e04dc7c6bd29981de | |
10 | URL: http://cooledit.sourceforge.net/ | |
9c00eaa9 | 11 | BuildRequires: XFree86-devel |
9c285f02 | 12 | Requires(post): /sbin/ldconfig |
9c00eaa9 | 13 | Requires(post): coreutils |
55bad05d | 14 | Requires(post): grep |
15 | Requires(post): sed | |
b6344651 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8c676cc9 | 17 | |
cb3f5d22 | 18 | %description |
929ed410 | 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. | |
8c676cc9 | 27 | |
1ec7be6d JR |
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. | |
3cbf0225 | 39 | |
8c676cc9 | 40 | %prep |
3a6e7765 | 41 | %setup -q |
8c676cc9 | 42 | |
9c00eaa9 JB |
43 | %build |
44 | %configure \ | |
45 | --disable-static | |
76f240cc | 46 | %{__make} |
8c676cc9 | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
9c00eaa9 | 50 | |
c3574f5c PG |
51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
8c676cc9 | 53 | |
9c00eaa9 JB |
54 | # no -devel package, so useless |
55 | rm -f $RPM_BUILD_ROOT%{_libdir}/libCw.{so,la} | |
56 | ||
a41dfa1f | 57 | %find_lang %{name} |
58 | ||
b6344651 JB |
59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
8c676cc9 | 62 | %post |
9c00eaa9 | 63 | /sbin/ldconfig |
b6344651 JB |
64 | umask 022 |
65 | # check if the command is already present: | |
2871ce39 | 66 | if test -z "`grep coolicon %{_libdir}/X11/xinit/Xclients`" ; then |
b6344651 | 67 | # estimate the speed of this machine: |
64329973 | 68 | BOGOMIPS=`cat /proc/cpuinfo | grep bogomips | sed -e 's/^[^0-9]*//' -e 's/\..*$//'` |
69 | BOGOMIPS="$BOGOMIPS" | |
70 | if test -z "$BOGOMIPS" ; then | |
71 | BOGOMIPS=50 | |
72 | fi | |
73 | if test "$BOGOMIPS" -gt "500" ; then | |
74 | BOGOMIPS=500 | |
75 | fi | |
b6344651 | 76 | # add use of shape extension if this is a fast machine: |
64329973 | 77 | if test "$BOGOMIPS" -gt "80" ; then |
78 | COOLICON_OPTIONS="-s -X $BOGOMIPS" | |
79 | else | |
80 | COOLICON_OPTIONS="-X $BOGOMIPS" | |
81 | fi | |
8c676cc9 | 82 | |
64329973 | 83 | cat > temp.Xclients <<EOF |
20d462a1 | 84 | #!/bin/sh |
8c676cc9 | 85 | |
b6344651 JB |
86 | # coolicon needs an existing mail file, even if it is empty |
87 | MAILFILE=/var/mail/\$LOGNAME | |
8c676cc9 | 88 | if test -f \$MAILFILE ; then |
64329973 | 89 | coolicon $COOLICON_OPTIONS -M \$MAILFILE 2>&1 | coolmessage & |
b6344651 | 90 | fi |
8c676cc9 | 91 | EOF |
64329973 | 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 | |
8c676cc9 | 96 | fi |
97 | ||
9c00eaa9 JB |
98 | %postun -p /sbin/ldconfig |
99 | ||
a41dfa1f | 100 | %files -f %{name}.lang |
c26a5e53 | 101 | %defattr(644,root,root,755) |
b6344651 | 102 | %doc AUTHORS BUGS FAQ INTERNATIONAL |
c276a38f | 103 | %doc MAILING_LIST NEWS PROGRAMMING README TODO VERSION ChangeLog |
104 | %doc cooledit.lsm coolicon.lsm coolman.lsm | |
c26a5e53 | 105 | %attr(755,root,root) %{_bindir}/* |
9c00eaa9 | 106 | %attr(755,root,root) %{_libdir}/libCw.so.*.*.* |
3a6e7765 | 107 | %{_datadir}/coolicon |
108 | %{_datadir}/cooledit | |
ea60ca54 | 109 | %{_mandir}/man1/* |