update to 1.2.6.3 [release 1.2.6.3-1mamba;Tue Jan 11 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 10:00:01 +01:00
parent 45b557eea5
commit db087c464a

View File

@ -1,28 +1,28 @@
Name: phpldapadmin Name: phpldapadmin
Release: 1mamba Release: 1mamba
Version: 1.2.3 Version: 1.2.6.3
Summary: Web-based LDAP browser to manage LDAP server Summary: Web-based LDAP browser to manage LDAP server
Group: Applications/Web Group: Applications/Web
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://phpldapadmin.sourceforge.net/ URL: http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page
Source0: http://downloads.sourceforge.net/project/phpldapadmin/phpldapadmin-php5/%{version}/phpldapadmin-%{version}.tgz 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 Source1: phpLDAPadmin-config.php
Patch: %{name}-0.9.6c-can_2005_2654.patch Patch: %{name}-0.9.6c-can_2005_2654.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
Requires(pre): expect >= 8.4.9 Requires(pre): expect >= 8.4.9
Requires: apache >= 2.0.52
Requires: apache-mod_php >= 4.3.10
Requires: php-ldap >= 4.3.8 Requires: php-ldap >= 4.3.8
AutoReq: no AutoReq: no
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
Web-based LDAP browser to manage LDAP server. Web-based LDAP browser to manage LDAP server.
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -n phpLDAPadmin-%{version}
#%patch -p1 #%patch -p1
%build %build
@ -35,49 +35,23 @@ Web-based LDAP browser to manage LDAP server.
install -d %{buildroot}/var/www/html/phpldapadmin install -d %{buildroot}/var/www/html/phpldapadmin
cp -R * %{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} rm %{buildroot}/var/www/html/phpldapadmin/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
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{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 %files
%defattr(-,root,root) %defattr(-,root,root)
%{_datadir}/applications/phpldapadmin.desktop
%dir /var/www/html/phpldapadmin %dir /var/www/html/phpldapadmin
/var/www/html/phpldapadmin/* /var/www/html/phpldapadmin/*
%config(noreplace) /var/www/html/phpldapadmin/config.php %doc LICENSE
%doc INSTALL LICENSE
%changelog %changelog
* Tue Jan 11 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.6.3-1mamba
- update to 1.2.6.3
* Tue Dec 25 2012 Automatic Build System <autodist@mambasoft.it> 1.2.3-1mamba * Tue Dec 25 2012 Automatic Build System <autodist@mambasoft.it> 1.2.3-1mamba
- automatic version update by autodist - automatic version update by autodist