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
26 Source3: http://ftp.drupal.org/files/projects/taxonomy_block-4.7.x-1.x-dev.tar.gz
29 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
30 Requires: php, php-gd, php-mbstring, wget
33 Equipped with a powerful blend of features, Drupal is a Content Management
34 System written in PHP that can support a variety of websites ranging from
35 personal weblogs to large community-driven websites. Drupal is highly
36 configurable, skinnable, and secure.
39 %setup -q -n %{name}-%{version}.%{taglevel} -a 3
42 mv taxonomy_block modules
46 install -d %{buildroot}%{drupaldir}
47 cp -pr * %{buildroot}%{drupaldir}
48 cp -pr .htaccess %{buildroot}%{drupaldir}
49 mkdir -p %{buildroot}%{_docdir}
50 install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.hourly/drupal
51 mkdir %{buildroot}%{drupaldir}/files
57 %defattr(-,root,root,-)
58 %doc CHANGELOG.txt INSTALL* LICENSE* MAINTAINERS.txt UPGRADE.txt
60 %config(noreplace) %{drupaldir}/.htaccess
61 %exclude %{drupaldir}/CHANGELOG.txt
62 %exclude %{drupaldir}/INSTALL*
63 %exclude %{drupaldir}/LICENSE*
64 %exclude %{drupaldir}/MAINTAINERS.txt
65 %exclude %{drupaldir}/UPGRADE.txt
66 %config(noreplace) %{drupaldir}/sites/default
67 %attr(755,root,apache) %{_sysconfdir}/cron.hourly/drupal
68 %dir %attr(775,root,apache) %{drupaldir}/files
71 * Fri Jan 09 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> -