%global drupaldir %{_datadir}/drupal6 Name: drupal6-rules Version: 1.4 Release: 1%{?dist} Summary: It allows site administrators to define conditionally executed actions Group: Applications/Publishing License: GPLv2 URL: http://drupal.org/project/rules Source0: http://ftp.drupal.org/files/projects/rules-6.x-1.4.tar.gz Source1: %{name}-fedora-README.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal6, php >= 5.1 %description The rules modules allows site administrators to define conditionally executed actions based on occurring events (known as reactive or ECA rules). It's a replacement with more features for the trigger module in core and the successor of the Drupal 5 workflow-ng module. %prep %setup -qn rules %build chmod -x rules/rules.module cp %{SOURCE1} . %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/rules cp -pr * %{buildroot}%{drupaldir}/modules/rules %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE.txt %{name}-fedora-README.txt README.txt UPGRADE.txt %exclude %{drupaldir}/modules/rules/*.txt %{drupaldir}/modules/rules %changelog * Thu Jan 13 2010 Peter Borsa - 1.4-1 - Initial packaging.