From cd1f5c5968a7b6c30b4c0aa924d18af0e75d6ae4 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:37:36 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.15.0-1mamba;Fri Oct 16 2020] --- README.md | 2 ++ lxqt-sudo.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 lxqt-sudo.spec diff --git a/README.md b/README.md index e488490..7aaaece 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # lxqt-sudo +lxqt-sudo is a graphical front-end of commands sudo and su respectively. As such it enables regular users to launch applications with permissions of other users including root. + diff --git a/lxqt-sudo.spec b/lxqt-sudo.spec new file mode 100644 index 0000000..f5b306a --- /dev/null +++ b/lxqt-sudo.spec @@ -0,0 +1,63 @@ +Name: lxqt-sudo +Version: 0.15.0 +Release: 1mamba +Summary: A graphical front-end of commands sudo and su respectively +Group: Graphical Desktop/Applications/Utilities +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/lxqt/lxqt-sudo +Source: https://github.com/lxqt/lxqt-sudo.git/%{version}/lxqt-sudo-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libgcc +BuildRequires: libglib-devel +BuildRequires: libkwindowsystem-devel +BuildRequires: liblxqt-devel +BuildRequires: libqt5-devel +BuildRequires: libqtxdg-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +lxqt-sudo is a graphical front-end of commands sudo and su respectively. As such it enables regular users to launch applications with permissions of other users including root. + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +find %{buildroot}%{_datadir}/*/translations/ -name *.qm | \ +while read line; do + bn=`echo ${line}|cut -d_ -f2-3` + echo "%lang(${bn/.*}) ${line/*-root}" >> %{name}.lang +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.lang +%defattr(-,root,root) +%{_bindir}/lxqt-sudo +%{_bindir}/lxsu +%{_bindir}/lxsudo +%{_mandir}/man1/lxqt-sudo.1* +%{_mandir}/man1/lxsu.1* +%{_mandir}/man1/lxsudo.1* +%doc AUTHORS LICENSE + +%changelog +* Fri Oct 16 2020 Silvan Calarco 0.15.0-1mamba +- package created using the webbuild interface