1 Summary: Open source content management platform
7 Group: Applications/WWW
8 Source0: http://drupal.org/files/projects/%{name}-%{version}.tar.gz
9 # Source0-md5: cba80c4f511284b09d6a0a2def5cb250
11 URL: http://drupal.org/
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define _appdir %{_datadir}/%{name}
16 %define _sysconfdir /etc/%{name}
19 Drupal is software that allows an individual or a community of users
20 to easily publish, manage and organize a great variety of content on a
21 website. Tens of thousands of people and organizations have used
22 Drupal to set up scores of different kinds of web sites, including
23 - community web portals and discussion sites
24 - corporate web sites/intranet portals
27 - e-commerce applications
28 - resource directories
30 Drupal includes features to enable
31 - content management systems
33 - collaborative authoring environments
37 - file uploads and download
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_appdir}/htdocs,%{_sysconfdir}}
50 cp -a *.ico index.php $RPM_BUILD_ROOT%{_appdir}/htdocs
51 cp -a themes misc $RPM_BUILD_ROOT%{_appdir}/htdocs
53 cp -a cron.php $RPM_BUILD_ROOT%{_appdir}
54 cp -a includes modules scripts sites $RPM_BUILD_ROOT%{_appdir}
56 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache-%{name}.conf
59 rm -rf $RPM_BUILD_ROOT
61 %triggerin -- apache1 >= 1.3.33-2
62 %apache_config_install -v 1 -c %{_sysconfdir}/apache-%{name}.conf
64 %triggerun -- apache1 >= 1.3.33-2
65 %apache_config_uninstall -v 1
67 %triggerin -- apache >= 2.0.0
68 %apache_config_install -v 2 -c %{_sysconfdir}/apache-%{name}.conf
70 %triggerun -- apache >= 2.0.0
71 %apache_config_uninstall -v 2
74 %defattr(644,root,root,755)
77 %attr(750,root,http) %dir %{_sysconfdir}
78 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache-%{name}.conf