%global drupaldir %{_datadir}/drupal7 Name: drupal7-rules Version: 2.0 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-7.x-%{version}.tar.gz Source1: %{name}-fedora-README.txt Source2: LICENSE.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal7 Requires: 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 install -p -m 0644 %{SOURCE1} . install -p -m 0644 %{SOURCE2} . find -type f -perm /111 | xargs chmod -x %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 DEVELOPER.txt LICENSE.txt README.txt %{name}-fedora-README.txt %{drupaldir}/modules/rules %exclude %{drupaldir}/modules/rules/*.txt %changelog * Thu Dec 22 2011 Peter Borsa - 2.0-1 - Initial packaging.