1 |
jpp |
1.6 |
# $Id: smeserver-phpldapadmin.spec,v 1.5 2021/06/01 17:29:33 jpp Exp $ |
2 |
jpp |
1.1 |
# Authority: nocvs |
3 |
|
|
# Name: Michel Van hees |
4 |
jpp |
1.6 |
%define phpversion %{nil} |
5 |
jpp |
1.1 |
|
6 |
|
|
Summary: PhpLdapAdmin for SME server |
7 |
|
|
%define name smeserver-phpldapadmin |
8 |
|
|
Name: %{name} |
9 |
|
|
%define version 1.5.0 |
10 |
jpp |
1.2 |
%define release 3 |
11 |
jpp |
1.1 |
Version: %{version} |
12 |
|
|
Release: %{release}%{?dist} |
13 |
|
|
License: Freely distributable |
14 |
|
|
Group: Apache |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
|
|
#{name}-%{version}.patch.yyyymmddnn |
17 |
jpp |
1.2 |
Patch0: smeserver-phpldapadmin-1.5.0-bz11611.patch |
18 |
jpp |
1.1 |
BuildRoot: /var/tmp/e-smith-buildroot |
19 |
|
|
BuildRequires: e-smith-devtools |
20 |
|
|
BuildArchitectures: noarch |
21 |
jpp |
1.2 |
Requires: smeserver-release >= 10 |
22 |
|
|
Requires: phpldapadmin >= 1.2.5 |
23 |
|
|
Requires: php74-php-pecl-mcrypt |
24 |
jpp |
1.1 |
AutoReqProv: no |
25 |
|
|
|
26 |
|
|
%changelog |
27 |
jpp |
1.2 |
* Tue Jun 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-3.sme |
28 |
|
|
- Initial release to contribs10 [SME: 11611] |
29 |
|
|
|
30 |
jpp |
1.1 |
* Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-2.sme |
31 |
|
|
- Initial release to contribs9 |
32 |
|
|
|
33 |
|
|
* Sat Jun 21 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-1.sme |
34 |
|
|
- Initial release to sme9 |
35 |
|
|
|
36 |
|
|
* Wed Nov 6 2013 JP Pialasse <tests@pialasse.com> 1.2.3-6.sme |
37 |
|
|
- fix bug [SME: 5762] |
38 |
|
|
- default admin read only but kamikaze mod for root modify access. |
39 |
|
|
|
40 |
|
|
* Mon Nov 4 2013 JP Pialasse <tests@pialasse.com> 1.2.3-4.sme |
41 |
|
|
- wrong template path for config file [SME: 7975] |
42 |
|
|
- patching also incorrect template. |
43 |
|
|
- error binding to server swith to http auth to prevent |
44 |
|
|
|
45 |
|
|
* Sun May 26 2013 JP Pialasse <tests@pialasse.com> 1.2.3-1.sme |
46 |
|
|
- remove phpldapadmin from package |
47 |
|
|
- added Requires phpldapadmin-1.2.3-1 |
48 |
|
|
- clean spec file |
49 |
|
|
- added default db value (patch file) |
50 |
|
|
|
51 |
|
|
* Thu Jun 26 2007 Michel Van hees <michel@vanhees.cc> |
52 |
|
|
- Restart contrib from scratch |
53 |
|
|
- Use of phpldapadmin 0.9.8.3 |
54 |
|
|
|
55 |
|
|
%description |
56 |
|
|
SME server - phpmyadmin multiuser for smeserver |
57 |
|
|
|
58 |
|
|
%prep |
59 |
|
|
%setup |
60 |
jpp |
1.2 |
%patch0 -p1 |
61 |
jpp |
1.3 |
mkdir -p root/var/lib/php/phpldapadmin/{tmp,opcache,session,wsdlcache} |
62 |
|
|
mkdir -p root/var/log/php/phpldapadmin |
63 |
jpp |
1.1 |
|
64 |
jpp |
1.5 |
find . -type f | xargs grep -l ____PHPVERSION____ | xargs sed -i -e 's/____PHPVERSION____/%{phpversion}/g' |
65 |
jpp |
1.1 |
%build |
66 |
|
|
perl createlinks |
67 |
|
|
|
68 |
|
|
%install |
69 |
|
|
rm -rf $RPM_BUILD_ROOT |
70 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
71 |
|
|
rm -f %{name}-%{version}-filelist |
72 |
jpp |
1.4 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
73 |
jpp |
1.3 |
--dir /var/lib/php/phpldapadmin/ 'attr(0755,root,www)' \ |
74 |
|
|
--dir /var/lib/php/phpldapadmin/tmp 'attr(0770,www,www)' \ |
75 |
|
|
--dir /var/lib/php/phpldapadmin/opcache 'attr(0770,www,www)' \ |
76 |
|
|
--dir /var/lib/php/phpldapadmin/session 'attr(0770,www,www)' \ |
77 |
|
|
--dir /var/lib/php/phpldapadmin/wsdlcache 'attr(0770,www,www)' \ |
78 |
|
|
--dir /var/log/php/phpldapadmin 'attr(0770,root,www)' \ |
79 |
|
|
> %{name}-%{version}-filelist |
80 |
jpp |
1.1 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
81 |
|
|
|
82 |
|
|
%clean |
83 |
|
|
rm -rf $RPM_BUILD_ROOT |
84 |
|
|
|
85 |
|
|
%pre |
86 |
|
|
|
87 |
|
|
%preun |
88 |
|
|
|
89 |
|
|
%post |
90 |
|
|
|
91 |
|
|
%postun |
92 |
|
|
|
93 |
|
|
%files -f %{name}-%{version}-filelist |
94 |
|
|
%defattr(-,root,root) |