File yast2-sudo.spec of Package yast2-sudo

#
# spec file for package yast2-sudo (Version 2.17.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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


Name:           yast2-sudo
Version:        2.17.2
Release:        1
License:        GPL v2 or later
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-sudo-2.17.2.tar.bz2
Prefix:         /usr
Requires:       yast2 yast2-users
#ycp::PathComponents
Conflicts:      yast2-core < 2.13.29
#Sudo icons
Conflicts:      yast2_theme < 2.13.9
BuildRequires:  perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-testsuite yast2-users
BuildArch:      noarch
Summary:        YaST2 - sudo configuration

%description
The YaST2 component for sudo configuration. It configures capabilities
of users to run commands as root or other user.



Authors:
--------
    Katarina Machalkova <kmachalkova@suse.cz>

%prep
%setup -n yast2-sudo-2.17.2

%build
%{prefix}/bin/y2tool y2autoconf
%{prefix}/bin/y2tool y2automake
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
%{?suse_update_config:%{suse_update_config -f}}
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir}
make %{?jobs:-j%jobs}

%install
make install DESTDIR="$RPM_BUILD_ROOT"
[ -e "%{prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT"
for f in `find $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/ -name "*.desktop"` ; do
    d=${f##*/}
    %suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}
done

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%dir /usr/share/YaST2/include/sudo
/usr/share/YaST2/include/sudo/*
/usr/share/YaST2/clients/sudo.ycp
/usr/share/YaST2/modules/Sudo.*
%{prefix}/share/applications/YaST2/sudo.desktop
/usr/share/YaST2/scrconf/sudo.scr
/usr/lib/YaST2/servers_non_y2/ag_etc_sudoers
%doc %{prefix}/share/doc/packages/yast2-sudo
%changelog
* Mon Dec 01 2008 kmachalkova@suse.cz
- Focusing correct item when changing priority of rules (bnc#449754)
- Fixed parsing of multi-line rules/aliases (patch by jreidinger)
  (bnc#449768)
- 2.17.2
* Thu Nov 27 2008 kmachalkova@suse.cz
- Not so strict requirements on return value from SCR::Read
  ( list <any> instead of list <string> )(bnc#448159)
- Button re-labelling to comply to style-guide(bnc#448159)
* Tue Nov 18 2008 kmachalkova@suse.cz
- Rewrite of Perl agent to store sudoers data in non-associative
  data structure + adapting business logic to use lists, not maps
  (bnc#439164, bnc#365178)
- Added up/down buttons to help setting sudo rules priorities
- 2.17.1
* Mon Oct 27 2008 kmachalkova@suse.cz
- Comply to style guide: Add/Edit/Delete button trio aligned to the
  left, 'Remove' renamed to 'Delete' (bnc#438227)
- Hint for user to type alias name in capital letters (bnc#395779)
- Disable Edit/Delete buttons if the table is empty and avoid evil
  red error pop-up (bnc#395779)
- 2.17.0
* Fri May 16 2008 jsrain@suse.cz
- added categories Settings and System into desktop file
  (bnc #382778)
* Mon Mar 17 2008 jsrain@suse.cz
- added 'StartupNotify=true' to the desktop file (bnc #304964)
- 2.16.1
* Wed Jan 30 2008 kmachalkova@suse.cz
- Extended set of valid characters for usernames (esp. \ for winbind
  users)
- Escape backslashes in usernames on write (both bnc#353499)
- Added some function key bindings
- 2.16.0
* Mon Jan 07 2008 kmachalkova@suse.cz
- Merged proofread texts
* Mon Apr 23 2007 kmachalkova@suse.cz
- Accept 'ALL' as a valid command alias (#263414)
- Make command selection an editable combobox and show available
  cmnd aliases (+ 'ALL') to the user
- Append 'ALL' to the selection of available hosts
- 2.15.3
* Fri Mar 09 2007 kmachalkova@suse.cz
- Removed yast2-core and yast2_theme dependency (used Conflicts: tag
  instead)(#253001)
* Thu Mar 01 2007 kmachalkova@suse.cz
- Added checking for root permissions into the module startup
- 2.15.2
* Mon Feb 26 2007 kmachalkova@suse.cz
- Added syntax checking of created file (#227397)
- Save /etc/sudoers as 0440 (FaTE #300934)
- Check if entered command is a valid path or alias (#227397)
- Enable going back to revisit the configuration if the file
  cannot be saved (due to syntax errors)
- Correct handling of deleting command aliases
- Correct handling of Cancel button in command and host popup
- Adjusted some dialog layouts (#245284)
- Changed some strings
- 2.15.1
* Fri Jan 05 2007 kmachalkova@suse.cz
- Do not remove 'targetpw' and 'ALL ALL=ALL' rule from /etc/sudoers
  since it makes kdesu defunct (#223719)
- Prompt for confirming delete/edit of 'ALL ALL=ALL' rule
- 2.15.0
* Wed Oct 18 2006 kmachalkova@suse.cz
- Fixed command table redrawing in user specification dialog
- Using real /etc/sudoers instead of testfile in agent (#209388)
- Fixed permissions (0640) when creating /etc/sudoers
- 2.14.2
* Thu Aug 24 2006 ro@suse.de
- fix requires yast2-theme -> yast2_theme
* Wed Aug 23 2006 kmachalkova@suse.cz
- added error condition handling to agent
- added validation of host/netmask
- extended command table to contain command parameters
- enabled sudo by modifying default config on first write
- 2.14.1
* Thu Jul 13 2006 kmachalkova@suse.cz
- initial version
- 2.14.0
openSUSE Build Service is sponsored by