File kdesudo.spec of Package kdesudo
#
# spec file for package kdesudo
#
# Copyright (c) 2008 Buschmann
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 dass IT GmbH
# Copyright (c) 2015 Wouter van Bommel
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
BuildRequires: kdebase4-workspace-devel
BuildRequires: cmake
Name: kdesudo
Summary: A sudo frontend for KDE
Url: https://code.launchpad.net/kdesudo/
Version: 3.4.2.4
Release: 1
License: GNU General Public License version 2 or later
Group: System/GUI/KDE
Source0: %{name}-%{version}.tar.gz
Requires: sudo
%kde4_runtime_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
KdeSudo is a sudo frontend for KDE originally developed by
Robert Gruber, and now maintained by Kubuntu developers.
KDE's normal KdeSu doesn't deal correctly with sudo, and is
only capable of authentication. It doesn't deal with sudo
specific features like NOPASSWD and so on.
KdeSudo acts like a wrapper for sudo commands, and
therefore, supports all "sudoers" file options.
It is command line compatible with KdeSu, and can replace it
simply with linking /usr/bin/kdesu to /usr/bin/kdesudo.
ATTENTION:
sudo must keep the DISPLAY and XAUTHORITY variable from the user.
You may need to add "DISPLAY XAUTHORITY" to following line in /etc/sudoers:
Defaults env_keep = "... "DISPLAY XAUTHORITY"
Authors:
--------
Robert Gruber
%prep
%setup -n %{name}-%{version}
# disable build documentation, because this causes problems
%{__mv} doc KdeSudo
%{__perl} -p -i -e 's,ADD_SUBDIRECTORY\(doc\),#ADD_SUBDIRECTORY(KdeSudo),' CMakeLists.txt
%build
%cmake_kde4
%make_jobs
%install
%kde4_makeinstall
%{__install} -dm 755 $RPM_BUILD_ROOT/%{_defaultdocdir}/KdeSudo
%{__install} -m 644 --target-directory=$RPM_BUILD_ROOT/%{_defaultdocdir}/KdeSudo README AUTHORS ChangeLog COPYING COPYING.DOC COPYING.LIB
# remove locale settings, that are not supported by distribution
for i in jv ms oc tl; do
rm -r $RPM_BUILD_ROOT/usr/share/locale/$i
done
%find_lang %{name} --all-name
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f kdesudo.lang
%defattr(-,root,root,-)
%doc %{_defaultdocdir}/KdeSudo/
%_bindir/kdesudo
%changelog
* Wed Apr 01 2015 wouter@vanbommelonline.nl
- add new version
* Tue Mar 06 2012 joerg.steffens@dass-it.de
- removed broken kdesudo.shell
* Wed Feb 29 2012 joerg.steffens@dass-it.de
- adapted for openSUSE 12.1 and kdesudo-3.4.2.3
* Thu Feb 19 2009 aharrison@gmail.com
- initial package