1 |
# $Id: smeserver-phpldapadmin.spec,v 1.2 2021/06/01 16:56:53 jpp Exp $ |
# $Id: smeserver-phpldapadmin.spec,v 1.4 2021/06/01 17:17:40 jpp Exp $ |
2 |
# Authority: nocvs |
# Authority: nocvs |
3 |
# Name: Michel Van hees |
# Name: Michel Van hees |
4 |
|
%define phpversion 73 |
5 |
|
|
6 |
Summary: PhpLdapAdmin for SME server |
Summary: PhpLdapAdmin for SME server |
7 |
%define name smeserver-phpldapadmin |
%define name smeserver-phpldapadmin |
61 |
mkdir -p root/var/lib/php/phpldapadmin/{tmp,opcache,session,wsdlcache} |
mkdir -p root/var/lib/php/phpldapadmin/{tmp,opcache,session,wsdlcache} |
62 |
mkdir -p root/var/log/php/phpldapadmin |
mkdir -p root/var/log/php/phpldapadmin |
63 |
|
|
64 |
|
find . -type f | xargs grep -l ____PHPVERSION____ | xargs sed -i -e 's/____PHPVERSION____/%{phpversion}/g' |
65 |
%build |
%build |
66 |
perl createlinks |
perl createlinks |
67 |
|
|
69 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
70 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
71 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
72 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT / |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
73 |
--dir /var/lib/php/phpldapadmin/ 'attr(0755,root,www)' \ |
--dir /var/lib/php/phpldapadmin/ 'attr(0755,root,www)' \ |
74 |
--dir /var/lib/php/phpldapadmin/tmp 'attr(0770,www,www)' \ |
--dir /var/lib/php/phpldapadmin/tmp 'attr(0770,www,www)' \ |
75 |
--dir /var/lib/php/phpldapadmin/opcache 'attr(0770,www,www)' \ |
--dir /var/lib/php/phpldapadmin/opcache 'attr(0770,www,www)' \ |