%global drupaldir %{_datadir}/drupal7 %global alphabeta rc %global prerelease 2 Name: drupal7-pathauto Version: 1.0 Release: 0.1.%{alphabeta}%{prerelease}%{?dist} Summary: Automatically generates path aliases Group: Applications/Publishing License: GPLv2+ URL: http://drupal.org/project/pathauto Source0: http://ftp.drupal.org/files/projects/pathauto-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 Requires: drupal7-token >= 1.0-0.1.beta5 %description The Pathauto module automatically generates path aliases for various kinds of content (nodes, categories, users) without requiring the user to manually specify the path alias. %prep %setup -qn pathauto install -p -m 0644 %{SOURCE1} . install -p -m 0644 %{SOURCE2} . %build %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/pathauto cp -pr * %{buildroot}%{drupaldir}/modules/pathauto %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc API.txt INSTALL.txt LICENSE.txt README.txt %{name}-fedora-README.txt %{drupaldir}/modules/pathauto %exclude %{drupaldir}/modules/pathauto/*.txt %changelog * Fri Sep 23 2011 Peter Borsa - 1.0-0.1.rc2 - Initial packaging