File cmatrix.spec of Package cmatrix
#
# spec file for package cmatrix (Version 1.2a)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: cmatrix
BuildRequires: ncurses-devel
%if %suse_version > 910
BuildRequires: xorg-x11 xorg-x11-devel
%else
BuildRequires: XFree86 XFree86-devel
%endif
%if "%(xft-config --prefix)" == "/usr"
%define fontdir /usr/share/fonts/misc
%else
%define fontdir /usr/X11R6/lib/X11/fonts/misc
%endif
%ifnarch s390 s390x
BuildRequires: kbd
%endif
Summary: The Console Screensaver in Accordance with Matrix
Version: 1.2a
Release: 315
License: GNU General Public License (GPL)
Group: Amusements/Toys/Screensavers
URL: http://www.asty.org/cmatrix/
Source: cmatrix-%{version}.tar.bz2
Patch0: cmatrix-%{version}-makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The console screensaver in accordance with Matrix.
Authors:
--------
Chris Allegretta <chrisa@asty.org>
%prep
%setup
%patch0
%build
aclocal
autoconf
automake -a
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --mandir=%{_mandir}
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/share/kbd/consolefonts
mkdir -p $RPM_BUILD_ROOT%{fontdir}
make DESTDIR=$RPM_BUILD_ROOT install
# workaround for build with modular Xorg
install -m644 mtx.pcf $RPM_BUILD_ROOT%{fontdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README TODO
%doc %{_mandir}/man1/*
/usr/bin/*
# workaround for build with modular Xorg
%dir %{fontdir}
%{fontdir}/*
%ifnarch s390 s390x
/usr/share/kbd/consolefonts/*
%endif
%changelog
* Fri Mar 30 2007 - rguenther@suse.de
- add ncurses-devel BuildRequires
* Thu Aug 10 2006 - mfabian@suse.de
- move fonts to /usr/share/fonts/misc (because of X11R7).
* Mon Jul 24 2006 - mmarek@suse.de
- workaround build with modular Xorg
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Sep 28 2004 - uli@suse.de
- no consolefonts on s390*
* Fri Jul 23 2004 - ro@suse.de
- added kbd to neededforbuild
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Mon Feb 10 2003 - vbobek@suse.cz
- update to version 1.2a:
* bugfixes
* matrix size is now allocated dynamically
* Thu Feb 21 2002 - pmladek@suse.cz
- fixed location of console fonts
- fixed file list
* Mon Nov 05 2001 - pmladek@suse.cz
- fixed for automake 1.5
* Fri Mar 16 2001 - pmladek@suse.cz
- new package
- added buildroot