Projects
Kolab:3.4:Updates
php-pear-Net-LDAP2
php-pear-Net-LDAP2.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php-pear-Net-LDAP2.spec of Package php-pear-Net-LDAP2 (Revision 3)
Currently displaying revision
3
,
Show latest
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} # Needed for openSUSE %if 0%{?suse_version} %{!?pear_cfgdir: %{expand: %%global pear_cfgdir %(%{__pear} config-get cfg_dir 2> /dev/null || echo undefined)}} %{!?pear_datadir: %{expand: %%global pear_datadir %(%{__pear} config-get data_dir 2> /dev/null || echo undefined)}} %{!?pear_docdir: %{expand: %%global pear_docdir %(%{__pear} config-get doc_dir 2> /dev/null || echo undefined)}} %{!?pear_metadir: %{expand: %%global pear_metadir %(%{__pear} config-get metadata_dir 2> /dev/null || echo undefined)}} %{!?pear_phpdir: %{expand: %%global pear_phpdir %(%{__pear} config-get php_dir 2> /dev/null || echo undefined)}} %{!?pear_testdir: %{expand: %%global pear_testdir %(%{__pear} config-get test_dir 2> /dev/null || echo undefined)}} %{!?pear_wwwdir: %{expand: %%global pear_wwwdir %(%{__pear} config-get www_dir 2> /dev/null || echo undefined)}} %{!?pear_xmldir: %global pear_xmldir %{_localstatedir}/lib/pear/pkgxml} %endif %global pear_name Net_LDAP2 Name: php-pear-Net-LDAP2 Version: 2.0.9 Release: 3%{?dist} Summary: Object oriented interface for searching and manipulating LDAP-entries Group: Development/Libraries License: LGPLv3 URL: http://pear.php.net/package/Net_LDAP2 Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php-pear Requires(post): %{__pear} Requires(postun): %{__pear} Requires: php-pear Provides: php-pear(%{pear_name}) = %{version}-%{release} %description Net_LDAP2 is the successor of Net_LDAP which is a clone of Perls Net::LDAP object interface to directory servers. It does contain most of Net::LDAPs features but has some own too. With Net_LDAP2 you have: * A simple object-oriented interface to connections, searches entries and filters. * Support for tls and ldap v3. * Simple modification, deletion and creation of ldap entries. * Support for schema handling. Net_LDAP2 layers itself on top of PHP's existing ldap extensions. %prep %setup -q -c mv package.xml %{pear_name}-%{version}/%{pear_name}.xml %build cd %{pear_name}-%{version} # Empty build section, most likely nothing required. %install rm -rf %{buildroot} docdir pushd %{pear_name}-%{version} %{__pear} install --nodeps --packagingroot %{buildroot} %{pear_name}.xml # Clean up unnecessary files rm -rf %{buildroot}%{pear_phpdir}/.??* # Install XML package description %{__mkdir_p} %{buildroot}%{pear_xmldir} %{__install} -pm 644 %{pear_name}.xml %{buildroot}%{pear_xmldir} popd %check # Sanity check lst=$(find %{buildroot}%{pear_phpdir} -exec grep -q %{buildroot} {} \; -print) [ ! -z "$lst" ] && echo "Reference to BUILDROOT in $lst" && exit 1; %clean rm -rf %{buildroot} %post %{__pear} install --nodeps --soft --force --register-only \ %{pear_xmldir}/%{pear_name}.xml >/dev/null || : %postun if [ $1 -eq 0 ] ; then %{__pear} uninstall --nodeps --ignore-errors --register-only \ %{pear_name} >/dev/null || : fi %files %defattr(-,root,root,-) %doc %{pear_docdir}/%{pear_name} %dir %{pear_phpdir}/Net %{pear_phpdir}/Net/LDAP2 %{pear_phpdir}/Net/LDAP2.php %{pear_testdir}/%{pear_name} %if 0%{?suse_version} %dir %{pear_xmldir} %endif %{pear_xmldir}/%{pear_name}.xml %changelog * Sat Jun 05 2010 Christoph Wickert <wickert@kolabsys.com> - 2.0.9-3 - Adjust requirements for php-channel(pear.horde.org) * Sun May 9 2010 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.0.9-2 - Package for Fedora/EPEL
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.