%global drupaldir %{_datadir}/drupal7 Name: drupal7-pathauto Version: 1.0 Release: 0.1.rc2%{?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-1.0-rc2.tar.gz Source1: %{name}-fedora-README.txt Source2: LICENSE.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal7 drupa7-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} . cp -p %{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 LICENSE.txt %{name}-fedora-README.txt README.txt API.txt INSTALL.txt %exclude %{drupaldir}/modules/pathauto/LICENSE.txt %exclude %{drupaldir}/modules/pathauto/drupal7-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 * Wed Aug 31 2011 Scott Dodson - 1.0-0.1.rc2 - Drupal 7 packaging * Tue Feb 08 2011 Fedora Release Engineering - 1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 24 2011 Peter Borsa - 1.5-2 - Summary became talkative and shorten. - Changed License to GPLv2+. - Chmod and cp are copied under prep section. - Fixed exclude lines. * Thu Nov 23 2010 Peter Borsa - 1.5-1 - Initial packaging.