/[smecontribs]/rpms/smeserver-phpldapadmin/contribs10/smeserver-phpldapadmin.spec
ViewVC logotype

Diff of /rpms/smeserver-phpldapadmin/contribs10/smeserver-phpldapadmin.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by jpp, Tue Jun 1 16:56:53 2021 UTC Revision 1.8 by jpp, Tue Jun 1 18:07:41 2021 UTC
# Line 1  Line 1 
1  # $Id: smeserver-phpldapadmin.spec,v 1.1 2021/06/01 15:47:06 jpp Exp $  # $Id: smeserver-phpldapadmin.spec,v 1.7 2021/06/01 18:01:48 jpp Exp $
2  # Authority: nocvs  # Authority: nocvs
3  # Name: Michel Van hees  # Name: Michel Van hees
4    %define phpversion 74
5    # if empty set to %{nil}
6    
7  Summary: PhpLdapAdmin for SME server  Summary: PhpLdapAdmin for SME server
8  %define name smeserver-phpldapadmin  %define name smeserver-phpldapadmin
# Line 57  SME server - phpmyadmin multiuser for sm Line 59  SME server - phpmyadmin multiuser for sm
59  %prep  %prep
60  %setup  %setup
61  %patch0 -p1  %patch0 -p1
62    mkdir -p root/var/lib/php/phpldapadmin/{tmp,opcache,session,wsdlcache}
63    mkdir -p root/var/log/php/phpldapadmin
64    
65  %build  %build
66    find . -type f | xargs grep -l ____PHPVERSION____ | xargs sed -i -e 's/____PHPVERSION____/%{phpversion}/g'
67  perl createlinks  perl createlinks
68    
69  %install  %install
70  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
71  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
72  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
73  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
74        --dir /var/lib/php/phpldapadmin/ 'attr(0755,root,www)' \
75        --dir /var/lib/php/phpldapadmin/tmp 'attr(0770,www,www)' \
76        --dir /var/lib/php/phpldapadmin/opcache 'attr(0770,www,www)' \
77        --dir /var/lib/php/phpldapadmin/session 'attr(0770,www,www)' \
78        --dir /var/lib/php/phpldapadmin/wsdlcache 'attr(0770,www,www)' \
79        --dir /var/log/php/phpldapadmin  'attr(0770,root,www)' \
80            > %{name}-%{version}-filelist
81  echo "%doc COPYING"          >> %{name}-%{version}-filelist  echo "%doc COPYING"          >> %{name}-%{version}-filelist
82    
83  %clean  %clean


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed