]>
Commit | Line | Data |
---|---|---|
3c929fed ER |
1 | %define modname ldap_integration |
2 | Summary: Drupal LDAP Integration Module | |
3 | Name: drupal-mod-%{modname} | |
4 | Version: 4.6.0 | |
5 | Release: 0.1 | |
6 | License: ? | |
7 | Group: Applications/WWW | |
8 | Source0: http://wiki.pablobm.com/images/5/51/Ldap_integration-%{version}.tar.gz | |
9 | # Source0-md5: ab190ffb43d8365de411b17354e94bb1 | |
10 | URL: http://drupal.org/node/15109 | |
11 | Requires: drupal >= 4.6.0 | |
12 | Requires: php-ldap | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _sysconfdir /etc/drupal | |
17 | %define _drupaldir %{_datadir}/drupal | |
18 | %define _moddir %{_drupaldir}/modules | |
19 | ||
20 | %description | |
21 | This module allows users to authenticate against a LDAP directory. | |
22 | Additionally, users can read and modify their data in the LDAP directory, being | |
23 | the administrator able to limit it. | |
24 | ||
25 | %prep | |
26 | %setup -q -n %{modname}-%{version} | |
27 | ||
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | install -d $RPM_BUILD_ROOT%{_moddir} | |
31 | ||
32 | cp -a *.module $RPM_BUILD_ROOT%{_moddir} | |
33 | cp -a %{modname} $RPM_BUILD_ROOT%{_moddir} | |
34 | ||
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %{_moddir}/*.module | |
42 | %{_moddir}/%{modname} |