Search
j0ke.net Open Build Service
>
Projects
>
NASlinux
>
LCDproc
> LCDproc.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File LCDproc.spec of Package LCDproc
# # spec file for package LCDproc (Version 0.5.4) # # 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 %define _default_patch_fuzz 3 Name: LCDproc %define tarname lcdproc %if 0%?mandriva_version BuildRequires: libusb libxorg-x11-devel lirc lirc-devel ncurses-devel xosd-devel %endif %if 0%?fedora_version BuildRequires: libusb lirc lirc-devel ncurses-devel xorg-x11-devel xosd-devel %endif %if 0%?suse_version BuildRequires: libusb lirc ncurses-devel xorg-x11-devel xorg-x11-libXext-devel xorg-x11-libXt-devel xosd-devel libserdisp-devel syslog %if 0%?suse_version > 1110 BuildRequires: lirc-devel %endif %endif Summary: Daemon capable of showing info on LCD displays Group: Hardware/Other Version: 0.5.5 Release: 1 License: GNU General Public License (GPL) BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: http://lcdproc.omnipotent.net Source: %{tarname}-%{version}.tar.bz2 Source1: LCDd Patch1: lcdproc-fix-return.diff Patch2: lcdproc-add-serdisplib-%{version} Requires: ncurses %description LCDproc is a piece of software that displays real-time system information from your Linux/*BSD box on a LCD. Authors: -------- William Ferrell (Choadstre) <willfe@yahoo.com> %prep %setup -n lcdproc-%{version} %patch1 -p1 %patch2 -p1 sed -e "s#\(DriverPath\)=.*#\1=%{_libdir}/lcdproc/#" LCDd.conf > LCDd.conf.tmp mv LCDd.conf.tmp LCDd.conf %build #autoreconf %configure --enable-libusb --enable-stat-nfs --enable-lcdproc-menus --enable-stat-smbfs --enable-drivers=all make %{?jobs:-j%jobs} %install %makeinstall # init script mkdir -p $RPM_BUILD_ROOT/etc/init.d install -c -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d %post %{fillup_and_insserv -n LCDd LCDd} %preun echo "Stopping LCDd ..." %stop_on_removal LCDd true # ignore errors %postun %restart_on_update LCDd %insserv_cleanup %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc %{_mandir}/man?/*.* %{_bindir}/* %{_sbindir}/* %{_libdir}/lcdproc %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 port. Authors: -------- William Ferrell (Choadstre) <willfe@yahoo.com> %files lirc %defattr(-, root, root) %{_libdir}/lcdproc/lirc.so %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 device. Authors: -------- William Ferrell (Choadstre) <willfe@yahoo.com> %files xosd %defattr(-, root, root) %{_libdir}/lcdproc/xosd.so %changelog