/[packages]/cauldron/horde-ldap/current/SPECS/horde-ldap.spec
ViewVC logotype

Annotation of /cauldron/horde-ldap/current/SPECS/horde-ldap.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 389213 - (hide annotations) (download)
Thu Jan 17 21:29:26 2013 UTC (12 years, 5 months ago) by pterjan
Original Path: obsolete/cauldron/horde-ldap/current/SPECS/horde-ldap.spec
File size: 1414 byte(s)
Drop 
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     Url: http://pear.horde.org/index.php?package=%{prj}
13     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     %__mv ../package.xml .
32    
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     %__cp package.xml %{buildroot}%{xmldir}/%{prj}.xml
40    
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    

  ViewVC Help
Powered by ViewVC 1.1.30