Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:AndnoVember:LXQt
bunsen-exit
bunsen-exit.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bunsen-exit.spec of Package bunsen-exit
# # spec file for package bunsen-exit # # Copyright (c) 2020 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 build_bash 1 Name: bunsen-exit Version: @SERVICE@ Release: 0 Summary: A convenient dialog to exit your session License: GPL-3.0-only Group: System/X11/Utilities URL: https://github.com/BunsenLabs/bunsen-utilities Source: %{name}-%{version}.tar.xz BuildRequires: xz Requires: dbus-1-python Requires: python-gtk Requires: upower Provides: bl-exit BuildArch: noarch %description Bunsen logout script. GUI logout/shutdown/restart/suspend script, for systems using systemd. From cb-exit by Philip Newborough %package -n %{name}-bash Summary: Init and desktop agnostic YAD based Logout/Exit dialogue License: GPL-3.0-only Requires: yad Suggests: light-locker #uggests: vlock %description -n %{name}-bash Bunsenlabs exit dialog, offering various exit options via both GUI and CLI. %prep %setup -q sed -i "s|/etc|%{_sysconfdir}/xdg|g" `grep -rl '/etc'` sed -i 's|images/bunsen/|bunsen-|g' `grep -rl 'images/bunsen/'` sed -i "1s|%{_bindir}/env\ ba|/bin/|" bin/bl-exit sed -i '1s|/env\ python.*|/python|' bin-python/bl-exit %build %install %if %{build_bash} install -Dm 0755 bin/bl-exit %{buildroot}%{_bindir}/bl-exit.sh if [ "$(grep -n '^#!/' README.upstream | awk -F\: '{print $1}')" == "13" ]; then install -Dm 0755 README.upstream %{buildroot}%{_bindir}/bl-exit-upstream.sh sed -i '1,12d' %{buildroot}%{_bindir}/bl-exit-upstream.sh sed -i "1s|%{_bindir}/env\ ba|/bin/|" %{buildroot}%{_bindir}/bl-exit-upstream.sh else echo -e "\e[01;31mfalse\e[0m" fi %endif install -Dm 0755 bin-python/bl-exit %{buildroot}%{_bindir}/ install -Dm 0644 bl-exitrc -t %{buildroot}%{_sysconfdir}/xdg/bl-exit/ cp -a styles %{buildroot}%{_sysconfdir}/xdg/bl-exit/ install -dm 0755 %{buildroot}%{_datadir}/%{name} cp -a img/dark img/light %{buildroot}%{_datadir}/%{name}/ %files %license LICENSE %doc README %dir %{_sysconfdir}/xdg/bl-exit %config(noreplace) %{_sysconfdir}/xdg/bl-exit/bl-exitrc %dir %{_sysconfdir}/xdg/bl-exit/styles %config(noreplace) %{_sysconfdir}/xdg/bl-exit/styles/*.rc %{_bindir}/bl-exit %{_datadir}/%{name} %if %{build_bash} %files -n %{name}-bash %license LICENSE %doc README.upstream %{_bindir}/bl-exit*.sh %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor