/[smecontribs]/rpms/lcdproc/contribs8/lcdproc.spec
ViewVC logotype

Contents of /rpms/lcdproc/contribs8/lcdproc.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat Apr 12 20:09:00 2008 UTC (16 years, 7 months ago) by slords
Branch: MAIN
Import on branch contribs8 of package lcdproc-0.5.2-1.el5.sme.src.rpm

1 Summary: LCDproc displays real-time system information on a backlit LCD
2 Name: lcdproc
3 Version: 0.5.2
4 Release: 1%{?dist}
5 License: GPL
6 Url: http://lcdproc.omnipotent.net
7 Group: System Environment/Libraries
8 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
9 Patch0: lcdproc-0.5.2-scripts.patch
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12 BuildRequires: doxygen
13 BuildRequires: graphviz
14 BuildRequires: glibc-headers
15 BuildRequires: libusb-devel
16 BuildRequires: ncurses-devel
17 BuildRequires: nfs-utils-lib-devel
18 BuildRequires: openldap-devel
19 BuildRequires: pth-devel
20 BuildRequires: xmlto
21 BuildRequires: libX11-devel
22 BuildRequires: libXext-devel
23
24 %ifarch %{ix86} x86_64
25 BuildRequires: svgalib-devel
26 %endif
27
28 Requires(post): /sbin/chkconfig
29 Requires(postun): /sbin/chkconfig
30
31
32
33 %description
34 LCDproc is a client/server suite inclduding drivers for all
35 kinds of nifty LCD displays. The server supports several
36 serial devices: Matrix Orbital, Crystal Fontz, Bayrad, LB216,
37 LCDM001 (kernelconcepts.de), Wirz-SLI and PIC-an-LCD; and some
38 devices connected to the LPT port: HD44780, STV5730, T6963,
39 SED1520 and SED1330. Various clients are available that display
40 things like CPU load, system load, memory usage, uptime, and a lot more.
41 See also http://lcdproc.omnipotent.net.
42
43
44 %prep
45 %setup -q
46 %patch0 -p1 -b .initscripts
47 chmod 644 server/drivers/timing.h
48
49
50 %build
51 %configure --libdir=%{_libdir} \
52 --enable-libusb \
53 --enable-ldap \
54 --enable-drivers=all \
55 --enable-permissive-menu-goto \
56 --enable-lcdproc-menus \
57 --enable-stat-nfs \
58 --enable-stat-smbfs \
59 --with-lcdport=13666
60
61 sed -i -e 's|-L/usr/lib|-L%{_libdir}|g' Makefile
62
63 make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
64
65
66 %install
67 rm -rf $RPM_BUILD_ROOT __doc
68 make install DESTDIR=$RPM_BUILD_ROOT
69 make install-html-guides DESTDIR=$RPM_BUILD_ROOT
70
71 # Fix docs
72 mkdir -p __doc/developer-guide
73 mkdir -p __doc/user-guide
74 install -m 0644 $RPM_BUILD_ROOT%{_datadir}/doc/lcdproc/user-guide/* __doc/user-guide
75 install -m 0644 $RPM_BUILD_ROOT%{_datadir}/doc/lcdproc/developer-guide/* __doc/developer-guide
76 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
77
78 # init
79 install -d $RPM_BUILD_ROOT%{_initrddir}
80 install -pm 0755 scripts/init-LCDd.rpm $RPM_BUILD_ROOT%{_initrddir}/LCDd
81 install -pm 0755 scripts/init-lcdproc.rpm $RPM_BUILD_ROOT%{_initrddir}/lcdproc
82
83
84
85 %post
86 if [ $1 -eq 1 ]; then
87 # Add init script and but don't start it
88 /sbin/chkconfig --add LCDd
89 /sbin/chkconfig --add lcdproc ||:
90 fi
91
92
93 %preun
94 if [ $1 -eq 0 ]; then
95 # Disable driver on final removal
96 %{_initrddir}/lcdproc stop &>/dev/null
97 %{_initrddir}/LCDd stop &>/dev/null
98 /sbin/chkconfig --del lcdproc
99 /sbin/chkconfig --del LCDd ||:
100 fi
101
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT __doc
105
106 %files
107 %defattr(-,root,root,-)
108 %doc README* INSTALL COPYING CREDITS TODO ChangeLog
109 %doc docs/*.txt docs/README.* __doc/*
110 %{_bindir}/*
111 %dir %{_libdir}/lcdproc
112 %{_libdir}/lcdproc/*
113 %{_sbindir}/*
114 %{_mandir}/man?/*
115 %config(noreplace) %{_sysconfdir}/*.conf
116 %{_initrddir}/LCDd
117 %{_initrddir}/lcdproc
118
119
120 %changelog
121 * Sat May 19 2007 kwizart < kwizart at gmail.com > 0.5.2-1
122 - Update to 0.5.2
123 - Add BR
124 - Install docs
125
126 * Tue Apr 17 2007 kwizart < kwizart at gmail.com > 0.5.1-1
127 - Cleaned spec files for Fedora guidelines.
128
129 * Fri Sep 26 2003 TC Wan <tcwan@cs.usm.my>
130 - Fixed spec file for RH 9, made metar dependency optional
131
132 * Sun Oct 6 2002 Arnaud de Lorbeau <adelorbeau@mandrakesoft.com> 0.4.3-2mdk
133 - Add docs
134
135 * Thu Sep 12 2002 Nicolas Chipaux <chipaux@mandrakesoft.com> 0.4.3-1mdk
136 - new release
137
138 * Fri Oct 26 2001 Rex Dieter <rdieter@unl.edu> 0.4.1-1
139 - --enable-stat-smbfs
140 - TODO: make server/client init scripts
141
142 * Mon Oct 22 2001 Rex Dieter <rdieter@unl.edu> -0
143 - first try, 0.4.1
144 - --enable-stat-nfs
145

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed