-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmatrix.spec
46 lines (45 loc) · 1.37 KB
/
cmatrix.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
%define name cmatrix
%define ver 1.2a
%define rel 1
Summary: CMatrix simulates the display from "The Matrix"
Name: %{name}
Version: %{ver}
Release: %{rel}
Group: Amusements/Graphics
Copyright: GPL
Packager: [email protected]
URL: http://www.asty.org/cmatrix/
Source0: http://www.asty.org/cmatrix/dist/cmatrix-%{ver}.tar.gz
#Provides: none
Requires: ncurses
#Conflicts: none
BuildRoot: /var/tmp/%{name}-buildroot
%Description
CMatrix is based on the screensaver from The Matrix website. It works
with terminal settings up to 132x300 and can scroll lines all at the same
rate or asynchronously and at a user-defined speed.
%Prep
%setup
%Build
./configure --prefix=/usr --mandir=/usr/share/man
make
%Install
rm -rf $RPM_BUILD_ROOT
make DESTDIR="$RPM_BUILD_ROOT" install
mkdir -p $RPM_BUILD_ROOT/usr/lib/kbd/consolefonts
mkdir -p $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc
strip cmatrix
install matrix.fnt $RPM_BUILD_ROOT/usr/lib/kbd/consolefonts
install matrix.psf.gz $RPM_BUILD_ROOT/usr/lib/kbd/consolefonts
install mtx.pcf $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc
mkfontdir $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README COPYING ChangeLog AUTHORS INSTALL NEWS TODO
%{_bindir}/cmatrix
%{_mandir}/*/*
/usr/lib/kbd/consolefonts/matrix.psf.gz
/usr/lib/kbd/consolefonts/matrix.fnt
/usr/X11R6/lib/X11/fonts/misc/mtx.pcf