diff --git a/README.md b/README.md index bd4a8aa..236be43 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # polkit-kde-agent-1 +KDE authentication agent for polkit. + diff --git a/polkit-kde-agent-1-0.99.0-bring_the_auth_dialog_to_the_front.patch b/polkit-kde-agent-1-0.99.0-bring_the_auth_dialog_to_the_front.patch new file mode 100644 index 0000000..eef101a --- /dev/null +++ b/polkit-kde-agent-1-0.99.0-bring_the_auth_dialog_to_the_front.patch @@ -0,0 +1,28 @@ +From: Jonathan Thomas +Date: Wed, 19 Jan 2011 15:21:53 +0000 +Subject: Bring the auth dialog to the front when it is shown. Otherwise it pops up behind the app requesting it and the user never sees it. +X-Git-Url: http://quickgit.kde.org/?p=polkit-kde-agent-1.git&a=commitdiff&h=0701f84a57156f8f584bb4fe928811a26ceefcf0 +--- +Bring the auth dialog to the front when it is shown. Otherwise it pops up behind the app requesting it and the user never sees it. +--- + + +--- a/policykitlistener.cpp ++++ b/policykitlistener.cpp +@@ -22,6 +22,7 @@ + #include "AuthDialog.h" + + #include ++#include + + #include + #include +@@ -100,6 +101,7 @@ void PolicyKitListener::initiateAuthenti + kDebug() << "WinId of the dialog is " << m_dialog.data()->winId() << m_dialog.data()->effectiveWinId(); + m_dialog.data()->setOptions(); + m_dialog.data()->show(); ++ KWindowSystem::forceActiveWindow(m_dialog.data()->winId()); + kDebug() << "WinId of the shown dialog is " << m_dialog.data()->winId() << m_dialog.data()->effectiveWinId(); + + m_numTries = 0; + diff --git a/polkit-kde-agent-1.spec b/polkit-kde-agent-1.spec new file mode 100644 index 0000000..ebb30fb --- /dev/null +++ b/polkit-kde-agent-1.spec @@ -0,0 +1,68 @@ +Name: polkit-kde-agent-1 +Version: 0.99.0 +Release: 2mamba +Summary: KDE authentication agent for polkit +Group: Graphical Desktop/Applications/Security +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.kde.org +Source: ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-agent-1-%{version}.tar.bz2 +Patch0: %{name}-0.99.0-bring_the_auth_dialog_to_the_front.patch +License: GPL +BuildRequires: cmake +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: kdelibs4-devel +BuildRequires: libgcc +BuildRequires: libqt4-devel +BuildRequires: libstdc++6-devel +BuildRequires: polkit-qt-1-devel >= 0.99.0 + ## AUTOBUILDREQ-END +Obsoletes: polkit-kde-1 +Provides: polkit-kde-1 = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +KDE authentication agent for polkit. + +%prep +%setup -q +%patch0 -p1 + +%build +%cmake_kde4 -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%find_lang polkit-kde-authentication-agent-1 + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f polkit-kde-authentication-agent-1.lang +%defattr(-,root,root) +%{_kde4_autostartdir}/polkit-kde-authentication-agent-1.desktop +%{_kde4_datadir}/policykit1-kde/policykit1-kde.notifyrc +%{_kde4_libexecdir}/polkit-kde-authentication-agent-1 +%doc COPYING + +%changelog +* Sun Feb 19 2012 Silvan Calarco 0.99.0-2mamba +- added upstream patch to bring authentication dialog to the front when it is shown + +* Sat Jan 29 2011 Davide Madrisan 0.99.0-1mamba +- update to 0.99.0 +- renamed to polkit-kde-agent-1 + +* Sat Jan 29 2011 Davide Madrisan 0.95.1-3mamba +- rebuilt against latest polkit-qt-1 + +* Mon May 31 2010 Silvan Calarco 0.95.1-2mamba +- added gcc45 ftbfs patch + +* Mon Apr 05 2010 Silvan Calarco 0.95.1-1mamba +- package created by autospec