%global drupaldir %{_datadir}/drupal7 Name: drupal7-workbench Version: 1.1 Release: 1%{?dist} Summary: Provides overall improvements for managing content Group: Applications/Publishing License: GPLv2+ URL: http://drupal.org/project/workbench Source0: http://ftp.drupal.org/files/projects/workbench-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-views %description Workbench provides overall improvements for managing content that Drupal does not provide out of the box. %prep %setup -qn workbench install -p -m 0644 %{SOURCE1} . install -p -m 0644 %{SOURCE2} . %build %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/workbench cp -pr * %{buildroot}%{drupaldir}/modules/workbench %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE.txt README.txt %{name}-fedora-README.txt %{drupaldir}/modules/workbench %exclude %{drupaldir}/modules/workbench/*.txt %changelog * Thu Dec 23 2011 Peter Borsa - 1.1-1 - Initial packaging.