%define drupaldir %{_datadir}/drupal7 Name: drupal7 Version: 7.19 Release: 1%{?dist} Summary: An open-source content-management platform Group: Applications/Publishing License: GPLv2+ and BSD URL: http://www.drupal.org Source0: http://ftp.osuosl.org/pub/drupal/files/projects/drupal-%{version}.tar.gz Source1: %{name}.conf Source2: %{name}-README.fedora Source3: %{name}-cron Source4: %{name}-files-migrator.sh Patch0: %{name}-7.4-scripts-noshebang.patch Patch1: drupal-7.14-CVE-2012-2922.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: php, php-gd, php-mbstring, wget, php-pdo, php-xml %description Equipped with a powerful blend of features, Drupal is a Content Management System written in PHP that can support a variety of websites ranging from personal weblogs to large community-driven websites. Drupal is highly configurable, skinnable, and secure. %prep %setup -q -n drupal-%{version} %patch0 -p1 %patch1 -p0 chmod -x scripts/drupal.sh chmod -x scripts/password-hash.sh chmod -x scripts/run-tests.sh %build %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir} cp -pr * %{buildroot}%{drupaldir} cp -pr .htaccess %{buildroot}%{drupaldir} mkdir -p %{buildroot}%{_sysconfdir}/httpd mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d cp -pr %SOURCE1 %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf mkdir -p %{buildroot}%{_sysconfdir}/%{name} mv %{buildroot}%{drupaldir}/sites/* %{buildroot}%{_sysconfdir}/%{name} rmdir %{buildroot}%{drupaldir}/sites ln -s ../../..%{_sysconfdir}/%{name} %{buildroot}%{drupaldir}/sites mkdir -p %{buildroot}%{_docdir} cp -pr %SOURCE2 . install -D -p -m 0644 %SOURCE3 %{buildroot}%{_sysconfdir}/cron.hourly/%{name} mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/files/default ln -s ../../..%{_localstatedir}/lib/%{name}/files/default %{buildroot}%{_sysconfdir}/%{name}/default/files cp -pr %SOURCE4 . mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d mv %{buildroot}%{drupaldir}/.htaccess %{buildroot}%{_sysconfdir}/httpd/conf.d/drupal7-site.htaccess ln -s ../../../%{_sysconfdir}/httpd/conf.d/drupal7-site.htaccess %{buildroot}%{drupaldir}/.htaccess mv %{buildroot}%{_sysconfdir}/%{name}/example.sites.php . %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc CHANGELOG.txt INSTALL* LICENSE* MAINTAINERS.txt UPGRADE.txt %{name}-README.fedora sites/README.txt %{name}-files-migrator.sh %doc COPYRIGHT.txt README.txt example.sites.php %{drupaldir} %exclude %{drupaldir}/CHANGELOG.txt %exclude %{drupaldir}/INSTALL* %exclude %{drupaldir}/LICENSE* %exclude %{drupaldir}/MAINTAINERS.txt %exclude %{drupaldir}/UPGRADE.txt %exclude %{drupaldir}/COPYRIGHT.txt %exclude %{drupaldir}/README.txt %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/all %exclude %{_sysconfdir}/%{name}/README.txt %config(noreplace) %{_sysconfdir}/%{name}/default %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}*.conf %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}*.htaccess %attr(755,root,apache) %config(noreplace) %{_sysconfdir}/cron.hourly/%{name} %dir %attr(775,root,apache) %{_localstatedir}/lib/%{name}/ %dir %attr(775,root,apache) %{_localstatedir}/lib/%{name}/files/ %dir %attr(775,root,apache) %{_localstatedir}/lib/%{name}/files/default/ %changelog * Thu Jan 17 2013 Jon Ciesla - 7.19-1 - 7.19, SA-CORE-2013-001. * Thu Dec 20 2012 Jon Ciesla - 7.18-1 - 7.18. * Thu Nov 8 2012 Peter Borsa - 7.17-2 - Fix README.txt location. * Thu Nov 8 2012 Peter Borsa - 7.17-1 - New upstream. * Wed Oct 31 2012 Jon Ciesla - 7.16-3 - Fix conf. * Tue Oct 30 2012 Jon Ciesla - 7.16-2 - Fix for httpd 2.4, BZ 871394. * Wed Oct 16 2012 Orion Poplawski - 7.16-1 - New upstream - SA-CORE-2012-003 security update * Wed Aug 1 2012 Peter Borsa - 7.15-1 - New upstream. * Wed Jul 18 2012 Fedora Release Engineering - 7.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu May 24 2012 Jon Ciesla - 7.14-2 - Patch for CVE-2012-2922, BZ 824631, BZ 824632. * Thu May 3 2012 Paul W. Frields - 7.14-1 - New upstream. (#818538) * Thu Feb 02 2012 Jon Ciesla - 7.12-1 - New upstream. * Fri Jan 13 2012 Fedora Release Engineering - 7.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Jon Ciesla - 7.10-1 - New upstream, BZ 760504. * Thu Oct 27 2011 Paul W. Frields - 7.9-1 - New upstream, BZ 749509. * Sat Sep 3 2011 Paul W. Frields - 7.8-1 - New upstream, minor bugfixes and API improvements only. * Sun Aug 7 2011 Paul W. Frields - 7.7-1 - New upstream, fixed version string only. * Wed Jul 27 2011 Jon Ciesla - 7.6-1 - New upstream, SA-CORE-2011-003, BZ 726243. * Thu Jun 30 2011 Jon Ciesla - 7.4-1 - New upstream, SA-CORE-2011-002, BZ 717874. - Dropped unused dirs in /etc/drupal7/, BZ 703736. * Fri Jun 17 2011 Jon Ciesla - 7.2-2 - Bump and rebuild for BZ 712251. * Thu May 26 2011 Jon Ciesla - 7.2-1 - New upstream, SA-CORE-2011-001. * Wed Apr 06 2011 Jon Ciesla - 7.0-4 - Exlcuded README and COPYRIGHT. - Fixed sites symlink. * Tue Mar 29 2011 Jon Ciesla - 7.0-3 - Fixed sites symlink. - Moved example.sites.php to doc. - Fixed year in changelog. - Added php-pdo and php-xml requires. - Corrected license tag. * Fri Feb 25 2011 Jon Ciesla - 7.0-2 - Corrected license tag. * Wed Jan 05 2011 Jon Ciesla - 7.0-1 - Initial packaging.