]> git.pld-linux.org Git - packages/cooledit.git/blame - cooledit.spec
- tabs in preamble
[packages/cooledit.git] / cooledit.spec
CommitLineData
8c676cc9 1Summary: Full featured multiple window programmer's text editor
9dd0a7e1 2Summary(pl.UTF-8): Funkcjonalny edytor tekstu dla programistów
8c676cc9 3Name: cooledit
d73bb264 4Version: 3.17.7
8c676cc9 5Release: 1
929ed410 6License: GPL
8c676cc9 7Group: Applications/Editors
d73bb264 8Source0: http://cooledit.sourceforge.net/%{name}-%{version}.tar.gz
9# Source0-md5: 06e16994ebc2108e04dc7c6bd29981de
10URL: http://cooledit.sourceforge.net/
9c00eaa9 11BuildRequires: XFree86-devel
9c285f02 12Requires(post): /sbin/ldconfig
9c00eaa9 13Requires(post): coreutils
55bad05d 14Requires(post): grep
15Requires(post): sed
b6344651 16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
8c676cc9 17
cb3f5d22 18%description
929ed410 19Full-featured X Window text editor; multiple edit windows; 3D
20Motif-ish look and feel; shift-arrow and mouse text highlighting;
21column text highlighting and manipulation; key for key undo; macro
22recording; regular expression search and replace; pull-down menus;
23drag and drop; interactive man page browser; run make and other shell
24commands with seamless shell interface; redefine keys with an easy
25interactive key learner; syntax highlighting for various file types;
26full support for proportional fonts.
8c676cc9 27
1ec7be6d
JR
28%description -l pl.UTF-8
29Cooledit to pełnowartościowy edytor tekstowy dla systemu X Window.
30Jego najistotniejsze cechy to: obsługa wielu okien edycyjnych,
31zaznaczanie tekstu za pomocą strzałek z shiftem i myszki, motifowy
32wygląd, kolumnowe zaznaczanie i modyfikacja tekstu, wielopoziomowe
33undo, nagrywanie makr, wyszukiwanie i zamiana za pomocą wyrażeń
34regularnych, menu, "przeciągnij i upuść", interaktywna przeglądarka
35stron podręcznika systemowego (man), uruchamianie make oraz innych
36poleceń za pomocą zintegrowanego interfejsu powłoki, redefiniowanie
37klawiszy za pomocą interaktywnego narzędzia, podświetlanie składni
38rozmaitych 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
49rm -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
55rm -f $RPM_BUILD_ROOT%{_libdir}/libCw.{so,la}
56
a41dfa1f 57%find_lang %{name}
58
b6344651
JB
59%clean
60rm -rf $RPM_BUILD_ROOT
61
8c676cc9 62%post
9c00eaa9 63/sbin/ldconfig
b6344651
JB
64umask 022
65# check if the command is already present:
2871ce39 66if 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
87MAILFILE=/var/mail/\$LOGNAME
8c676cc9 88if test -f \$MAILFILE ; then
64329973 89 coolicon $COOLICON_OPTIONS -M \$MAILFILE 2>&1 | coolmessage &
b6344651 90fi
8c676cc9 91EOF
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 96fi
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/*
This page took 0.0797 seconds and 4 git commands to generate.