%global drupaldir %{_datadir}/drupal6 Name: drupal6-pathauto Version: 1.5 Release: 2%{?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-6.x-1.5.tar.gz Source1: %{name}-fedora-README.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal6, drupal6-token %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 chmod -x pathauto.module cp -p %{SOURCE1} . %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 LICENSE.txt %{name}-fedora-README.txt README.txt API.txt INSTALL.txt %exclude %{drupaldir}/modules/pathauto/LICENSE.txt %exclude %{drupaldir}/modules/pathauto/drupal6-pathauto-fedora-README.txt %exclude %{drupaldir}/modules/pathauto/README.txt %exclude %{drupaldir}/modules/pathauto/API.txt %exclude %{drupaldir}/modules/pathauto/INSTALL.txt %{drupaldir}/modules/pathauto %changelog * Mon Jan 24 2011 Peter Borsa - 1.5-2 - Summary became talkative and shorten. - Changed License to GPLv2+. - chmod and cp moved under prep section. - Fixed exclude lines. * Thu Nov 23 2010 Peter Borsa - 1.5-1 - Initial packaging.