]> git.pld-linux.org Git - packages/cooledit.git/blob - cooledit.spec
- spec adapterized.
[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.14.2
5 Release:        1
6 License:        GPL
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
12 Icon:           cooledit.gif
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description 
16 Full-featured X Window text editor; multiple edit windows; 3D
17 Motif-ish look and feel; shift-arrow and mouse text highlighting;
18 column text highlighting and manipulation; key for key undo; macro
19 recording; regular expression search and replace; pull-down menus;
20 drag and drop; interactive man page browser; run make and other shell
21 commands with seamless shell interface; redefine keys with an easy
22 interactive key learner; syntax highlighting for various file types;
23 full support for proportional fonts.
24
25 %description -l pl
26 Cooledit to pe³nowarto¶ciowy edytor tekstowy dla X Window. Jego
27 najistotniejsze cechy to: obs³uga wielu okien edycyjnych, zaznaczanie
28 tekstu za pomoc± shift-strza³ek i myszki, motiffowy wygl±d, kolumnowe
29 zaznaczanie i modyfikacja tekstu, wielopoziomowe undo, nagrywanie
30 makr, wyszykaj i zamieñ za pomoc± wyra¿eñ regularnych, menu,
31 przeci±gnij i upu¶æ, interaktywna przegl±darka stron podrêcznika
32 systemowego (man), uruchamianie make oraz innych komend za pomoc±
33 zintegrowanego interfejsu pow³oki, redefiniowanie klawiszy za pomoc±
34 interaktywnego narzêdzia, pod¶wietlanie sk³adni rozmaitych typów
35 plików, pe³na obs³uga fontów proporcjonalnych.
36
37 %prep
38 %setup -q -T -c -D
39 (cd ..
40 gzip -dc %{SOURCE0} | tar -x --no-same-permission -f -
41 chmod -R +X %{name}-%{version})
42 %patch -p1
43
44 %build
45 %configure
46 make
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 make install DESTDIR=$RPM_BUILD_ROOT
51
52 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
53         ABOUT-NLS AUTHORS BUGS FAQ INTERNATIONAL \
54         MAILING_LIST NEWS PROGRAMMING README TODO VERSION ChangeLog \
55         cooledit.lsm coolicon.lsm coolman.lsm
56
57 %find_lang %{name}
58
59 %post
60  check if the command is already present:       
61 if test -z "`grep coolicon %{_libdir}/X11/xinit/Xclients`" ; then
62  estimate the speed of this machine:    
63     BOGOMIPS=`cat /proc/cpuinfo | grep bogomips | sed -e 's/^[^0-9]*//' -e 's/\..*$//'`
64     BOGOMIPS="$BOGOMIPS"
65     if test -z "$BOGOMIPS" ; then
66         BOGOMIPS=50
67     fi
68     if test "$BOGOMIPS" -gt "500" ; then
69         BOGOMIPS=500
70     fi
71  add use of shape extension if this is a fast machine:  
72     if test "$BOGOMIPS" -gt "80" ; then
73         COOLICON_OPTIONS="-s -X $BOGOMIPS"
74     else
75         COOLICON_OPTIONS="-X $BOGOMIPS"
76     fi
77
78     cat > temp.Xclients <<EOF
79 #!/bin/bash
80
81  coolicon needs an existing mail file, even if it is empty
82 MAILFILE=/var/spool/mail/\$LOGNAME
83 if test -f \$MAILFILE ; then
84     cat /dev/null
85 else
86     cat /dev/null > \$MAILFILE
87     chmod 0600 \$MAILFILE
88 fi
89 coolicon $COOLICON_OPTIONS -M \$MAILFILE 2>&1 | coolmessage &
90
91 EOF
92     cat temp.Xclients %{_libdir}/X11/xinit/Xclients > temp2.Xclients
93     cp temp2.Xclients %{_libdir}/X11/xinit/Xclients
94     chmod 0755 %{_libdir}/X11/xinit/Xclients
95     rm temp.Xclients temp2.Xclients
96 fi
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %files -f %{name}.lang
102 %defattr(644,root,root,755)
103 %doc {ABOUT-NLS,AUTHORS,BUGS,FAQ,INTERNATIONAL}.gz
104 %doc {MAILING_LIST,NEWS,PROGRAMMING,README,TODO,VERSION,ChangeLog}.gz
105 %doc {cooledit.lsm,coolicon.lsm,coolman.lsm}.gz
106
107 %attr(755,root,root) %{_libdir}/libCw.so*
108 %attr(755,root,root) %{_bindir}/*
109
110 %{_libdir}/libCw.la
111 %{_libdir}/libCw.a
112
113 %{_libdir}/coolicon/*
114 %{_libdir}/cooledit/*
115
116 %{_mandir}/man1/*
This page took 0.071949 seconds and 3 git commands to generate.