%global drupaldir %{_datadir}/drupal6 Name: drupal6-auto_nodetitle Version: 1.2 Release: 2%{?dist} Summary: A small and efficient module that allows hiding of the content title Group: Applications/Publishing License: GPLv2 URL: http://drupal.org/project/auto_nodetitle Source0: http://ftp.drupal.org/files/projects/auto_nodetitle-6.x-1.2.tar.gz Source1: %{name}-fedora-README.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal6 %description This is a small and efficient module that allows hiding of the content title field in the form. To prevent empty content title fields one can configure it to generate the title by a given pattern. When the token module is installed it's possible to use various node data for the auto generated title - e.g. use the text of a CCK field (since 5.x). Advanced users can also provide some PHP code, that is used for automatically generating an appropriate title. %prep %setup -qn auto_nodetitle %build chmod -x auto_nodetitle.module chmod -x README.txt chmod -x auto_nodetitle.install cp %{SOURCE1} . %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/auto_nodetitle cp -pr * %{buildroot}%{drupaldir}/modules/auto_nodetitle %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE.txt %{name}-fedora-README.txt README.txt %exclude %{drupaldir}/modules/auto_nodetitle/*.txt %{drupaldir}/modules/auto_nodetitle %changelog * Sat Jan 08 2011 Peter Borsa - 1.2-2 - Additional review adjustments. * Sun Dec 19 2010 Peter Borsa - 1.2-1 - Initial packaging.