9 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
11 Packager: PlanetLab Central <support@planet-lab.org>
13 # remain compliant with former planetlab practices
14 %define drupaldir /var/www/html
18 Summary: An open-source content-management platform
20 Group: Applications/Publishing
22 URL: http://www.drupal.org
23 Source0: http://ftp.osuosl.org/pub/drupal/files/projects/%{name}-%{version}.%{taglevel}.tar.gz
28 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
29 Requires: php, php-gd, php-mbstring, wget
32 Equipped with a powerful blend of features, Drupal is a Content Management
33 System written in PHP that can support a variety of websites ranging from
34 personal weblogs to large community-driven websites. Drupal is highly
35 configurable, skinnable, and secure.
39 %setup -q -n %{name}-%{version}.%{taglevel}
45 install -d %{buildroot}%{drupaldir}
46 cp -pr * %{buildroot}%{drupaldir}
47 cp -pr .htaccess %{buildroot}%{drupaldir}
48 mkdir -p %{buildroot}%{_docdir}
49 install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.hourly/drupal
50 mkdir %{buildroot}%{drupaldir}/files
56 %defattr(-,root,root,-)
57 %doc CHANGELOG.txt INSTALL* LICENSE* MAINTAINERS.txt UPGRADE.txt
59 %config(noreplace) %{drupaldir}/.htaccess
60 %exclude %{drupaldir}/CHANGELOG.txt
61 %exclude %{drupaldir}/INSTALL*
62 %exclude %{drupaldir}/LICENSE*
63 %exclude %{drupaldir}/MAINTAINERS.txt
64 %exclude %{drupaldir}/UPGRADE.txt
65 %config(noreplace) %{drupaldir}/sites/default
66 %attr(755,root,apache) %{_sysconfdir}/cron.hourly/drupal
67 %dir %attr(775,root,apache) %{drupaldir}/files
70 * Fri Jan 09 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> -