%global drupalver 6 %{?rhel: %{expand: %%global drupal drupal%%{drupalver}}} %if 0%{?fedora} >= 15 %global drupal drupal%{drupalver} %endif %{!?drupal: %{expand: %%global drupal drupal}} # e.g. "/usr/share/drupal6" %global drupaldir %{_datadir}/%{drupal} # Use upstream name as expressed in URL and tarball %global modname ldap_integration Name: drupal%{drupalver}-%{modname} Version: 1.0 Release: 0.2.beta2%{?dist} Summary: Drupal ldapauth, ldapgroups, and ldapdata modules Group: Applications/Publishing License: GPLv2+ URL: http://drupal.org/project/%{modname} Source0: http://ftp.drupal.org/files/projects/%{modname}-%{drupalver}.x-%{version}-beta2.tar.gz Source1: %{name}-fedora-README.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{modname}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: %{drupal} >= 6.0 Requires: php-ldap %description This package actually contains three modules: 1. ldapauth - allows users to authenticate against multiple LDAP or AD servers. 2. ldapgroups - use LDAP groups as Drupal roles 3. ldapdata - provides read or read/write access to LDAP data from within Drupal For advanced ldap related user registration, mass imports, and more, check out the LDAP provisioning module. %prep %setup -qn %{modname} %build cp %{SOURCE1} . %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/%{modname} find . -type f -exec install -m 0644 -D '{}' %{buildroot}%{drupaldir}/modules/%{modname}/'{}' \; %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc ChangeLog LICENSE.txt %{name}-fedora-README.txt %{drupaldir}/modules/%{modname} %exclude %{drupaldir}/modules/%{modname}/ChangeLog %exclude %{drupaldir}/modules/%{modname}/LICENSE.txt %exclude %{drupaldir}/modules/%{modname}/%{name}-fedora-README.txt %changelog * Wed Apr 6 2011 Orion Poplawski - 1.0-0.2.beta2 - Update to latest drupal template - Update license * Thu Mar 4 2010 Orion Poplawski - 1.0-0.1.beta2 - Initial package