1 |
spuhler |
5049 |
%define prj Horde_LDAP |
2 |
|
|
|
3 |
|
|
%define xmldir %{_var}/lib/pear |
4 |
|
|
%define peardir %(pear config-get php_dir 2> /dev/null) |
5 |
|
|
|
6 |
|
|
Name: horde-ldap |
7 |
|
|
Version: 0.0.2 |
8 |
|
|
Release: %mkrel 4 |
9 |
|
|
Summary: LDAP Utility Class |
10 |
|
|
License: LGPL |
11 |
|
|
Group: Networking/Mail |
12 |
danf |
1780030 |
Url: https://pear.horde.org/#horde_ldap |
13 |
spuhler |
5049 |
Source0: %{prj}-%{version}.tgz |
14 |
|
|
BuildArch: noarch |
15 |
|
|
Requires(pre): php-pear |
16 |
|
|
Requires: horde-framework |
17 |
|
|
Requires: php-pear |
18 |
|
|
Requires: php-pear-channel-horde |
19 |
|
|
BuildRequires: php-pear |
20 |
|
|
BuildRequires: php-pear-channel-horde |
21 |
|
|
|
22 |
|
|
|
23 |
|
|
%description |
24 |
|
|
Horde_LDAP:: contains some utility functions for dealing with LDAP servers |
25 |
|
|
and data. |
26 |
|
|
|
27 |
|
|
%prep |
28 |
|
|
%setup -q -n %{prj}-%{version} |
29 |
|
|
|
30 |
|
|
%build |
31 |
pterjan |
1583331 |
mv ../package.xml . |
32 |
spuhler |
5049 |
|
33 |
|
|
%install |
34 |
|
|
pear install --packagingroot %{buildroot} --nodeps package.xml |
35 |
|
|
|
36 |
|
|
%__rm -rf %{buildroot}/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock} |
37 |
|
|
|
38 |
|
|
%__mkdir_p %{buildroot}%{xmldir} |
39 |
pterjan |
1583331 |
cp package.xml %{buildroot}%{xmldir}/%{prj}.xml |
40 |
spuhler |
5049 |
|
41 |
|
|
%clean |
42 |
|
|
%__rm -rf %{buildroot} |
43 |
|
|
|
44 |
|
|
%post |
45 |
|
|
pear install --nodeps --soft --force --register-only %{xmldir}/%{prj}.xml |
46 |
|
|
|
47 |
|
|
%postun |
48 |
|
|
if [ "$1" -eq "0" ]; then |
49 |
|
|
pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/%{prj} |
50 |
|
|
fi |
51 |
|
|
|
52 |
|
|
%files |
53 |
|
|
%defattr(-, root, root) |
54 |
|
|
%{xmldir}/%{prj}.xml |
55 |
|
|
%{peardir}/Horde/LDAP.php |
56 |
|
|
%dir %{peardir}/tests/Horde_LDAP |
57 |
|
|
%dir %{peardir}/tests/Horde_LDAP/tests |
58 |
|
|
%{peardir}/tests/Horde_LDAP/tests/quoteDN.phpt |
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|