diff --git a/README.md b/README.md index 7499177..e7c7eb7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # lxqt-policykit +lxqt-policykit is the polkit authentification agent of LXQt. + diff --git a/lxqt-policykit.spec b/lxqt-policykit.spec new file mode 100644 index 0000000..ef3c6e3 --- /dev/null +++ b/lxqt-policykit.spec @@ -0,0 +1,62 @@ +Name: lxqt-policykit +Version: 0.15.0 +Release: 1mamba +Summary: The polkit authentification agent of LXQt +Group: Graphical Desktop/Applications/Utilities +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/lxqt/lxqt-policykit +Source: https://github.com/lxqt/lxqt-policykit.git/%{version}/lxqt-policykit-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libgcc +BuildRequires: libglib-devel +BuildRequires: libkwindowsystem-devel +BuildRequires: liblxqt-devel +BuildRequires: libpolkit-devel +BuildRequires: libpolkit-qt5-1-devel +BuildRequires: libqt5-devel +BuildRequires: libqtxdg-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +lxqt-policykit is the polkit authentification agent of LXQt. + +%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) +%{_sysconfdir}/xdg/autostart/lxqt-policykit-agent.desktop +%{_bindir}/lxqt-policykit-agent +%{_mandir}/man1/lxqt-policykit-agent.1* +%doc AUTHORS LICENSE + +%changelog +* Fri Oct 02 2020 Silvan Calarco 0.15.0-1mamba +- package created using the webbuild interface