%global drupaldir %{_datadir}/drupal7 Name: drupal7-rules Version: 2.0 Release: 0.1.rc1%{?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-7.x-2.0-rc1.tar.gz Source1: %{name}-fedora-README.txt Source2: LICENSE.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal7, drupal7-entity %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 chmod -x rules.module cp -p %{SOURCE1} . cp -p %{SOURCE2} . %build %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 %exclude %{drupaldir}/modules/rules/*.txt %{drupaldir}/modules/rules %changelog * Wed Aug 31 2011 Scott Dodson - 2.0-0.1.rc1 - Drupal 7 packaging