File vdr-plugin-systeminfo.spec of Package vdr-plugin-systeminfo
#
# spec file for package vdr-plugin-systeminfo
#
# Copyright (c) 2018 SUSE LINUX 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 https://bugs.opensuse.org/
#
%define pluginname systeminfo
Name: vdr-plugin-%{pluginname}
Version: 0.1.4
Release: 0
Summary: Shows some system-information on the OSD
License: GPL-2.0-only
Group: Hardware/TV
Url: http://firefly.vdr-developer.org/systeminfo/
Source0: http://firefly.vdr-developer.org/systeminfo/vdr-systeminfo-%{version}.tar.bz2
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: vdr-devel
# Requires(pre) is not enough, as it does not work on updates
Requires: vdr(abi) = %{vdr_apiversion}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This plugin for Klaus Schmidinger's Video Disc Recorder VDR displays system informations like CPU type and speed, disk and swap space etc. It uses the output of an external script (systeminfo.sh) which can be freely customized to the personal needs.
%prep
%setup -q -n %{pluginname}-%{version}
%build
# use msgmerge wrapper
export PATH=%{_datadir}/vdr:$PATH
make %{?smp_mflags}
%install
make install DESTDIR=%{buildroot}
%{vdr_find_locale}
%files -f vdrlocale.files
%defattr(-,root,root)
%{_libdir}/vdr/*
%{vdr_dirs}
%doc HISTORY README scripts/systeminfo.sh
%license COPYING
%changelog