%if 0%{?fedora} >= 15 || 0%{?rhel} >= 6 %global drupaldir %{_datadir}/drupal6 %else %global drupaldir %{_datadir}/drupal %endif %global module_name multisite_manager Name: drupal6-%{module_name} Version: 1.0 Release: 2%{?dist} Summary: Allows creation of new drupal sites from a central drupal site Group: Applications/Publishing License: GPLv2+ URL: http://drupal.org/project/%{module_name} Source0: http://ftp.drupal.org/files/projects/%{module_name}-6.x-1.0.tar.gz Source1: drupal6-module-fedora-README.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{module_name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal6 %description Allows creation of new drupal sites from a central drupal site without the creator having access to database info. The new site is installed either in the same database with a different prefix or if the drupal db_user has access to create a database and grant privileges, then possibly there. If you are looking for inter-related sites, this module will not achieve this alone (see Organic Group modules). This simply makes it possible for users to skip the typical drupal installation process (entering the db user/password), making it possible for non-admins to do this step. %prep %setup -qn %{module_name} %build cp %{SOURCE1} . %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/%{module_name} cp -pr * %{buildroot}%{drupaldir}/modules/%{module_name} ln -s . %{buildroot}%{drupaldir}/site %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc INSTALL.txt LICENSE.txt %{drupaldir}/modules/%{module_name} %exclude %{drupaldir}/modules/%{module_name}/INSTALL.txt %exclude %{drupaldir}/modules/%{module_name}/LICENSE.txt %exclude %{drupaldir}/modules/%{module_name}/drupal6-module-fedora-README.txt %{drupaldir}/site %changelog * Tue Jan 18 2011 Orion Poplawski - 1.0-2 - Correct license to GPLv2+ - Use drupal6 dir on F15+, EL6+ * Wed Oct 6 2010 Orion Poplawski - 1.0-1 - Initial package