File LCDproc.spec of Package LCDproc (Revision 8)
Currently displaying revision 8, show latest
1
#
2
# spec file for package LCDproc (Version 0.5.4)
3
#
4
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
5
# This file and all modifications and additions to the pristine
6
# package are under the same license as the package itself.
7
#
8
# Please submit bugfixes or comments via http://bugs.opensuse.org/
9
#
10
11
# norootforbuild
12
%define _default_patch_fuzz 3
13
14
Name: LCDproc
15
%define tarname lcdproc
16
%if 0%?mandriva_version
17
BuildRequires: libusb libxorg-x11-devel lirc lirc-devel ncurses-devel xosd-devel
18
%endif
19
%if 0%?fedora_version
20
BuildRequires: libusb lirc lirc-devel ncurses-devel xorg-x11-devel xosd-devel
21
%endif
22
%if 0%?suse_version
23
BuildRequires: libusb lirc ncurses-devel xorg-x11-devel xorg-x11-libXext-devel xorg-x11-libXt-devel xosd-devel libserdisp-devel syslog autoconf automake
24
%if 0%?suse_version > 1110
25
BuildRequires: lirc-devel
26
%endif
27
%endif
28
Summary: Daemon capable of showing info on LCD displays
29
Group: Hardware/Other
30
Version: 0.5.5
31
Release: 1
32
License: GNU General Public License (GPL)
33
BuildRoot: %{_tmppath}/%{name}-%{version}-build
34
Url: http://lcdproc.omnipotent.net
35
Source: %{tarname}-%{version}.tar.bz2
36
Source1: LCDd
37
Patch1: lcdproc-fix-return.diff
38
Patch2: lcdproc-add-serdisplib-%{version}
39
Requires: ncurses
40
41
%description
42
LCDproc is a piece of software that displays real-time system
43
information from your Linux/*BSD box on a LCD.
44
45
46
47
Authors:
48
--------
49
William Ferrell (Choadstre) <willfe@yahoo.com>
50
51
%prep
52
%setup -n lcdproc-%{version}
53
%patch1 -p1
54
%patch2 -p1
55
sed -e "s#\(DriverPath\)=.*#\1=%{_libdir}/lcdproc/#" LCDd.conf > LCDd.conf.tmp
56
mv LCDd.conf.tmp LCDd.conf
57
58
%build
59
autoreconf
60
%configure --enable-libusb --enable-stat-nfs --enable-lcdproc-menus --enable-stat-smbfs --enable-drivers=all
61
make %{?jobs:-j%jobs}
62
63
%install
64
%makeinstall
65
# init script
66
mkdir -p $RPM_BUILD_ROOT/etc/init.d
67
install -c -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d
68
69
%post
70
%{fillup_and_insserv -n LCDd LCDd}
71
72
%preun
73
echo "Stopping LCDd ..."
74
%stop_on_removal LCDd
75
true # ignore errors
76
77
%postun
78
%restart_on_update LCDd
79
%insserv_cleanup
80
81
%clean
82
rm -rf $RPM_BUILD_ROOT
83
84
%files
85
%defattr(-, root, root)
86
%doc %{_mandir}/man?/*.*
87
%{_bindir}/*
88
%{_sbindir}/*
89
%{_libdir}/lcdproc
90
%exclude %{_libdir}/lcdproc/lirc.so
91
%exclude %{_libdir}/lcdproc/xosd.so
92
%config %{_sysconfdir}/init.d/*
93
%config %{_sysconfdir}/*.conf
94
95
%package lirc
96
Summary: Infrared driver for LCDproc
97
Group: Hardware/Other
98
Requires: %{name} = %{version} lirc
99
100
%description lirc
101
This driver allows LCDproc to display on devices connected by infrared
102
port.
103
104
105
106
Authors:
107
--------
108
William Ferrell (Choadstre) <willfe@yahoo.com>
109
110
111
112
113
114
%files lirc
115
%defattr(-, root, root)
116
%{_libdir}/lcdproc/lirc.so
117
%package xosd
118
Summary: XOsd driver for LCDproc
119
Group: Hardware/Other
120
Requires: %{name} = %{version} xosd xorg-x11-libXt xorg-x11-libXext xorg-x11
121
122
%description xosd
123
Driver for LCDproc allowing it to use X On-Screen Display as its output
124
device.
125
126
127
128
Authors:
129
--------
130
William Ferrell (Choadstre) <willfe@yahoo.com>
131
132
133
134
135
136
%files xosd
137
%defattr(-, root, root)
138
%{_libdir}/lcdproc/xosd.so
139
140
%changelog
141