]> git.pld-linux.org Git - packages/cmatrix.git/blobdiff - cmatrix.spec
- release 5
[packages/cmatrix.git] / cmatrix.spec
index 785ea3d77a8a02c4d80cdb18d315ed810073f559..968e53ddc261e5eeb355ee4f5ce57b2929848e80 100644 (file)
@@ -1,15 +1,20 @@
 Summary:       CMatrix - show a scrolling 'Matrix' like screen in Linux (curses based)
+Summary(pl):   CMatrix - pokazuje efekt spadaj±cych znaków znany z filmu "Matrix"
 Name:          cmatrix
-Version:       1.1b
-Release:       2
-License:       GPL
-Group:         Utilities/Console
-Group(pl):     Narzêdzia/Konsola
+Version:       1.2a
+Release:       5
+License:       GPL v2
+Group:         Applications/Terminal
 Source0:       http://www.asty.org/cmatrix/dist/%{name}-%{version}.tar.gz
-Patch0:                cmatrix-DESTDIR.patch
+# Source0-md5: ebfb5733104a258173a9ccf2669968a1
+Patch0:                %{name}-DESTDIR.patch
+Patch1:                %{name}-setfont-consolechars-choice.patch
 URL:           http://www.asty.org/cmatrix/
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: ncurses-devel >= 5.0
-Prereq:                /usr/X11R6/bin/mkfontdir
+Requires(post,postun): /usr/X11R6/bin/mkfontdir
+Requires:      kbd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -18,31 +23,45 @@ What is CMatrix? :-)
 CMatrix is a program I wrote one evening because I didn't want to have
 to run Wind*ws to see the cool scrolling lines from 'The Matrix', my
 fave movie. If you haven't seen this movie and you are a fan of
-computers or sci-fi in general, go see this movie!!! I have seen it
-twice, and I'm pondering seeing it again before it comes out on VHS.
+computers or sci-fi in general, go see this movie!!!
+
+%description -l pl
+What is CMatrix? :-)
+
+CMatrix zosta³ napisany w jeden wieczór by¶ nie musia³ uruchamiaæ M$
+Wind*ws, aby zobaczyæ na konsoli interesuj±c efekt spadaj±cych znaków
+znany z filmu "Matrix". Je¿eli nie widzia³e¶ tego filmu, a jeste¶
+fanem komputerów i sci-fi w ogólno¶ci - biegnij zobaczyæ ten film!!
 
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
-automake
-CFLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses"
-LDFLAGS="-s"
-export CFLAGS LDFLAGS
-%configure
+rm -f missing
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses"
+%configure \
+       --with-setfont
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_datadir}/{consolefonts,fonts/misc},%{_bindir}} \
+       $RPM_BUILD_ROOT%{_mandir}/man1
 
-%{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
-       Xmiscfontsdir=/usr/share/fonts/misc
+install cmatrix $RPM_BUILD_ROOT%{_bindir}
+install cmatrix.1 $RPM_BUILD_ROOT%{_mandir}/man1
+install mtx.pcf $RPM_BUILD_ROOT%{_datadir}/fonts/misc
+install matrix.psf.gz $RPM_BUILD_ROOT%{_datadir}/consolefonts
 
-gzip -9nf NEWS README README.fonts TODO \
-       $RPM_BUILD_ROOT%{_mandir}/man1/* \
-       $RPM_BUILD_ROOT%{_datadir}/fonts/misc/*
+gzip -9nf $RPM_BUILD_ROOT%{_datadir}/fonts/misc/*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post
 cd %{_datadir}/fonts/misc/;
@@ -52,12 +71,10 @@ cd %{_datadir}/fonts/misc/;
 cd %{_datadir}/fonts/misc/;
 /usr/X11R6/bin/mkfontdir
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
-%doc *.gz
+%doc NEWS README TODO ChangeLog
 %attr(755,root,root) %{_bindir}/*
 %{_datadir}/fonts/misc/*
+%{_datadir}/consolefonts/*
 %{_mandir}/man1/*
This page took 0.043472 seconds and 4 git commands to generate.