# Disable automatic requires/provides processing AutoReqProv: no #rpm macros dir %global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) %define drupaldir %{_datadir}/drupal7 Name: drupal7 Version: 7.54 Release: 3%{?dist} Summary: An open-source content-management platform Group: Applications/Publishing License: GPLv2+ and BSD and MIT 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 Source5: macros.%{name} Source6: %{name}.attr Source7: %{name}.prov Source8: macros.%{name}.rpm-lt-4-9-compat Source9: %{name}.prov.rpm-lt-4-9-compat Source10: %{name}.req Source11: %{name}.req.rpm-lt-4-9-compat 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(httpd), php-gd, php-mbstring, wget, php-pdo, php-xml Requires: crontabs # Virtual provides ## Core Provides: drupal7(core) = %{version} ## Modules Provides: drupal7(aggregator) = %{version} Provides: drupal7(block) = %{version} Provides: drupal7(blog) = %{version} Provides: drupal7(book) = %{version} Provides: drupal7(color) = %{version} Provides: drupal7(comment) = %{version} Provides: drupal7(contact) = %{version} Provides: drupal7(contextual) = %{version} Provides: drupal7(dashboard) = %{version} Provides: drupal7(dblog) = %{version} Provides: drupal7(field_sql_storage) = %{version} Provides: drupal7(field_ui) = %{version} Provides: drupal7(field) = %{version} Provides: drupal7(file) = %{version} Provides: drupal7(filter) = %{version} Provides: drupal7(forum) = %{version} Provides: drupal7(help) = %{version} Provides: drupal7(image) = %{version} Provides: drupal7(list) = %{version} Provides: drupal7(locale) = %{version} Provides: drupal7(menu) = %{version} Provides: drupal7(node) = %{version} Provides: drupal7(number) = %{version} Provides: drupal7(openid) = %{version} Provides: drupal7(options) = %{version} Provides: drupal7(overlay) = %{version} Provides: drupal7(path) = %{version} Provides: drupal7(php) = %{version} Provides: drupal7(poll) = %{version} Provides: drupal7(rdf) = %{version} Provides: drupal7(search) = %{version} Provides: drupal7(shortcut) = %{version} Provides: drupal7(simpletest) = %{version} Provides: drupal7(statistics) = %{version} Provides: drupal7(syslog) = %{version} Provides: drupal7(system) = %{version} Provides: drupal7(taxonomy) = %{version} Provides: drupal7(text) = %{version} Provides: drupal7(toolbar) = %{version} Provides: drupal7(tracker) = %{version} Provides: drupal7(translation) = %{version} Provides: drupal7(trigger) = %{version} Provides: drupal7(update) = %{version} Provides: drupal7(user) = %{version} ## Themes Provides: drupal7(bartik) = %{version} Provides: drupal7(garland) = %{version} Provides: drupal7(seven) = %{version} Provides: drupal7(stark) = %{version} ## Profiles Provides: drupal7(minimal) = %{version} Provides: drupal7(standard) = %{version} %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. %package rpmbuild Summary: Rpmbuild files for %{name} Group: Development/Tools %description rpmbuild %{summary}. %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} mkdir -p %{buildroot}%{_sysconfdir}/%{name}/all/libraries 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 . # rpmbuild # RPM >= 4.9 %if 0%{?_fileattrsdir:1} mkdir -p %{buildroot}%{macrosdir} install -pm0644 %{SOURCE5} %{buildroot}%{macrosdir}/macros.%{name} mkdir -p %{buildroot}%{_prefix}/lib/rpm/fileattrs install -pm0644 %{SOURCE6} %{buildroot}%{_prefix}/lib/rpm/fileattrs/%{name}.attr install -pm0755 %{SOURCE7} %{buildroot}%{_prefix}/lib/rpm/%{name}.prov install -pm0755 %{SOURCE10} %{buildroot}%{_prefix}/lib/rpm/%{name}.req # RPM < 4.9 %else mkdir -p %{buildroot}%{macrosdir} install -pm0644 %{SOURCE8} %{buildroot}%{macrosdir}/macros.%{name} mkdir -p %{buildroot}%{_prefix}/lib/rpm/ install -pm0755 %{SOURCE9} %{buildroot}%{_prefix}/lib/rpm/%{name}.prov install -pm0755 %{SOURCE11} %{buildroot}%{_prefix}/lib/rpm/%{name}.req %endif %clean rm -rf %{buildroot} %files %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} %{macrosdir}/macros.%{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/ %files rpmbuild %{macrosdir}/macros.%{name} %{?_fileattrsdir:%{_prefix}/lib/rpm/fileattrs/%{name}.attr} %{_prefix}/lib/rpm/%{name}.prov %{_prefix}/lib/rpm/%{name}.req %changelog * Wed Mar 15 2017 Jon Ciesla - 7.54-3 - Require php(httpd), not php, BZ 1268937. * Fri Feb 10 2017 Fedora Release Engineering - 7.54-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 02 2017 Jon Ciesla - 7.54-1 - 7.54. * Thu Dec 08 2016 Jon Ciesla - 7.53-1 - 7.53. * Thu Nov 17 2016 Jon Ciesla - 7.52-1 - 7.52. * Thu Oct 06 2016 Jon Ciesla - 7.51-1 - 7.51. * Fri Jul 08 2016 Jon Ciesla - 7.50-1 - 7.50. * Thu Jun 16 2016 Jon Ciesla - 7.44-1 - 7.44. * Wed Feb 24 2016 Jared Smith - 7.43-1 - Update to upstream 7.43 release for security issues (SA-CORE-2016-001) - Upstream changelog at https://www.drupal.org/drupal-7.43-release-notes * Thu Feb 4 2016 Paul W. Frields - 7.42-1 - 7.42. * Wed Feb 03 2016 Fedora Release Engineering - 7.41-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jan 25 2016 Jared Smith - 7.41-2 - Remove calls to %%defattr macro, as they are no longer needed * Thu Oct 22 2015 Jon Ciesla - 7.41-1 - 7.41. * Thu Oct 15 2015 Jon Ciesla - 7.40-1 - 7.40. * Fri Aug 21 2015 Shawn Iwinski - 7.39-1 - 7.39, SA-CORE-2015-003 (RHBZ #1255662, 1255672, 1255674) * Thu Jun 18 2015 Peter Borsa - 7.38-1 - 7.38, DRUPAL-SA-CORE-2015-002. * Wed Jun 17 2015 Fedora Release Engineering - 7.37-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun May 10 2015 Paul W. Frields - 7.37-1 - Update to upstream 7.37 maintenance release for bug fixes - Upstream release notes at https://www.drupal.org/drupal-7.37-release-notes * Fri Apr 03 2015 Jared Smith - 7.36-1 - Update to upstream 7.36 maintenance release for numerous bug fixes - Upstream release notes at https://www.drupal.org/drupal-7.36-release-notes * Thu Mar 19 2015 Peter Borsa - 7.35-1 - 7.35, DRUPAL-SA-CORE-2015-001. * Thu Nov 20 2014 Jon Ciesla - 7.34-1 - 7.34, DRUPAL-SA-CORE-2014-006. * Tue Nov 11 2014 Peter Borsa - 7.33-1 - Update to upstream 7.33 maintenance release with numerous bug fixes * Wed Oct 15 2014 Jared Smith - 7.32-1 - Update to upstream 7.32 security release for SA-CORE-2014-005 * Thu Aug 07 2014 Jared Smith - 7.31-1 - Update to upstream 7.31 release for SA-CORE-2014-004 * Mon Jul 28 2014 Paul W. Frields - 7.30-1 - 7.30 * Wed Jul 16 2014 Paul W. Frields - 7.29-1 - 7.29, SA-CORE-2014-003 * Sat Jun 07 2014 Fedora Release Engineering - 7.28-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 08 2014 Jon Ciesla - 7.28-1 - 7.28, BZ 1095618. * Thu Apr 17 2014 Jon Ciesla - 7.27-1 - 7.27, BZ 1088847. * Mon Mar 10 2014 Jon Ciesla - 7.26-3 - Revised prior changes. * Mon Mar 10 2014 Jon Ciesla - 7.26-2 - Update RPM macros location, BZ 1074272. Should work - on all branches. * Wed Jan 15 2014 Jon Ciesla - 7.26-1 - 7.26, SA-CORE-2014-001. * Fri Jan 03 2014 Jon Ciesla - 7.25-1 - 7.25, BZ 1048114. * Thu Nov 21 2013 Peter Borsa - 7.24-1 - Update to upstream 7.24 release for security fixes - Upstream changelog for this release is available at https://drupal.org/drupal-7.24-release-notes * Sat Aug 10 2013 Peter Borsa - 7.23-3 - Fix indentation in drupal7.prov.rpm-lt-4-9-compat file. * Sat Aug 10 2013 Peter Borsa - 7.23-2 - EL5 prov Python fix, BZ 995734. * Thu Aug 08 2013 Peter Borsa - 7.23-1 - Update to upstream 7.23 release for bug fixes - Upstream changelog for this release is available at https://drupal.org/drupal-7.23-release-notes * Tue Jul 30 2013 Jon Ciesla - 7.22-8 - Add crontabs requires, BZ 989021. * Wed Jul 10 2013 Jon Ciesla - 7.22-7 - Typo and EL5 FHS fixes, BZ 979827. * Tue Jun 18 2013 Jon Ciesla - 7.22-6 - Add AllowOverride All to drupal7.conf, BZ 905912. * Mon Jun 03 2013 Jon Ciesla - 7.22-5 - Add auto-requires, BZ 969593. * Tue May 21 2013 Jon Ciesla - 7.22-4 - Allow use of auto-provides <= EL-6. * Thu May 09 2013 Jon Ciesla - 7.22-3 - Change rpmconfigdir to %%{_prefix}/lib/rpm to support EL-5. * Thu May 09 2013 Jon Ciesla - 7.22-2 - Add libraries directory and macro, BZ 959687. - Add auto-provides, BZ 959683. * Thu Apr 4 2013 Peter Borsa - 7.22-1 - 7.22 * Thu Mar 7 2013 Peter Borsa - 7.21-1 - 7.21 * Thu Feb 21 2013 Paul W. Frields - 7.20-1 - 7.20, SA-CORE-2013-002 (#913403) * Fri Jan 25 2013 Jon Ciesla - 7.19-2 - README update for cron_key, BZ 902234. * 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 17 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.