%if 0%{?fedora} >= 15 || 0%{?rhel} >= 6 %global drupaldir %{_datadir}/drupal6 %else %global drupaldir %{_datadir}/drupal %endif %global module_name securepages Name: drupal6-%{module_name} Version: 1.9 Release: 1%{?dist} Summary: Redirect the required pages to a SSL version of the page Group: Applications/Publishing License: GPLv2+ URL: http://drupal.org/project/%{module_name} Source0: http://ftp.drupal.org/files/projects/%{module_name}-6.x-%{version}.tar.gz Source1: drupal6-module-fedora-README.txt # Fix up php 5.3 warnings Patch0: drupal6-securepages-php53.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{module_name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal6 Requires: php-ldap %description This module will redirect the required pages to a SSL version of the page. So you make sure the user is running on a secure page when they are creating/ editing content, viewing user details, or administering the site. Make sure that your web server has SSL enabled and you Drupal installation has been configured to support SSL access Special Thanks to: This module is brought to you by Station (http://www.station.ch) Related modules: Users of this module should consider using Secure Pages Hijack Prevention which makes "mixed mode" SSL more secure. %prep %setup -qn %{module_name} %patch0 -p1 -b .php53 %build cp %{SOURCE1} . %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/%{module_name} cp -pr * %{buildroot}%{drupaldir}/modules/%{module_name} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc FAQ.txt LICENSE.txt drupal6-module-fedora-README.txt %{drupaldir}/modules/%{module_name} %exclude %{drupaldir}/modules/%{module_name}/FAQ.txt %exclude %{drupaldir}/modules/%{module_name}/LICENSE.txt %exclude %{drupaldir}/modules/%{module_name}/drupal6-module-fedora-README.txt %changelog * Fri Jul 29 2011 Orion Poplawski - 1.9-1 - Update to 1.9 - Change license to GPLv2+ * Wed Mar 17 2010 Orion Poplawski - 1.8-2 - Add patch to fix php 5.3 warnings * Thu Mar 4 2010 Orion Poplawski - 1.8-1 - Initial package