forked from pool/awesome-branding-openSUSE
517dae68f8
use systemctl to shutdown and reboot OBS-URL: https://build.opensuse.org/request/show/234148 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/awesome-branding-openSUSE?expand=0&rev=7
76 lines
2.6 KiB
RPMSpec
76 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package awesome-branding-openSUSE
|
|
#
|
|
# Copyright (c) 2014 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
|
|
# PATCH-FIX-UPSTREAM awesome-branding-openSUSE-systemctl.patch glin@suse.com -- Use systemctl to allow the local user to reboot and shutdown the system without typing the password
|
|
Patch0: awesome-branding-openSUSE-systemctl.patch
|
|
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
|
|
%patch0 -p1
|
|
|
|
%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
|