%global drupaldir %{_datadir}/drupal7 %global alphabeta beta %global prerelease 5 Name: drupal7-token Version: 1.0 Release: 0.1.%{alphabeta}%{prerelease}%{?dist} Summary: Provides a method for site designers to control content presentation Group: Applications/Publishing License: GPLv2+ URL: http://drupal.org/project/token Source0: http://ftp.drupal.org/files/projects/token-7.x-%{version}-%{alphabeta}%{prerelease}.tar.gz Source1: %{name}-fedora-README.txt Source2: LICENSE.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal7 %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 install -p -m 0644 %{SOURCE1} . install -p -m 0644 %{SOURCE2} . %build %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 README.txt %{name}-fedora-README.txt %{drupaldir}/modules/token %exclude %{drupaldir}/modules/token/*.txt %changelog * Fri Sep 23 2011 Peter Borsa - 1.0-0.1.beta5 - Initial packaging