]> git.pld-linux.org Git - packages/cmatrix.git/blob - cmatrix.spec
c98d603892be91d9e32a47e6eaab8eecb7615f63
[packages/cmatrix.git] / cmatrix.spec
1 Summary:        CMatrix - show a scrolling 'Matrix' like screen in Linux (curses based)
2 Name:           cmatrix
3 Version:        1.1b
4 Release:        4
5 License:        GPL
6 Group:          Applications/Console
7 Group(de):      Applikationen/Konsole
8 Group(pl):      Aplikacje/Konsola
9 Source0:        http://www.asty.org/cmatrix/dist/%{name}-%{version}.tar.gz
10 Patch0:         %{name}-DESTDIR.patch
11 URL:            http://www.asty.org/cmatrix/
12 BuildRequires:  ncurses-devel >= 5.0
13 Prereq:         /usr/X11R6/bin/mkfontdir
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 What is CMatrix? :-)
18
19 CMatrix is a program I wrote one evening because I didn't want to have
20 to run Wind*ws to see the cool scrolling lines from 'The Matrix', my
21 fave movie. If you haven't seen this movie and you are a fan of
22 computers or sci-fi in general, go see this movie!!! I have seen it
23 twice, and I'm pondering seeing it again before it comes out on VHS.
24
25 %prep
26 %setup -q
27 %patch0 -p1
28
29 %build
30 aclocal
31 autoconf
32 automake -a -c
33 CFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
34 export CFLAGS
35 %configure
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_datadir}/{consolefonts,fonts/misc},%{_bindir}} \
41         $RPM_BUILD_ROOT%{_mandir}/man1
42 install cmatrix $RPM_BUILD_ROOT%{_bindir}
43 install cmatrix.1 $RPM_BUILD_ROOT%{_mandir}/man1
44 install mtx.pcf $RPM_BUILD_ROOT%{_datadir}/fonts/misc
45 install matrix.psf.gz $RPM_BUILD_ROOT%{_datadir}/consolefonts
46
47 gzip -9nf NEWS README README.fonts TODO \
48         $RPM_BUILD_ROOT%{_datadir}/fonts/misc/*
49
50 %post
51 cd %{_datadir}/fonts/misc/;
52 /usr/X11R6/bin/mkfontdir
53
54 %postun
55 cd %{_datadir}/fonts/misc/;
56 /usr/X11R6/bin/mkfontdir
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc *.gz
64 %attr(755,root,root) %{_bindir}/*
65 %{_datadir}/fonts/misc/*
66 %{_datadir}/consolefonts/*
67 %{_mandir}/man1/*
This page took 0.033434 seconds and 2 git commands to generate.