File awesome-copycats-themes.spec of Package awesome-copycats-themes
#
# spec file for package awesome-copycats-themes
#
# Copyright (c) 2015 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: awesome-copycats-themes
Version: @service@
Release: 0
License: CC-BY-SA-3.0
Summary: Power themes for Awesome WM 3.5+
Url: https://github.com/copycat-killer/awesome-copycats
Group: System/GUI/Other
Source: awesome-copycats-%{version}.tar.xz
BuildRequires: fdupes
Requires: awesome >= 3.5
Requires: awesome-eminent
Requires: awesome-lain
Requires: awesome-menugen
Requires: awesome-scratchdrop
Recommends: rxvt-unicode
Recommends: unclutter
Recommends: xsel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A set of themes with the aim of making Awesome appearance awesome too!
Notable features:
* Autohide widgets (tell me only when you have to)
* Autostart applications
* Fast MPD and volume shortcuts (first time you see this trick in Awesome)
* Other shortcuts for copying to the clipboard (goodbye clipboard managers!),
toggle wiboxes, widgets popups, screenshots capture, moving and magnifying
clients
* Quake drop-down terminal
* Calendar with current day highlighted and months switch with a click
* Elegant notifications for new mails, current song, volume level, hdd
critical state, low battery
* OpenWeatherMap integration
* Net carrier status notifier
* Colorful autoupdating icons
* Symbolic tag names
* TXT layoutbox
* PNG wibox bar
* Custom layouts
* No borders when there's only one visible client
* Powerful volume bar
* Menubar menu
* Vi-like client focus
* Nice client border (colors change along with processes status)
* Non-empty tag browsing
* Dynamic useless gaps
* Dynamic tagging
%package -n awesome-eminent
License: WTFPL
Summary: Layouts, widgets and utilities for Awesome WM 3.5+
Group: System/GUI/Other
Requires: awesome >= 3.5
%description -n awesome-eminent
Layouts, widgets and utilities for Awesome WM 3.5+
Effortless wmii-style dynamic tagging.
%package -n awesome-menugen
Summary: Layouts, widgets and utilities for Awesome WM 3.5+
Group: System/GUI/Other
Requires: awesome >= 3.5
%description -n awesome-menugen
Layouts, widgets and utilities for Awesome WM 3.5+
Generate a start menu in awesome.
%package -n awesome-scratchdrop
License: WTFPL
Summary: Layouts, widgets and utilities for Awesome WM 3.5+
Group: System/GUI/Other
Requires: awesome >= 3.5
%description -n awesome-scratchdrop
Layouts, widgets and utilities for Awesome WM 3.5+
Drop-down applications manager for the awesome window manager.
%prep
%setup -q -n awesome-copycats-%{version}
sed -i 's|^\(beautiful\.init\).*config|\1\("/usr/share|' rc.lua.*
sed -i 's|os\.getenv.*config|\"/usr/share|' themes/*/theme.lua
%build
%install
install -dm 0755 %{buildroot}%{_sysconfdir}/xdg/awesome
install -Dm 0644 rc.lua.* %{buildroot}%{_sysconfdir}/xdg/awesome
install -dm 0755 %{buildroot}%{_datadir}/awesome
cp -a themes %{buildroot}%{_datadir}/awesome/
install -dm 0755 %{buildroot}%{_datadir}/awesome/lib/{eminent,menugen,scratchdrop}
install -Dm 0644 eminent/*.lua %{buildroot}%{_datadir}/awesome/lib/eminent
install -Dm 0644 menugen/*.lua %{buildroot}%{_datadir}/awesome/lib/menugen
install -Dm 0644 scratchdrop/*.lua %{buildroot}%{_datadir}/awesome/lib/scratchdrop
%fdupes %{buildroot}%{_datadir}/awesome/themes
%files
%defattr(0644,root,root,0755)
%doc README.rst
%dir %{_sysconfdir}/xdg/awesome
%config(noreplace) %{_sysconfdir}/xdg/awesome/rc.lua.*
%dir %{_datadir}/awesome
%{_datadir}/awesome/themes
%files -n awesome-eminent
%defattr(-,root,root)
%dir %{_datadir}/awesome
%dir %{_datadir}/awesome/lib
%{_datadir}/awesome/lib/eminent
%files -n awesome-menugen
%defattr(-,root,root)
%dir %{_datadir}/awesome
%dir %{_datadir}/awesome/lib
%{_datadir}/awesome/lib/menugen
%files -n awesome-scratchdrop
%defattr(-,root,root)
%dir %{_datadir}/awesome
%dir %{_datadir}/awesome/lib
%{_datadir}/awesome/lib/scratchdrop