1 |
# $Id: smeserver-phpldapadmin.spec,v 1.6 2021/06/01 17:42:02 jpp Exp $ |
# $Id: smeserver-phpldapadmin.spec,v 1.18 2022/08/01 03:11:47 jpp Exp $ |
2 |
# Authority: nocvs |
# Authority: nocvs |
3 |
# Name: Michel Van hees |
# Name: Michel Van hees |
|
%define phpversion %{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 9 |
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: e-smith-apache >= 2.6.0-19 |
21 |
Requires: php74-php-pecl-mcrypt |
Requires: phpldapadmin >= 1.2.6 |
22 |
|
Patch0: smeserver-phpldapadmin-1.6.0-Add-in-update-event-and-php-fpm-stuff.patch |
23 |
|
Patch1: smeserver-phpldapadmin-1.6.0-password-hash-renamed-in-config.patch |
24 |
|
Patch2: smeserver-phpldapadmin-1.6.0-Alter-config-auth-type.patch |
25 |
|
Patch3: smeserver-phpldapadmin-1.6.0-Remove-intial-req-to-login.patch |
26 |
|
Patch4: smeserver-phpldapadmin-1.6.0-bz12055-httpd24.patch |
27 |
|
Patch5:smeserver-phpldapadmin-1.6.0-bz12055-24syntax.patch |
28 |
AutoReqProv: no |
AutoReqProv: no |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
* Tue Jun 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-3.sme |
* Sun Jul 31 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.6.0-9.sme |
32 |
- Initial release to contribs10 [SME: 11611] |
- update to template httpd24 syntax [SME: 12055] |
33 |
|
add Requires: e-smith-apache >= 2.6.0-19 |
34 |
|
|
35 |
|
* Wed Jul 27 2022 Zsolt Vasarhelyi <vasarhelyizsolt@hotmail.com> 1.6.0-7.sme |
36 |
|
- update to template httpd24 syntax [SME: 12055] |
37 |
|
|
38 |
|
* Sat Jul 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.6.0-6.sme |
39 |
|
- update access to httpd24 syntax [SME: 12055] |
40 |
|
|
41 |
|
* Wed Oct 06 2021 Brian Read <brianr@bjsystems.co.uk> 1.6.0-5.sme |
42 |
|
- Remove-intial-req-to-login.patch [SME: 11699] |
43 |
|
|
44 |
|
* Tue Oct 05 2021 Brian Read <brianr@bjsystems.co.uk> 1.6.0-4.sme |
45 |
|
- Alter auth-type config parameter to cookie from http [SME: 11699] |
46 |
|
|
47 |
|
* Mon Oct 04 2021 Brian Read <brianr@bjsystems.co.uk> 1.6.0-3.sme |
48 |
|
- Update config to change password_hash to pla_ [SME: 11699 ] |
49 |
|
|
50 |
|
* Mon Oct 04 2021 BogusDateBot |
51 |
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
52 |
|
by assuming the date is correct and changing the weekday. |
53 |
|
|
54 |
|
* Mon Oct 04 2021 Brian Read <brianr@bjsystems.co.uk> 1.6.0-2.sme |
55 |
|
- change php to fpm and add -update event to createlinks [SME: 11699] |
56 |
|
|
57 |
|
* Tue Sep 28 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 1.6.0-1.sme |
58 |
|
- Initial release to contribs10 [SME: 11699] |
59 |
|
|
60 |
* 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 |
61 |
- Initial release to contribs9 |
- Initial release to contribs9 |
78 |
- clean spec file |
- clean spec file |
79 |
- added default db value (patch file) |
- added default db value (patch file) |
80 |
|
|
81 |
* Thu Jun 26 2007 Michel Van hees <michel@vanhees.cc> |
* Tue Jun 26 2007 Michel Van hees <michel@vanhees.cc> |
82 |
|
Thu Jun 26 2007 --> Thu Jun 21 2007 or Tue Jun 26 2007 or Thu Jun 28 2007 or .... |
83 |
- Restart contrib from scratch |
- Restart contrib from scratch |
84 |
- Use of phpldapadmin 0.9.8.3 |
- Use of phpldapadmin 0.9.8.3 |
85 |
|
|
86 |
%description |
%description |
87 |
SME server - phpmyadmin multiuser for smeserver |
SME server - phpldapadmin for smeserver |
88 |
|
|
89 |
%prep |
%prep |
90 |
%setup |
%setup |
91 |
%patch0 -p1 |
%patch0 -p1 |
92 |
mkdir -p root/var/lib/php/phpldapadmin/{tmp,opcache,session,wsdlcache} |
%patch1 -p1 |
93 |
mkdir -p root/var/log/php/phpldapadmin |
%patch2 -p1 |
94 |
|
%patch3 -p1 |
95 |
|
%patch4 -p1 |
96 |
|
%patch5 -p1 |
97 |
|
|
98 |
%build |
%build |
|
find . -type f | xargs grep -l ____PHPVERSION____ | xargs sed -i -e 's/____PHPVERSION____/%{phpversion}/g' |
|
99 |
perl createlinks |
perl createlinks |
100 |
|
|
101 |
%install |
%install |
102 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
103 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
104 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
105 |
/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 |
|
106 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
107 |
|
|
108 |
%clean |
%clean |