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