Skip to content

Commit

Permalink
Added setting wayland_specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
t0fik committed Sep 30, 2022
1 parent b5f8210 commit f8fa0ab
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ly.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: ly
Version: 0.5.3
Release: 2%{?dist}
Release: 3%{?dist}
Summary: a TUI display manager

License: WTFPL
Expand Down Expand Up @@ -28,7 +28,10 @@ Ly is a lightweight TUI (ncurses-like) display manager for Linux and BSD.
%build
%make_build
mv -f res/config.ini config.ini_orig
awk '{print}/#save_file/{print "save_file = %{_sharedstatedir}/%{name}/save"}' config.ini_orig > res/config.ini
awk '{print}
/#save_file/{print "save_file = %{_sharedstatedir}/%{name}/save"}
/#wayland_specifier/{print "wayland_specifier = true"}
' config.ini_orig > res/config.ini


%install
Expand Down Expand Up @@ -58,12 +61,15 @@ restorecon -R %{_bindir}/ly %{_sharedstatedir}/%{name} || :
%systemd_preun %{name}.service

%postun
if [ $1 -eq 0];then
if [ $1 -eq 0 ];then
semanage fcontext --delete --type xdm_exe_t '%{_bindir}/ly' 2>/dev/null || :
semanage fcontext --delete --type xdm_var_lib_t '%{_sharedstatedir}/%{name}' 2>/dev/null || :
fi

%changelog
* Fri Sep 30 2022 Jerzy Drozdz <[email protected]> - 0.5.3-3
- Added wayland_specifier = true

* Fri Sep 30 2022 Jerzy Drozdz <[email protected]> - 0.5.3-2
- Added setting SELinux contexts
- Added configuration option for state files
Expand Down

0 comments on commit f8fa0ab

Please sign in to comment.