Group :: Networking/WWW
RPM: phpldapadmin
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
Name: phpldapadmin
Version: 1.2.6.6
Release: alt2
Summary: Handle the adminstration of LDAP server over the web
Summary(ru_RU.UTF8): Управление LDAP сервером через web
License: GPL-2
Group: Networking/WWW
Url: http://phpldapadmin.sourceforge.net
Source: %name-%version.tar.gz
Patch0: %name-convert_to_ascii.patch
Requires: apache2-mod_php8.1 php8.1-ldap
BuildArch: noarch
BuildPreReq:rpm-build-apache2
%define pla_home %_datadir/%name
%description
%name - is a web-based LDAP client. It provides easy, anywhere-accessible,
multi-language administration for your LDAP server. Its hierarchical tree-viewer
and advanced search functionality make it intuitive to browse and administer
your LDAP directory. Since it is a web application, this LDAP browser works on
many platforms, making your LDAP server easily manageable from any location.
%name - is the perfect LDAP browser for the LDAP professional and novice alike.
Its user base consists mostly of LDAP administration professionals.
%description -l ru_RU.UTF8
%name - доступный через сеть клиент LDAP. Он предоставляет простую, доступную,
многоязычную среду для администрирования вашего сервера LDAP. Его иерархическое
дерево просмотра и функциональные возможности ускоренного поиска делают его
интуитивно понятным, чтобы просматривать и управлять вашим каталогом LDAP.
%name - совершенный браузер LDAP для профессионала LDAP и новичков.
Его пользователи состоят главным образом из профессионалов в администрировании LDAP.
После установки откорректируйте config.php согласно вашим настройкам.
%prep
%setup -q -n %name-%version
cp config/config.php.example config/config.php
%build
%install
install -d -m755 %buildroot%pla_home
cp -a * %buildroot%pla_home
pushd %buildroot%pla_home
find . -type f -executable | xargs chmod -x
rm -r doc/ config/config.php.example
rm -r tools/
popd
install -d -m755 %buildroot%_sysconfdir/%name
mv %buildroot%pla_home/config/* \
%buildroot%_sysconfdir/%name
rmdir %buildroot%pla_home/config
ln -s %_sysconfdir/%name \
%buildroot%pla_home/config
cat <<EOF >%name.conf
Alias /%name "%pla_home"
<Directory %pla_home>
DirectoryIndex index.php
AllowOverride None
Options FollowSymlinks
Require local
</Directory>
EOF
install -d %buildroot%apache2_sites_available
install -m644 %name.conf %buildroot%apache2_sites_available
%files
%config %dir %_sysconfdir/%name
%attr(640,root,%apache2_user) %config(noreplace) %_sysconfdir/%name/config.php
%config(noreplace) %apache2_sites_available/%name.conf
%pla_home
%doc INSTALL.md README.md LICENSE
%changelog
…
Full changelog you can see here
Name: phpldapadmin
Version: 1.2.6.6
Release: alt2
Summary: Handle the adminstration of LDAP server over the web
Summary(ru_RU.UTF8): Управление LDAP сервером через web
License: GPL-2
Group: Networking/WWW
Url: http://phpldapadmin.sourceforge.net
Source: %name-%version.tar.gz
Patch0: %name-convert_to_ascii.patch
Requires: apache2-mod_php8.1 php8.1-ldap
BuildArch: noarch
BuildPreReq:rpm-build-apache2
%define pla_home %_datadir/%name
%description
%name - is a web-based LDAP client. It provides easy, anywhere-accessible,
multi-language administration for your LDAP server. Its hierarchical tree-viewer
and advanced search functionality make it intuitive to browse and administer
your LDAP directory. Since it is a web application, this LDAP browser works on
many platforms, making your LDAP server easily manageable from any location.
%name - is the perfect LDAP browser for the LDAP professional and novice alike.
Its user base consists mostly of LDAP administration professionals.
%description -l ru_RU.UTF8
%name - доступный через сеть клиент LDAP. Он предоставляет простую, доступную,
многоязычную среду для администрирования вашего сервера LDAP. Его иерархическое
дерево просмотра и функциональные возможности ускоренного поиска делают его
интуитивно понятным, чтобы просматривать и управлять вашим каталогом LDAP.
%name - совершенный браузер LDAP для профессионала LDAP и новичков.
Его пользователи состоят главным образом из профессионалов в администрировании LDAP.
После установки откорректируйте config.php согласно вашим настройкам.
%prep
%setup -q -n %name-%version
cp config/config.php.example config/config.php
%build
%install
install -d -m755 %buildroot%pla_home
cp -a * %buildroot%pla_home
pushd %buildroot%pla_home
find . -type f -executable | xargs chmod -x
rm -r doc/ config/config.php.example
rm -r tools/
popd
install -d -m755 %buildroot%_sysconfdir/%name
mv %buildroot%pla_home/config/* \
%buildroot%_sysconfdir/%name
rmdir %buildroot%pla_home/config
ln -s %_sysconfdir/%name \
%buildroot%pla_home/config
cat <<EOF >%name.conf
Alias /%name "%pla_home"
<Directory %pla_home>
DirectoryIndex index.php
AllowOverride None
Options FollowSymlinks
Require local
</Directory>
EOF
install -d %buildroot%apache2_sites_available
install -m644 %name.conf %buildroot%apache2_sites_available
%files
%config %dir %_sysconfdir/%name
%attr(640,root,%apache2_user) %config(noreplace) %_sysconfdir/%name/config.php
%config(noreplace) %apache2_sites_available/%name.conf
%pla_home
%doc INSTALL.md README.md LICENSE
%changelog
…
Full changelog you can see here