File g15daemon.spec of Package g15daemon

BuildRequires:  libusb-devel libg15-devel libg15render-devel
Name:           g15daemon
Url:            http://g15tools.sourceforge.net/
License:        GPL
Packager:       Dgege - <georgesak@gmail.com>
Group:          Hardware/Other
PreReq:         %fillup_prereq
Version:        1.9.5.3
Release:        1
Summary:        The G15daemon is a userspace driver/multiplexer for the keyboard and its LCD
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64 ppc ppc64 ia64
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}.rc.suse

%description
The G15daemon is a userspace driver/multiplexer for the keyboard and its LCD, using libg15 for low-level keyboard control. Some of the features of g15daemon are:
  *Allows all extra G15 keys to be used in applications.
  *It allows for multiple simultaneous LCD clients.
  *Virtualises the LCD, the user can select which application is displayed with a simple keypress.
  *Clients talk to the daemon via a simple protocol.
  *Client applications have full control over LCD backlight and contrast.
  *Perl and Python bindings are available in the archive. 
  *Lcdproc 5.1 contains a driver to talk to the daemon.
  *A patch is available in the archive for version 1.3 of libgraphlcd, which allows any application using graphlcd to now use the keyboard's LCD via the daemon.  [The SVN version of graphlcd now includes the driver this patch provided].
  *Shell scripts can talk to the daemon via g15composer.
  *G15daemon now has Mac OS X support. Check out the download section for some binary files. A Mac OS X howto is also available (Thanks to Fabrizio Sestito).  

%package devel
Summary:        Header files, libraries and development documentation for g15daemon
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
This package contains the header files, static libraries and
development documentation for g15daemon. If you like to develop
programs using g15daemon, you will need to install this package.

%prep
%setup

%build
%ifarch x86_64
./configure --prefix=/usr --libdir=/usr/lib64   
%else
./configure --prefix=/usr
%endif
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/init.d
cp %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d/g15daemon
ln -sf /etc/init.d/g15daemon $RPM_BUILD_ROOT/usr/sbin/rcg15daemon
chmod +x $RPM_BUILD_ROOT/etc/init.d/g15daemon

%files
%defattr(-, root, root)
%doc %{_prefix}/share/doc/g15daemon-%{version}/AUTHORS
%doc %{_prefix}/share/doc/g15daemon-%{version}/ChangeLog
%doc %{_prefix}/share/doc/g15daemon-%{version}/FAQ
%doc %{_prefix}/share/doc/g15daemon-%{version}/LICENSE
%doc %{_prefix}/share/doc/g15daemon-%{version}/NEWS
%doc %{_prefix}/share/doc/g15daemon-%{version}/README*
%doc %{_prefix}/share/doc/g15daemon-%{version}/TODO
/etc/init.d/g15daemon
%{_sbindir}/g15daemon
%{_sbindir}/rcg15daemon
%{_libdir}/libg15daemon_client.so
%{_libdir}/libg15daemon_client.so.1
%{_libdir}/libg15daemon_client.so.1.0.2
%{_libdir}/g15daemon/%{version}/plugins/g15plugin_clock.so
%{_libdir}/g15daemon/%{version}/plugins/g15plugin_uinput.so
%{_libdir}/g15daemon/%{version}/plugins/g15plugin_tcpserver.so
%{_prefix}/share/g15daemon/splash/g15logo2.wbmp
%{_mandir}/man1/*

%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/libg15daemon_client.a
%{_libdir}/libg15daemon_client.la
%{_libdir}/g15daemon/%{version}/plugins/g15plugin_clock.a
%{_libdir}/g15daemon/%{version}/plugins/g15plugin_clock.la
%{_libdir}/g15daemon/%{version}/plugins/g15plugin_tcpserver.a
%{_libdir}/g15daemon/%{version}/plugins/g15plugin_tcpserver.la
%{_libdir}/g15daemon/%{version}/plugins/g15plugin_uinput.a
%{_libdir}/g15daemon/%{version}/plugins/g15plugin_uinput.la
%{_mandir}/man3/*
openSUSE Build Service is sponsored by