Logoj0ke.net Open Build Service > Projects > server:telephony > asterisk-app_ldap > Changes
Sign Up | Log In

Changes of Revision 2

[-] Added asterisk-app_ldap.spec
x
 
1
@@ -0,0 +1,37 @@
2
+Name:           asterisk-app_ldap
3
+Version:        2.0rc1
4
+Release:        1
5
+License:        GPL
6
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
7
+BuildRequires:  asterisk asterisk-devel openldap2 openldap2-devel spandsp curl
8
+Requires:       asterisk openldap2
9
+Group:          telephony
10
+Summary:        LDAPget Asterisk application module
11
+Source:         app_ldap-%{version}.tar.gz
12
+
13
+%description
14
+LDAPget is an asterisk application which can lookup data
15
+in an LDAP directory (e.g. OpenLDAP or ActiveDirectory).
16
+LDAPget does not require you to use a specific LDAP schema.
17
+If the requested data is found in the directory it is assigned
18
+to a given variable an the priority is increased by 101.
19
+
20
+
21
+%prep
22
+%setup -n app_ldap-%{version}
23
+
24
+%build
25
+
26
+%install
27
+rm -rf %{buildroot}
28
+mkdir -p %{buildroot}/etc/asterisk
29
+mkdir -p %{buildroot}/%{_libdir}/asterisk/modules
30
+%{__make} install DESTDIR=%{buildroot} LIBDIR=%{_libdir}
31
+
32
+%clean
33
+rm -rf "$RPM_BUILD_ROOT"
34
+
35
+%files
36
+%defattr(-,root,root)
37
+%{_libdir}/asterisk/modules/app_ldap.so
38
+/etc/asterisk/ldap.conf
39