Summary: Open source content management platform Name: drupal Version: 4.6.0 Release: 0.2 Epoch: 0 License: GPL Group: Applications/WWW Source0: http://drupal.org/files/projects/%{name}-%{version}.tar.gz # Source0-md5: cba80c4f511284b09d6a0a2def5cb250 Source1: %{name}.conf URL: http://drupal.org/ BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _appdir %{_datadir}/%{name} %define _sysconfdir /etc/%{name} %description Drupal is software that allows an individual or a community of users to easily publish, manage and organize a great variety of content on a website. Tens of thousands of people and organizations have used Drupal to set up scores of different kinds of web sites, including - community web portals and discussion sites - corporate web sites/intranet portals - personal web sites - afficionado sites - e-commerce applications - resource directories Drupal includes features to enable - content management systems - blogs - collaborative authoring environments - forums - newsletters - picture galleries - file uploads and download and much more. %prep %setup -q %build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_appdir}/htdocs,%{_sysconfdir}} cp -a *.ico index.php $RPM_BUILD_ROOT%{_appdir}/htdocs cp -a themes misc $RPM_BUILD_ROOT%{_appdir}/htdocs cp -a cron.php $RPM_BUILD_ROOT%{_appdir} cp -a includes modules scripts sites $RPM_BUILD_ROOT%{_appdir} install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache-%{name}.conf %clean rm -rf $RPM_BUILD_ROOT %triggerin -- apache1 >= 1.3.33-2 %apache_config_install -v 1 -c %{_sysconfdir}/apache-%{name}.conf %triggerun -- apache1 >= 1.3.33-2 %apache_config_uninstall -v 1 %triggerin -- apache >= 2.0.0 %apache_config_install -v 2 -c %{_sysconfdir}/apache-%{name}.conf %triggerun -- apache >= 2.0.0 %apache_config_uninstall -v 2 %files %defattr(644,root,root,755) %doc *.txt database %attr(750,root,http) %dir %{_sysconfdir} %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache-%{name}.conf %dir %{_appdir} %{_appdir}/*.php %{_appdir}/htdocs %{_appdir}/includes %{_appdir}/modules %{_appdir}/scripts %{_appdir}/sites