]> git.pld-linux.org Git - packages/cooledit.git/blob - cooledit.spec
9641435773537169f07b2f9034526ed3eb423e32
[packages/cooledit.git] / cooledit.spec
1 Summary:        Full featured multiple window programmer's text editor
2 Summary(pl):    Funkcjonalny edytor tekstu dla programistów
3 Name:           cooledit
4 Version:        3.17.7
5 Release:        1
6 License:        GPL
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
14 Requires(post): grep
15 Requires(post): sed
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
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.
27
28 %description -l pl
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.
39
40 %prep
41 %setup -q
42
43 %build
44 %configure \
45         --disable-static
46 %{__make}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 # no -devel package, so useless
55 rm -f $RPM_BUILD_ROOT%{_libdir}/libCw.{so,la}
56
57 %find_lang %{name}
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %post
63 /sbin/ldconfig
64 umask 022
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/\..*$//'`
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
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"
79         else
80                 COOLICON_OPTIONS="-X $BOGOMIPS"
81         fi
82
83         cat > temp.Xclients <<EOF
84 #!/bin/sh
85
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 &
90 fi
91 EOF
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
96 fi
97
98 %postun -p /sbin/ldconfig
99
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.*.*.*
107 %{_datadir}/coolicon
108 %{_datadir}/cooledit
109 %{_mandir}/man1/*
This page took 0.068184 seconds and 3 git commands to generate.