File awesome-branding-openSUSE.spec of Package awesome-branding-openSUSE

#
# spec file for package awesome-branding-openSUSE
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Togan Muftuoglu <toganm@opensuse.org>
#
# 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/
#


%define git_version 3.4.15-v0.1
%define main_pack awesome
Name:           awesome-branding-openSUSE
Version:        3.4.15
Release:        0
Url:            https://github.com/madanyang/awesome-branding-opensuse.git
Summary:        openSUSE Branding for awesome
License:        GPL-2.0+
Group:          System/GUI/Other
Supplements:    packageand(%{main_pack}:branding-openSUSE)
Provides:       %{main_pack}-branding = %{version}
Conflicts:      otherproviders(%main_pack-branding)
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %name-%git_version.tar.xz
Requires:       awesome-freedesktop
Requires:       awesome-vicious
Requires:       gnome-icon-theme
Requires:       nitrogen
Requires:       wallpaper-branding-openSUSE
Requires:       xscreensaver
Recommends:     awesome-shifty

%description
This package provides the openSUSE specific additions both for functions and
look and feel for awesome window manager.


%prep
%setup -q -n %name-%git_version

%build

%install
install -d %{buildroot}%{_sysconfdir}/xdg/awesome
install -d %{buildroot}%{_datadir}/awesome/lib
install -d %{buildroot}%{_datadir}/awesome/themes

install -m 644 calendar2.lua %{buildroot}%{_datadir}/awesome/lib/.
install -m 644 keydoc.lua %{buildroot}%{_datadir}/awesome/lib/.
cp -ar themes/  %{buildroot}%{_datadir}/awesome/
install -m 644 rc.lua %{buildroot}%{_sysconfdir}/xdg/awesome/rc.lua

%files
%defattr(-,root,root,-)
%doc README.openSUSE
%dir %{_sysconfdir}/xdg/awesome
%config(noreplace) %{_sysconfdir}/xdg/awesome/rc.lua
%dir %{_datadir}/awesome
%{_datadir}/awesome/lib
%{_datadir}/awesome/themes

%changelog
openSUSE Build Service is sponsored by