%global drupaldir %{_datadir}/drupal7 %global alphabeta beta %global prerelease 1 Name: drupal7-advanced_help Version: 1.0 Release: 0.1.%{alphabeta}%{prerelease}%{?dist} Summary: Allows module developers to store their help outside the module system in html Group: Applications/Publishing License: GPLv2+ URL: http://drupal.org/project/advanced_help Source0: http://ftp.drupal.org/files/projects/advanced_help-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 The advanced help module allows module developers to store their help outside the module system, in pure .html files. The files can be easily translated simply by copying them into the right translations directory. The entire system can appear in a pop-up or not as the module prefers. %prep %setup -qn advanced_help install -p -m 0644 %{SOURCE1} . install -p -m 0644 %{SOURCE2} . %build %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/advanced_help cp -pr * %{buildroot}%{drupaldir}/modules/advanced_help %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE.txt %{name}-fedora-README.txt %{drupaldir}/modules/advanced_help %exclude %{drupaldir}/modules/advanced_help/*.txt %changelog * Tue Oct 18 2011 Peter Borsa - 1.0-0.1.beta1 - Initial packaging.