LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File LCDproc.spec of Package LCDproc (Project home:sagiben)

# spec file for package LCDproc (Version 0.5.2)
# 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:           LCDproc
%define tarname  lcdproc
Summary:        Daemon capable of showing info on LCD displays
Group:          Hardware/Other
Version:        0.5.7
Release:        0
License:        GNU General Public License (GPL)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://lcdproc.omnipotent.net
Source:         http://garr.dl.sourceforge.net/project/lcdproc/lcdproc/%{version}/%{tarname}-%{version}.tar.gz
Source1:        LCDd
Patch1:         lcdproc-fix-return.diff
Patch2:         lcdproc-add-serdisplib
Requires:       ncurses
BuildRequires:	autoconf automake libtool
BuildRequires:  libusb
BuildRequires:	lirc lirc-devel
BuildRequires:	ncurses-devel
BuildRequires:	xosd-devel
%if 0%?mandriva_version
BuildRequires:	libxorg-x11-devel
%if 0%?fedora_version 
BuildRequires:	xorg-x11-devel 
%if 0%?suse_version
BuildRequires:	xorg-x11-devel 
BuildRequires:	xorg-x11-libXext-devel 
BuildRequires:	xorg-x11-libXt-devel 
BuildRequires:	serdisplib-devel

LCDproc is a piece of software that displays real-time system
information from your Linux/*BSD box on a LCD.

    William Ferrell (Choadstre) <willfe@yahoo.com>

%setup -n lcdproc-%{version}
%patch1 -p1
## Does not apply any more; use glcd-serdisp instead?
# %patch2 -p1
sed -e "s#\(DriverPath\)=.*#\1=%{_libdir}/lcdproc/#" LCDd.conf > LCDd.conf.tmp
mv LCDd.conf.tmp LCDd.conf

%configure --enable-libusb --enable-stat-nfs --enable-lcdproc-menus --enable-stat-smbfs --enable-drivers=all
make %{?jobs:-j%jobs}

# init script
mkdir -p $RPM_BUILD_ROOT/etc/init.d
install -c -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d

%{fillup_and_insserv -n LCDd LCDd}

echo "Stopping LCDd ..."
%stop_on_removal LCDd
true   # ignore errors

%restart_on_update LCDd


%defattr(-, root, root)
%doc %{_mandir}/man?/*.*
%exclude %{_libdir}/lcdproc/lirc.so
%exclude %{_libdir}/lcdproc/xosd.so
%config %{_sysconfdir}/init.d/*
%config %{_sysconfdir}/*.conf

%package lirc
Summary:        Infrared driver for LCDproc
Group:          Hardware/Other
Requires:       %{name} = %{version} lirc

%description lirc
This driver allows LCDproc to display on devices connected by infrared

    William Ferrell (Choadstre) <willfe@yahoo.com>

%files lirc
%defattr(-, root, root)
%package xosd
Summary:        XOsd driver for LCDproc
Group:          Hardware/Other
Requires:       %{name} = %{version} xosd xorg-x11-libXt xorg-x11-libXext xorg-x11

%description xosd
Driver for LCDproc allowing it to use X On-Screen Display as its output

    William Ferrell (Choadstre) <willfe@yahoo.com>

%files xosd
%defattr(-, root, root)