6e4908c
%define drupaldir %{_datadir}/drupal7
6e4908c
Name: drupal7-date
475ce7f
Version:  2.5
bdaf1a5
Release:  1%{?dist}
6e4908c
Summary:  This package contains both the Date module and a Date API module
6e4908c
6e4908c
Group: Applications/Publishing
6e4908c
License: GPLv2+
6e4908c
URL: http://drupal.org/project/date
8652fca
Source0: http://ftp.drupal.org/files/projects/date-7.x-%{version}.tar.gz
6e4908c
Source1: %{name}-fedora-README.txt
6e4908c
Source2: LICENSE.txt
6e4908c
6e4908c
BuildArch: noarch
6e4908c
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6e4908c
Requires: drupal7 >= 7.0 
6e4908c
6e4908c
%description
6e4908c
This Drupal module contains both a flexible date/time field type and 
6e4908c
a Date API that other modules can use. 
6e4908c
6e4908c
%prep
6e4908c
6e4908c
%setup -qn date
6e4908c
6e4908c
%build
6e4908c
6e4908c
cp %{SOURCE1} .
6e4908c
cp %{SOURCE2} .
6e4908c
find ${buildroot} -size 0 | xargs rm -f
6e4908c
6e4908c
%install
6e4908c
rm -rf %{buildroot}
6e4908c
install -d %{buildroot}%{drupaldir}/modules/date
6e4908c
cp -pr * %{buildroot}%{drupaldir}/modules/date
6e4908c
6e4908c
%clean
6e4908c
rm -rf %{buildroot}
6e4908c
6e4908c
%files
6e4908c
%defattr(-,root,root,-)
6e4908c
%doc CHANGELOG.txt LICENSE.txt INSTALL.txt %{name}-fedora-README.txt
6e4908c
%{drupaldir}/modules/date
6e4908c
%exclude %{drupaldir}/modules/date/CHANGELOG.txt
6e4908c
%exclude %{drupaldir}/modules/date/LICENSE.txt
6e4908c
%exclude %{drupaldir}/modules/date/INSTALL.txt
6e4908c
%exclude %{drupaldir}/modules/date/%{name}-fedora-README.txt
6e4908c
6e4908c
%changelog
475ce7f
* Thu Apr 19 2012 Jared Smith <jsmith@fedoraproject.org> - 2.5-1
475ce7f
- Update to upstream release 2.5
89e19ad
* Mon Apr 02 2012 Jared Smith <jsmith@fedoraproject.org> - 2.3-1
89e19ad
- Update to upstream release 2.3
bdaf1a5
* Mon Feb 27 2012 Jared Smith <jsmith@fedoraproject.org> - 2.2-1
bdaf1a5
- Update to upstream release 2.2
d6e2c4d
* Thu Feb 23 2012 Jared Smith <jsmith@fedoraproject.org> - 2.1-3
d6e2c4d
- Accidentally removed the %{dist} from the release number
d9e6128
* Thu Feb 23 2012 Jared Smith <jsmith@fedoraproject.org> - 2.1-2
d9e6128
- Bump release number to fix a small typo
784886d
* Wed Feb 22 2012 Jared Smith <jsmith@fedoraproject.org> - 2.1-1
8652fca
- Update to upstream 2.1 release
ebd83cd
* Sat Feb 04 2012 Jared Smith <jsmith@fedoraproject.org> - 2.0-0.1.rc2
ebd83cd
- Update to rc2
64f0f8b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-0.2.rc1
64f0f8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
45d2fe4
* Wed Dec 21 2011 Jared Smith <jsmith@fedoraproject.org> - 2.0-0.1.rc1
45d2fe4
- Update to rc1
45d2fe4
- Convert CHANGELOG.txt to UTF-8
6e4908c
* Sun Sep 11 2011 Jared Smith <jsmith@fedoraproject.org> - 2.0-0.1.alpha4
6e4908c
- Update to alpha4
6e4908c
- Update FSF address in LICENSE.txt
6e4908c
* Sat Jul 30 2011 Jared Smith <jsmith@fedoraproject.org> - 2.0-0.1.alpha3
6e4908c
- Initial version for Drupal 7