%global drupaldir %{_datadir}/drupal6 Name: drupal6-token Version: 1.15 Release: 1%{?dist} Summary: Tokens are small bits of text that can be placed into larger documents Group: Applications/Publishing License: GPLv2 URL: http://drupal.org/project/token Source0: http://ftp.drupal.org/files/projects/token-6.x-1.15.tar.gz Source1: drupal6-token-fedora-README.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal6 >= 6.0 %description Tokens are small bits of text that can be placed into larger documents via simple placeholders. The Token module provides a central API for modules to use these tokens, and expose their own token values. %prep %setup -qn token %build chmod -x token.module cp %{SOURCE1} . %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/token cp -pr * %{buildroot}%{drupaldir}/modules/token %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE.txt drupal6-token-fedora-README.txt README.txt API.txt %exclude %{drupaldir}/modules/token/README.txt %exclude %{drupaldir}/modules/token/LICENSE.txt %exclude %{drupaldir}/modules/token/API.txt %exclude %{drupaldir}/modules/token/drupal6-token-fedora-README.txt %{drupaldir}/modules/token %changelog * Sun Dec 19 2010 Peter Borsa - 1.15-1 - Initial packaging.