From db087c464aaf267a64a5d8c5169ff760e818af24 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:00:01 +0100 Subject: [PATCH] update to 1.2.6.3 [release 1.2.6.3-1mamba;Tue Jan 11 2022] --- phpldapadmin.spec | 52 ++++++++++++----------------------------------- 1 file changed, 13 insertions(+), 39 deletions(-) diff --git a/phpldapadmin.spec b/phpldapadmin.spec index 49d49f7..7cc219e 100644 --- a/phpldapadmin.spec +++ b/phpldapadmin.spec @@ -1,28 +1,28 @@ Name: phpldapadmin Release: 1mamba -Version: 1.2.3 +Version: 1.2.6.3 Summary: Web-based LDAP browser to manage LDAP server Group: Applications/Web Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://phpldapadmin.sourceforge.net/ -Source0: http://downloads.sourceforge.net/project/phpldapadmin/phpldapadmin-php5/%{version}/phpldapadmin-%{version}.tgz +URL: http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page +Source0: https://github.com/leenooks/phpLDAPadmin.git/%{version}/phpLDAPadmin-%{version}.tar.bz2 +#Source0: http://downloads.sourceforge.net/project/phpldapadmin/phpldapadmin-php5/%{version}/phpldapadmin-%{version}.tgz Source1: phpLDAPadmin-config.php Patch: %{name}-0.9.6c-can_2005_2654.patch License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END Requires(pre): expect >= 8.4.9 -Requires: apache >= 2.0.52 -Requires: apache-mod_php >= 4.3.10 Requires: php-ldap >= 4.3.8 AutoReq: no -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Web-based LDAP browser to manage LDAP server. %prep -%setup -q -n %{name}-%{version} +%setup -q -n phpLDAPadmin-%{version} #%patch -p1 %build @@ -35,49 +35,23 @@ Web-based LDAP browser to manage LDAP server. install -d %{buildroot}/var/www/html/phpldapadmin cp -R * %{buildroot}/var/www/html/phpldapadmin -cp %{SOURCE1} %{buildroot}/var/www/html/phpldapadmin/config.php +#cp %{SOURCE1} %{buildroot}/var/www/html/phpldapadmin/config.php -rm %{buildroot}/var/www/html/phpldapadmin/{INSTALL,LICENSE} - -install -d %{buildroot}%{_datadir}/applications -cat > %{buildroot}%{_datadir}/applications/phpldapadmin.desktop << EOF -[Desktop Entry] -Name=LDAP Administration Tool -Name[it]=Strumento di gestione LDAP -Comment=PHP LDAP Administration Tool -Comment[it]=Strumento di amministrazione LDAP -Exec=konqueror http://localhost/phpldapadmin -Type=Application -Terminal=0 -Icon=personal -Categories=Application;Utility;Database; -EOF +rm %{buildroot}/var/www/html/phpldapadmin/LICENSE %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%post -if [ $1 -eq 1 ]; then - . %{_initrddir}/ldap-functions - . %{_sysconfdir}/sysconfig/defaults - set_ldap_environment - blowpwd=`/usr/bin/mkpasswd -l 40 -s 0` - sed -i "s|blowfish_secret = ''|blowfish_secret = '$blowpwd'|; - s|dc=myhost,dc=example,dc=com|$LDAPHOSTDN|; - s|dc=example,dc=com|$LDAPBASEDN|" \ - /var/www/html/phpldapadmin/config.php -fi -exit 0 - %files %defattr(-,root,root) -%{_datadir}/applications/phpldapadmin.desktop %dir /var/www/html/phpldapadmin /var/www/html/phpldapadmin/* -%config(noreplace) /var/www/html/phpldapadmin/config.php -%doc INSTALL LICENSE +%doc LICENSE %changelog +* Tue Jan 11 2022 Silvan Calarco 1.2.6.3-1mamba +- update to 1.2.6.3 + * Tue Dec 25 2012 Automatic Build System 1.2.3-1mamba - automatic version update by autodist