File g15stats.spec of Package g15stats
#
# spec file for package g15stats
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name:           g15stats
Version:        1.9.7
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  g15daemon-devel
BuildRequires:  libg15-devel
BuildRequires:  libg15render-devel
BuildRequires:  libgtop-devel
BuildRequires:  libusb-devel
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
%{?systemd_requires}
#BuildRequires:  gcc
#BuildRequires:  make
#BuildRequires:  pkg-config
URL:            http://sourceforge.net/projects/g15daemon/
Source:         g15stats-1.9.7.tar.bz2
Source1:        %{name}.service
Summary:        G15 Statistics
License:        GPL-2.0+
Group:          System/Monitoring
%description
G15 Statistics shows on the g15 LCD the Following:
* Load statistics [User/Systerm, Load Average, Uptime]
* Memory Statistics [User/Buffers/Cache]
* Swap Statistics
%prep
%setup
%build
./autogen.sh
%{configure}
%{__make} %{?_smp_mflags}
%install
%{makeinstall}
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
cp %{S:1} $RPM_BUILD_ROOT/%{_unitdir}/%{name}.service
rm -f $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/INSTALL
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README  
%{_bindir}/g15stats  
%{_unitdir}/%{name}.service
/usr/share/doc/%{name}-%{version}/AUTHORS  
/usr/share/doc/%{name}-%{version}/COPYING  
/usr/share/doc/%{name}-%{version}/ChangeLog  
/usr/share/doc/%{name}-%{version}/NEWS  
/usr/share/doc/%{name}-%{version}/README  
%dir /usr/share/doc/%{name}-%{version}
%pre
%service_add_pre g15stats.service
%post
%service_add_pre g15stats.service
%preun
%service_del_preun g15stats.service
%postun
%service_del_preun g15stats.service
%changelog