1 |
# $Id: smeserver-phpldapadmin.spec,v 1.1 2021/06/01 15:47:06 jpp Exp $ |
# $Id: smeserver-phpldapadmin.spec,v 1.2 2021/06/01 16:56:53 jpp Exp $ |
2 |
# Authority: nocvs |
# Authority: nocvs |
3 |
# Name: Michel Van hees |
# Name: Michel Van hees |
4 |
|
|
57 |
%prep |
%prep |
58 |
%setup |
%setup |
59 |
%patch0 -p1 |
%patch0 -p1 |
60 |
|
mkdir -p root/var/lib/php/phpldapadmin/{tmp,opcache,session,wsdlcache} |
61 |
|
mkdir -p root/var/log/php/phpldapadmin |
62 |
|
|
63 |
%build |
%build |
64 |
perl createlinks |
perl createlinks |
67 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
68 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
69 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
70 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT / |
71 |
|
--dir /var/lib/php/phpldapadmin/ 'attr(0755,root,www)' \ |
72 |
|
--dir /var/lib/php/phpldapadmin/tmp 'attr(0770,www,www)' \ |
73 |
|
--dir /var/lib/php/phpldapadmin/opcache 'attr(0770,www,www)' \ |
74 |
|
--dir /var/lib/php/phpldapadmin/session 'attr(0770,www,www)' \ |
75 |
|
--dir /var/lib/php/phpldapadmin/wsdlcache 'attr(0770,www,www)' \ |
76 |
|
--dir /var/log/php/phpldapadmin 'attr(0770,root,www)' \ |
77 |
|
> %{name}-%{version}-filelist |
78 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
79 |
|
|
80 |
%clean |
%clean |