%global drupaldir %{_datadir}/drupal7 Name: drupal7-workbench_moderation Version: 1.1 Release: 1%{?dist} Summary: Adds arbitrary moderation states to Drupal Group: Applications/Publishing License: GPLv2+ URL: http://drupal.org/project/workbench_moderation Source0: http://ftp.drupal.org/files/projects/workbench_moderation-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 %description Workbench Moderation adds arbitrary moderation states to Drupal core's unpublished and published node states, and affects the behavior of node revisions when nodes are published. Moderation states are tracked per-revision; rather than moderating nodes, Workbench Moderation moderates revisions. %prep %setup -qn workbench_moderation install -p -m 0644 %{SOURCE1} . install -p -m 0644 %{SOURCE2} . %build %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/workbench_moderation cp -pr * %{buildroot}%{drupaldir}/modules/workbench_moderation %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE.txt README.txt %{name}-fedora-README.txt %{drupaldir}/modules/workbench_moderation %exclude %{drupaldir}/modules/workbench_moderation/*.txt %changelog * Fri Dec 23 2011 Peter Borsa - 1.1-1 - Initial packaging.