%global prerelease 4 %global beta alpha %define drupaldir %{_datadir}/drupal7 Name: drupal7-date Version: 2.0 Release: 0.1.%{beta}%{prerelease}%{?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-%{version}-%{beta}%{prerelease}.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 This Drupal module contains both a flexible date/time field type and a Date API that other modules can use. %prep %setup -qn date %build cp %{SOURCE1} . cp %{SOURCE2} . find ${buildroot} -size 0 | xargs rm -f %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 %changelog * Sun Sep 11 2011 Jared Smith - 2.0-0.1.alpha4 - Update to alpha4 - Update FSF address in LICENSE.txt * Sat Jul 30 2011 Jared Smith - 2.0-0.1.alpha3 - Initial version for Drupal 7