File cbatticon.spec of Package cbatticon
#
# spec file for package cbatticon
#
# Copyright (c) 2019 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/
#
Name: cbatticon
Version: 1.6.9
Release: 0
Summary: A lightweight and fast battery icon that sits in your system tray
License: GPL-2.0-only
Group: System/Monitoring
URL: https://github.com/valr/cbatticon
Source0: https://github.com/valr/cbatticon/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libnotify)
%description
A lightweight and fast battery icon that sits in your system tray.
Based on code from xbattbar-acpi.
%lang_package
%prep
%setup -q
%build
make %{?_smp_mflags}
%install
# Upstream uses DOCDIR=%%{_docdir}/%%{name}-%%{version} which isn't following standards for %%doc on openSUSE
%make_install DOCDIR=%{_docdir}/%{name}
%find_lang %{name}
%files
%{_bindir}/%{name}
%{_mandir}/man?/%{name}.?%{ext_man}
%doc Changelog README
%license COPYING
%files lang -f %{name}.lang
%changelog