1 |
# $Id: smeserver-phpldapadmin.spec,v 1.7 2021/06/01 18:01:48 jpp Exp $ |
# $Id: smeserver-phpldapadmin.spec,v 1.1 2015/08/22 20:13:33 stephdl Exp $ |
2 |
# Authority: nocvs |
# Authority: nocvs |
3 |
# Name: Michel Van hees |
# Name: Michel Van hees |
|
%define phpversion 74 |
|
|
# if empty set to %{nil} |
|
4 |
|
|
5 |
Summary: PhpLdapAdmin for SME server |
Summary: PhpLdapAdmin for SME server |
6 |
%define name smeserver-phpldapadmin |
%define name smeserver-phpldapadmin |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 1.5.0 |
%define version 1.6.0 |
9 |
%define release 3 |
%define release 1 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: Freely distributable |
License: Freely distributable |
13 |
Group: Apache |
Group: Apache |
14 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
15 |
#{name}-%{version}.patch.yyyymmddnn |
#{name}-%{version}.patch.yyyymmddnn |
|
Patch0: smeserver-phpldapadmin-1.5.0-bz11611.patch |
|
16 |
BuildRoot: /var/tmp/e-smith-buildroot |
BuildRoot: /var/tmp/e-smith-buildroot |
17 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
18 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
19 |
Requires: smeserver-release >= 10 |
Requires: smeserver-release >= 10 |
20 |
Requires: phpldapadmin >= 1.2.5 |
Requires: phpldapadmin >= 1.2.6 |
|
Requires: php74-php-pecl-mcrypt |
|
21 |
AutoReqProv: no |
AutoReqProv: no |
22 |
|
|
23 |
%changelog |
%changelog |
24 |
* Tue Jun 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-3.sme |
* Tue Sep 28 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 1.6.0-1.sme |
25 |
- Initial release to contribs10 [SME: 11611] |
- Initial release to contribs10 [SME: 11699] |
26 |
|
|
27 |
* Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-2.sme |
* Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-2.sme |
28 |
- Initial release to contribs9 |
- Initial release to contribs9 |
50 |
- Use of phpldapadmin 0.9.8.3 |
- Use of phpldapadmin 0.9.8.3 |
51 |
|
|
52 |
%description |
%description |
53 |
SME server - phpmyadmin multiuser for smeserver |
SME server - phpldapadmin for smeserver |
54 |
|
|
55 |
%prep |
%prep |
56 |
%setup |
%setup |
|
%patch0 -p1 |
|
|
mkdir -p root/var/lib/php/phpldapadmin/{tmp,opcache,session,wsdlcache} |
|
|
mkdir -p root/var/log/php/phpldapadmin |
|
57 |
|
|
58 |
%build |
%build |
|
find . -type f | xargs grep -l ____PHPVERSION____ | xargs sed -i -e 's/____PHPVERSION____/%{phpversion}/g' |
|
59 |
perl createlinks |
perl createlinks |
60 |
|
|
61 |
%install |
%install |
62 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
63 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
64 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
65 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
|
--dir /var/lib/php/phpldapadmin/ 'attr(0755,root,www)' \ |
|
|
--dir /var/lib/php/phpldapadmin/tmp 'attr(0770,www,www)' \ |
|
|
--dir /var/lib/php/phpldapadmin/opcache 'attr(0770,www,www)' \ |
|
|
--dir /var/lib/php/phpldapadmin/session 'attr(0770,www,www)' \ |
|
|
--dir /var/lib/php/phpldapadmin/wsdlcache 'attr(0770,www,www)' \ |
|
|
--dir /var/log/php/phpldapadmin 'attr(0770,root,www)' \ |
|
|
> %{name}-%{version}-filelist |
|
66 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
67 |
|
|
68 |
%clean |
%clean |