File yast2-ldap-server.spec of Package yast2-ldap-server

#
# spec file for package yast2-ldap-server (Version 2.17.17)
#
# 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-ldap-server
Version:        2.17.17
Release:        1
License:        GPL v2 or later; X11/MIT
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-ldap-server-2.17.17.tar.bz2
Prefix:         /usr
BuildRequires:  boost-devel gcc-c++ libldapcpp-devel perl-Digest-SHA1 perl-X500-DN perl-gettext pkg-config update-desktop-files yast2 yast2-core-devel yast2-devtools yast2-ldap-client
Requires:       acl net-tools perl perl-Digest-SHA1 perl-gettext perl-X500-DN yast2 yast2-ca-management yast2-ldap-client yast2-perl-bindings yast2-users
Summary:        YaST2 - OpenLDAP Server Configuration

%description
Provides basic configuration of an OpenLDAP Server over YaST2 Control
Center and during installation.



Authors:
--------
    Andreas Bauer <abauer@suse.de>

%prep
%setup -n yast2-ldap-server-2.17.17

%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
rm -f $RPM_BUILD_ROOT/%{_libdir}/YaST2/plugin/libpy2ag_slapdconfig.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/YaST2/plugin/libpy2ag_slapdconfig.so

%clean
rm -rf "$RPM_BUILD_ROOT"

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%dir /usr/share/YaST2/include/ldap-server
%dir /usr/share/YaST2/modules/YaPI
/usr/share/YaST2/include/ldap-server/*
/usr/share/YaST2/clients/ldap-server.ycp
/usr/share/YaST2/clients/ldap-server_*.ycp
/usr/share/YaST2/modules/LdapServer.*
/usr/share/YaST2/modules/LdapDatabase.*
/usr/share/YaST2/modules/YaPI/LdapServer.pm
%{prefix}/share/applications/YaST2/ldap-server.desktop
%{_libdir}/YaST2/plugin/libpy2ag_slapdconfig.*
/usr/share/YaST2/schema/autoyast/rnc/ldap-server.rnc
/usr/share/YaST2/scrconf/*
%doc %{prefix}/share/doc/packages/yast2-ldap-server
%changelog
* Tue Dec 02 2008 rhafer@suse.de
- Version 2.17.16
  * removed unneeded restart of slapd when running for the first
  time after the initial configuration, this broke indexing
  under certain conditions (bnc#450457)
* Mon Dec 01 2008 rhafer@suse.de
- Version 2.17.16
  * Add hint howto access back-config data via SASL-external
  (bnc#450103)
  * DefaultIndexes were not created when running from yast2-
  kerberos-server (bnc#450439)
* Mon Nov 17 2008 rhafer@suse.de
- Version 2.17.15
  * Add "eq" index on memberUid by default (bnc#444546)
  * Set an increased sizelimit in new configurations (bnc#444529)
  * Don't offer to configure a password for cn=config (bnc#445118)
  * recognize "caCertDir" in TLS configurations (was breaking migration
  from SLES10 based setups (bnc#445115)
  * honor database type selection when creating initial database
  (bnc#445587)
  * Fixed perl crasher in installation proposal (bnc#445566)
* Thu Nov 06 2008 rhafer@suse.de
- Version 2.17.14
  * Create ACL to protect operational Attributes of Password
  Policies (bnc#439487)
  * Fixed HTML syntax and typos in Online Help (bnc#440230,
  bnc#440902)
  * Fixed Button-Labels and ordering according to YaST Style Guide
  (bnc#440526)
  * Adjusted default slapd loglevel (bnc#442260)
  * Additional fix for bnc#437267, disabling SLP had no effect, when
  configuring a new server
* Mon Oct 27 2008 rhafer@suse.de
- Version 2.17.13
  * fixed creation of default password policies (bnc#439188)
* Fri Oct 24 2008 rhafer@suse.de
- Version 2.17.12
  * SLP Checkbox had no effect in Proposal and was not displayed
  in "normal" Mode (bnc#437267)
* Wed Oct 15 2008 rhafer@suse.de
- Version 2.17.11
  * Error message when initialization fails (bnc#435642)
  * restart slapd when needed (bnc#435625)
  * Add not about back-config to slapd.conf (bnc#435623)
  * Fixed typo (bnc#435153)
  * Remove some unused code, less verbose default logging
* Wed Oct 08 2008 rhafer@suse.de
- Version 2.17.10
  * fixed typo and HTML on online help (bnc#430521,bnc#432416,
  bnc#433082, bnc#433440)
  * adjusted size of Admin-DN input field (bnc#432503)
  * Fix calculation of next schema index when adding .schema files
  (bnc#432733)
  * Allow uncommitted schema changes to be deleted (bnc#431264)
  * Fixed cleanup procedures in SCR-agent (bnc#433089)
  * Don't display informative message as error (bnc#432476)
* Wed Oct 01 2008 rhafer@suse.de
- Verstion 2.17.9
  * revived commandline support  (bnc#429486)
  * additional checks when adding .schema files (bnc#431168)
  * workaround for Firewall-Widget in installation proposal
  (bnc#428364)
  * fixed regression in initial server configuration (bnc#431250)
  * use ldap-server icon in all wizards (bnc#431210)
  * adjust size of Warning Popup (bnc#431228)
* Mon Sep 29 2008 rhafer@suse.de
- Version 2.17.8
  * revived AutoYaST support (bnc#429528)
  * Additional fix for installation proposal. Don't propose
  configuration if openldap2 is not installed (bnc#426593)
* Wed Sep 24 2008 rhafer@suse.de
- Version 2.17.7
  * Fixed crashes and consistency checks for ACLs ((bnc#425821)
  * Fixed adding multiple Databases at once (bnc#429450)
  * Smaller fixes to source documentation
* Thu Sep 18 2008 rhafer@suse.de
- Version 2.17.6:
  * more Online Help updates
  * Various fixes for the installation proposal.
  (bnc#427260, bnc#426634, bnc#426593)
* Fri Sep 12 2008 rhafer@suse.de
- Version 2.17.5:
  * Updated Online Help
  * Ask for confirmation before aborting the module
* Thu Sep 11 2008 rhafer@suse.de
- Version 2.17.4:
  * merged texts from proofreading
  * Support for deleting databases
  * improvements on ACL managment code (allow re-ordering, allow
  global ACLs, ...)
  * Updated Online Help
  * Re-Implemented support for managing Password Policy Entries
  * YaPI Support for managing ACLs (Fate#120061)
* Fri Sep 05 2008 rhafer@suse.de
- yast2-ca-management is still required, as it can be launched from
  the TLS/SSL dialog
- cleanup for ACL Management Code
* Thu Sep 04 2008 locilka@suse.cz
- CaMgmt and DNS modules not needed anymore.
- Adjusted RPM dependencies.
* Wed Sep 03 2008 rhafer@suse.de
- Added support of managing ACLs (Fate#120060)
- Version 2.17.3
* Wed Aug 13 2008 rhafer@suse.de
- Create default indexes after adding a new database
- Add support to edit indexing, caching and checkpoiniting settings
  on BDB/HDB Databases. (Fate#120068)
- Allow to update /etc/openldap/ldap.conf settings when creating a new
  database. (Fate#303399)
- Insert new databases before databases that serve a superior base-DN
- database settings can be change after the database was created.
  (Fate#120067)
- Version 2.17.2
* Mon Aug 11 2008 rhafer@suse.de
- Build libslapdconfig as a convenience library for now.
- Version 2.17.1
* Fri Aug 08 2008 rhafer@suse.de
- Version 2.17.0
- Major rewrite of the whole module. yast2-ldap-server is using
  OpenLDAP's configuration database (back-config) now instead of
  /etc/openldap/slapd.conf
- The module can handle /etc/sysconfig/openldap settings now.
  (Fate#303058)
- Automatically setup TLS if certificates exist (Fate#303165)
- CA-Management Module can be launched from within
  yast2-ldap-server (Fate#303546)
* Fri May 16 2008 rhafer@suse.de
- Error out if Database does not exist in
  YaPI::LdapServer->AddIndex() (bnc#389144)
- Version 2.16.3
* Fri May 16 2008 jsrain@suse.cz
- added categories Settings and System into desktop file
  (bnc #382778)
* Tue May 13 2008 rhafer@suse.de
- Remove unneeded '&' from frame Headline (bnc#388750)
- Don't start/enable LDAP Server when the configuration of the
  initial database failed (Partly fixes bnc#388270)
- Version 2.16.2
* Fri Apr 18 2008 jsrain@suse.cz
- merged texts from proofread
- 2.16.1
* Wed Mar 26 2008 rhafer@suse.de
- Version 2.16.0
- Add _() where missing and appropriate.
- Require acl package (bnc#338952)
* Mon Mar 17 2008 jsrain@suse.cz
- added 'StartupNotify=true' to the desktop file (bnc#304964)
* Fri May 25 2007 jsrain@suse.cz
- removed outdated translations from .desktop-files (bnc#271209)
* Wed Apr 11 2007 rhafer@suse.de
- Version 2.15.5
- Keep Firewall-Settings when switching to configuration Dialog (Bug
  [#259798])
- Display status of TLS configuration correctly (Bug #259806)
* Thu Mar 15 2007 rhafer@suse.de
- Fixed RPM dependencies (Bug #253525)
- Version 2.15.4
* Fri Mar 02 2007 rhafer@suse.de
- Fixes for Bug #250228:
  * Don't write duplicate Database sections into AutoYaST profiles
  * Leave out default Server Certificate Settings as long as CA-Management
  does not export its settings
- Version 2.15.3
* Tue Feb 20 2007 mc@suse.de
- version 2.15.2
- add krb5ACLHack
* Tue Feb 06 2007 rhafer@suse.de
- Added AutoYaST Schema file (Bug #242571)
* Mon Feb 05 2007 rhafer@suse.de
- Fixed Export() for AutoYaST to also export newly created
  Databases (Bug #241101)
* Thu Feb 01 2007 rhafer@suse.de
- Close window did not work in autoyast UI (Bug #241009)
* Thu Jan 25 2007 mc@suse.de
- add commandline interface [Feature #120062]
* Wed Jan 17 2007 rhafer@suse.de
- The Overlay subsection should aways be the last part of a
  database section (Bug #235385)
- Do not create TreeDialog multiple times. Breaks AutoYaST
  (Bug #232838)
- Version 2.15.0
* Fri Jan 12 2007 rhafer@suse.de
- Added support of LDAP Password Policy overlay (ppolicy).
  Fate #301179.
- Version 2.14.1
* Mon Nov 20 2006 jsrain@suse.cz
- 2.14.0
* Wed May 31 2006 rhafer@suse.de
- Fix Import/Export functions for AutoYaST (Bugzilla #179750)
- Fixed call to Package Module to detect if openldap2 package is
  installed (Bug #180142)
- Version 2.13.15
* Wed May 24 2006 rhafer@suse.de
- Don't try to Read() config when openldap2 is not installed, e.g.
  during autoyast cloning. (Bugzilla #178159)
- Version 2.13.14
* Fri May 19 2006 ug@suse.de
- fixed desktop file for autoyast cloning (#177082)
- Version 2.13.13
* Wed May 03 2006 rhafer@suse.de
- Improved error message when root password is not available in
  proposal (Bugzilla #171413)
- Version 2.13.12
* Wed Apr 05 2006 rhafer@suse.de
- Allow to open the LDAP/LDAPS ports on the firewall
  (Bugzilla #163275)
* Mon Apr 03 2006 rhafer@suse.de
- Remove TLS settings if TLS is disabled (Bugzilla #162476)
- 2.13.10
* Thu Mar 09 2006 rhafer@suse.de
- Better validation of rootdn and suffix in proposal
  (Bugzilla #114359)
* Mon Feb 20 2006 rhafer@suse.de
- removed yast2-devel-packages macro BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 19 2006 rhafer@suse.de
- Better checks of suffix and rootdn (Bugzilla #56638)
- 2.13.7
* Tue Jan 17 2006 rhafer@suse.de
- Don't overwrite database configuration when viewing it
  (Bugzilla #143039)
- 2.13.6
* Fri Jan 13 2006 rhafer@suse.de
- create first database in /var/lib/ldap
- 2.13.5
* Tue Jan 10 2006 visnov@suse.cz
- fix syntax error in proposal
- 2.13.4
* Mon Jan 09 2006 visnov@suse.cz
- use Package
- 2.13.3
* Mon Dec 19 2005 jsuchome@suse.cz
- merged proofread texts
- 2.13.2
* Fri Dec 09 2005 rhafer@suse.de
- version 2.13.1
- suggest and create directory for new databases
* Wed Oct 19 2005 rhafer@suse.de
- version 2.13.0
- merged fixes from 9.1 branch
* Thu Aug 18 2005 locilka@suse.cz
- merged proofread texts
* Thu Mar 31 2005 mc@suse.de
- add requires yast2-ca-management to spec file
* Tue Nov 30 2004 schubi@suse.de
- changes for new yast intepreter
* Wed Jun 16 2004 abauer@suse.de
- version 2.10.0
- merged from 9.1 branch
* Tue Jun 15 2004 abauer@suse.de
- version 2.9.11
- #41638 - Misconfigured ldap server cannot be fixed in installation
  Append Base DN checkbox in proposal dialog defaults to true
  values are now autogenerated even if the service is disabled
* Mon Jun 14 2004 mc@suse.de
- #41643,  slapd loglevel fills up /var/log/messages
  set default loglevel to 0
* Thu May 27 2004 schubi@suse.de
- #41292 fixed; LDAP server module Samba hack writes multiple ACLs
- modify the indices (#41165)
* Tue May 25 2004 schubi@suse.de
- Bug 40664 - Beta5: YaST2 ldap proposal, but no openldap2 installed
* Mon May 24 2004 schubi@suse.de
- Bug 41069 - yast2-ldap-server does not check for openldap2.rpm
* Mon May 24 2004 schubi@suse.de
- Bug 40839 - Installation - Service Configuration - Illogical workflow
* Thu May 13 2004 abauer@suse.de
- version 2.9.5
- fixed wrong insert position of schema includes (#40331)
- changed _() to __() (#40160)
- proper close of all dialogs (#40061)
- added ldap client default "create_ldap" (#40484)
- changed hostname passed to ldap-client to 'localhost'
* Fri May 07 2004 abauer@suse.de
- version 2.9.4
- added net-tools to Requires, removed openldap2 (#39578)
- openldap sysconfig agent taken from yast2-openteam-server (#39865)
- possibility to switch off slp registering (#39865)
- added schema configuration dialog (#40036)
- bugfix: rootpw was deleted from a database section if no changes were made in that section (#39975)
- bugfix: changing tree items in ncurses ui now opens the corresponding dialog (#39990)
- design changes (#39879, #39944)
- more defaults set for ldap client module (#39901, #39937)
* Fri Apr 30 2004 abauer@suse.de
- version 2.9.3
- changed initially displayed tree item to 'databases' (#39660)
- removed 'Reload Configuration' button from global item (#39659)
- workaround for umlaut problems (#39661): database item keys in widget_map changed to md5sum of suffix
- design changes in tls dialogs
* Thu Apr 29 2004 mc@suse.de
- version 2.9.2
- first working version
- add main UI
- improve the API
* Fri Apr 23 2004 mc@suse.de
- version 2.9.1
- working proposal
* Thu Mar 18 2004 abauer@suse.de
- initial version
openSUSE Build Service is sponsored by