1
0
awesome-vicious/awesome-vicious.spec

78 lines
2.8 KiB
RPMSpec

#
# spec file for package awesome-vicious
#
# Copyright (c) 2021 SUSE LLC
#
# 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 packname vicious
Name: awesome-vicious
Version: 2.5.0
Release: 0
Summary: Vicious plugins for awesome
License: GPL-2.0-or-later
Group: System/GUI/Other
URL: https://github.com/vicious-widgets/vicious
Source: %{url}/archive/v%{version}.tar.gz#/%{packname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: awesome >= 3.4.4
Recommends: awesome-freedesktop
Recommends: awesome-shifty
BuildArch: noarch
%description
Vicious is a modular widget library for the "awesome" window manager,
derived from the "Wicked" widget library. It has some of the old
Wicked widget types, a few of them rewritten, and a good number of new
ones.
Vicious widget types are a framework for creating your own awesome
widgets. Vicious contains modules that gather data about your system,
and a few helper functions that make it easier to register timers,
suspend widgets and so on.
For now Vicious doesn't depend on any third party Lua libraries, to
make it easier to install and use. That means some system utilities
are used instead, where available:
- hddtemp for the HDD Temperature widget type
- alsa-utils for the Volume widget type
- wireless_tools for the Wireless widget type
- curl for widget types accessing network resources
%prep
%setup -q -n %{packname}-%{version}
%build
%install
%{__install} -d %{buildroot}/%{_datadir}/awesome/lib/vicious/contrib
%{__install} -d %{buildroot}/%{_datadir}/awesome/lib/vicious/widgets
%{__install} -m 644 -D contrib/* %{buildroot}/%{_datadir}/awesome/lib/vicious/contrib
%{__install} -m 644 -D widgets/* %{buildroot}/%{_datadir}/awesome/lib/vicious/widgets
%{__install} -m 644 -D init.lua %{buildroot}/%{_datadir}/awesome/lib/vicious
%{__install} -m 644 -D helpers.lua %{buildroot}/%{_datadir}/awesome/lib/vicious
%{__install} -m 644 -D spawn.lua %{buildroot}/%{_datadir}/awesome/lib/vicious
%files
%doc README.md CHANGELOG.rst TODO
%license LICENSE
%dir %{_datadir}/awesome
%dir %{_datadir}/awesome/lib
%{_datadir}/awesome/lib/vicious
%changelog