]> git.pld-linux.org Git - packages/cooledit.git/blob - cooledit.spec
ce5714b4afba9c03e4976ef924b543cac66db930
[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 BuildRequires:  autoconf
15 BuildRequires:  automake
16
17 %description 
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.
26
27 %description -l pl
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.
38
39 %prep
40 %setup -q -T -c -D
41 (cd ..
42 gzip -dc %{SOURCE0} | tar -x --no-same-permission -f -
43 chmod -R +X %{name}-%{version})
44 %patch -p1
45
46 %build
47 aclocal
48 autoconf
49 %configure
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 %{__make} install DESTDIR=$RPM_BUILD_ROOT
55
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
60
61 %find_lang %{name}
62
63 %post
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/\..*$//'`
68     BOGOMIPS="$BOGOMIPS"
69     if test -z "$BOGOMIPS" ; then
70         BOGOMIPS=50
71     fi
72     if test "$BOGOMIPS" -gt "500" ; then
73         BOGOMIPS=500
74     fi
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"
78     else
79         COOLICON_OPTIONS="-X $BOGOMIPS"
80     fi
81
82     cat > temp.Xclients <<EOF
83 #!/bin/bash
84
85  coolicon needs an existing mail file, even if it is empty
86 MAILFILE=/var/spool/mail/\$LOGNAME
87 if test -f \$MAILFILE ; then
88     cat /dev/null
89 else
90     cat /dev/null > \$MAILFILE
91     chmod 0600 \$MAILFILE
92 fi
93 coolicon $COOLICON_OPTIONS -M \$MAILFILE 2>&1 | coolmessage &
94
95 EOF
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
100 fi
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
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
110
111 %attr(755,root,root) %{_libdir}/libCw.so*
112 %attr(755,root,root) %{_bindir}/*
113
114 %{_libdir}/libCw.la
115 %{_libdir}/libCw.a
116
117 %{_libdir}/coolicon/*
118 %{_libdir}/cooledit/*
119
120 %{_mandir}/man1/*
This page took 0.049381 seconds and 3 git commands to generate.