%define drupaldir %{_datadir}/drupal7 Name: drupal7-date Version: 2.0 Release: 0.1.alpha4%{?dist} Summary: This package contains both the Date module and a Date API module Group: Applications/Publishing License: GPLv2+ URL: http://drupal.org/project/date Source0: http://ftp.drupal.org/files/projects/date-7.x-2.0-alpha4.tar.gz Source1: %{name}-fedora-README.txt Source2: LICENSE.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal7 >= 7.0 %description The Date API is available to be used by other modules and is not dependent on having CCK installed. The date module is a flexible date/time field type for the cck content module which requires the CCK content.module and the Date API module. %prep %setup -qn date #%patch0 -p0 %build cp %{SOURCE1} . cp %{SOURCE2} . %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/date cp -pr * %{buildroot}%{drupaldir}/modules/date %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc CHANGELOG.txt LICENSE.txt INSTALL.txt %{name}-fedora-README.txt %{drupaldir}/modules/date %exclude %{drupaldir}/modules/date/CHANGELOG.txt %exclude %{drupaldir}/modules/date/LICENSE.txt %exclude %{drupaldir}/modules/date/INSTALL.txt %exclude %{drupaldir}/modules/date/%{name}-fedora-README.txt %exclude %{drupaldir}/modules/date/help/date-views.html %changelog * Tue Aug 30 2011 Scott Dodson 2.0-0.1.alpha4 - Initial packaging.