Blob Blame Raw
# 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.67
Release:  2%{?dist}
Summary: An open-source content-management platform

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

BuildArch: noarch
%if 0%{?fedora} || 0%{?rhel} >= 6
BuildRequires: python2
%else
BuildRequires: python
%endif

Requires: php-gd, php-mbstring, wget, php-pdo, php-xml
Requires: crontabs
%if 0%{?rhel}
Requires: php
%else
Requires: php(httpd)
%endif
%if 0%{?fedora} || 0%{?rhel} >= 6
Requires: python2
%else
Requires: python
%endif

# 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}

%description rpmbuild
%{summary}.

%prep
%setup -q -n drupal-%{version}

%patch0 -p1

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

%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 Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.67-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Wed May 15 2019 Shawn Iwinski <shawn.iwinski@gmail.com> - 7.67-1
- Update to 7.67 (RHBZ #1707958, #1708649, #1708652, #1708653)
- https://www.drupal.org/SA-CORE-2019-007 (CVE-2019-11831)

* Tue Apr 30 2019 Shawn Iwinski <shawn.iwinski@gmail.com> - 7.66-1
- Update to 7.66 (RHBZ #1701036, #1702424, #1702425, #1702620, #1702619)
- https://www.drupal.org/SA-CORE-2019-006 (CVE-2019-11358)

* Wed Mar 20 2019 Shawn Iwinski <shawn.iwinski@gmail.com> - 7.65-1
- Update to 7.65 (RHBZ #1691035)
- https://www.drupal.org/SA-CORE-2019-004

* Sat Feb 23 2019 Shawn Iwinski <shawn.iwinski@gmail.com> - 7.64-1
- Update to 7.64 (RHBZ #1673206)
- https://www.drupal.org/SA-CORE-2019-001
- https://www.drupal.org/SA-CORE-2019-002

* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.60-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Sun Oct 28 2018 Shawn Iwinski <shawn.iwinski@gmail.com> - 7.60-2
- Explicit python dependencies
- Explicit python2 except el5
- See https://koji.fedoraproject.org/koji/buildinfo?buildID=1156502

* Sat Oct 27 2018 Shawn Iwinski <shawn.iwinski@gmail.com> - 7.60-1
- Update to 7.60 (RHBZ #1643121 / RHBZ #1643122 / RHBZ #1643124 / SA-CORE-2018-006)
- Remove patch drupal-7.14-CVE-2012-2922 (see https://groups.drupal.org/node/230373)

* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 7.59-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Apr 25 2018 Shawn Iwinski <shawn.iwinski@gmail.com> - 7.59-1
- Update to 7.59 (RHBZ #1572099 / RHBZ #1572100 / RHBZ #1572102 /
  SA-CORE-2018-004 / CVE-2018-7602)

* Wed Mar 28 2018 Shawn Iwinski <shawn.iwinski@gmail.com> - 7.58-1
- Update to 7.58 (RHBZ #1561801 / SA-CORE-2018-002 / CVE-2018-7600)

* Fri Feb 23 2018 Paul W. Frields <stickster@gmail.com> - 7.57-1
- Update to 7.57 (RHBZ #1548324 / RHBZ #1548326 / SA-CORE-2018-001 /
  CVE-2017-6927 / CVE-2017-6928 / CVE-2017-6929 / CVE-2017-6932)

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 7.56-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7.56-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Thu Jun 22 2017 Shawn Iwinski <shawn.iwinski@gmail.com> - 7.56-1
- Update to 7.56 (RHBZ #1463856 / SA-CORE-2017-003 / CVE-2017-6922)

* Mon Jun 12 2017 Gwyn Ciesla <limburgher@gmail.com> - 7.55-2
- Requires fix for EPEL.

* Thu Jun 08 2017 Gwyn Ciesla <limburgher@gmail.com> - 7.55-1
- 7.55.

* Wed Mar 15 2017 Jon Ciesla <limburgher@gmail.com> - 7.54-3
- Require php(httpd), not php, BZ 1268937.

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7.54-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Thu Feb 02 2017 Jon Ciesla <limburgher@gmail.com> - 7.54-1
- 7.54.

* Thu Dec 08 2016 Jon Ciesla <limburgher@gmail.com> - 7.53-1
- 7.53.

* Thu Nov 17 2016 Jon Ciesla <limburgher@gmail.com> - 7.52-1
- 7.52.

* Thu Oct 06 2016 Jon Ciesla <limburgher@gmail.com> - 7.51-1
- 7.51.

* Fri Jul 08 2016 Jon Ciesla <limburgher@gmail.com> - 7.50-1
- 7.50.

* Thu Jun 16 2016 Jon Ciesla <limburgher@gmail.com> - 7.44-1
- 7.44.

* Wed Feb 24 2016 Jared Smith <jsmith@fedoraproject.org> - 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 <stickster@gmail.com> - 7.42-1
- 7.42.

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 7.41-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Mon Jan 25 2016 Jared Smith <jsmith@fedoraproject.org> - 7.41-2
- Remove calls to %%defattr macro, as they are no longer needed

* Thu Oct 22 2015 Jon Ciesla <limburgher@gmail.com> - 7.41-1
- 7.41.

* Thu Oct 15 2015 Jon Ciesla <limburgher@gmail.com> - 7.40-1
- 7.40.

* Fri Aug 21 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 7.39-1
- 7.39, SA-CORE-2015-003 (RHBZ #1255662, 1255672, 1255674)

* Thu Jun 18 2015 Peter Borsa <peter.borsa@gmail.com> - 7.38-1
- 7.38, DRUPAL-SA-CORE-2015-002.

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.37-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sun May 10 2015 Paul W. Frields <stickster@gmail.com> - 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 <jsmith@fedoraproject.org> - 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 <peter.borsa@gmail.com> - 7.35-1
- 7.35, DRUPAL-SA-CORE-2015-001.

* Thu Nov 20 2014 Jon Ciesla <limburgher@gmail.com> - 7.34-1
- 7.34, DRUPAL-SA-CORE-2014-006.

* Tue Nov 11 2014 Peter Borsa <peter.borsa@gmail.com> - 7.33-1
- Update to upstream 7.33 maintenance release with numerous bug fixes

* Wed Oct 15 2014 Jared Smith <jsmith@fedoraproject.org> - 7.32-1
- Update to upstream 7.32 security release for SA-CORE-2014-005

* Thu Aug 07 2014 Jared Smith <jsmith@fedoraproject.org> - 7.31-1
- Update to upstream 7.31 release for SA-CORE-2014-004

* Mon Jul 28 2014 Paul W. Frields <stickster@gmail.com> - 7.30-1
- 7.30

* Wed Jul 16 2014 Paul W. Frields <stickster@gmail.com> - 7.29-1
- 7.29, SA-CORE-2014-003

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.28-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Thu May 08 2014 Jon Ciesla <limburgher@gmail.com> - 7.28-1
- 7.28, BZ 1095618.

* Thu Apr 17 2014 Jon Ciesla <limburgher@gmail.com> - 7.27-1
- 7.27, BZ 1088847.

* Mon Mar 10 2014 Jon Ciesla <limburgher@gmail.com> - 7.26-3
- Revised prior changes.

* Mon Mar 10 2014 Jon Ciesla <limburgher@gmail.com> - 7.26-2
- Update RPM macros location, BZ 1074272.  Should work
- on all branches.

* Wed Jan 15 2014 Jon Ciesla <limburgher@gmail.com> - 7.26-1
- 7.26, SA-CORE-2014-001.

* Fri Jan 03 2014 Jon Ciesla <limburgher@gmail.com> - 7.25-1
- 7.25, BZ 1048114.

* Thu Nov 21 2013 Peter Borsa <peter.borsa@gmail.com> - 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 <peter.borsa@gmail.com> - 7.23-3
- Fix indentation in drupal7.prov.rpm-lt-4-9-compat file.

* Sat Aug 10 2013 Peter Borsa <peter.borsa@gmail.com> - 7.23-2
- EL5 prov Python fix, BZ 995734.

* Thu Aug 08 2013 Peter Borsa <peter.borsa@gmail.com> - 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 <limburgher@gmail.com> - 7.22-8
- Add crontabs requires, BZ 989021.

* Wed Jul 10 2013 Jon Ciesla <limburgher@gmail.com> - 7.22-7
-  Typo and EL5 FHS fixes, BZ 979827.

* Tue Jun 18 2013 Jon Ciesla <limburgher@gmail.com> - 7.22-6
- Add AllowOverride All to drupal7.conf, BZ 905912.

* Mon Jun 03 2013 Jon Ciesla <limburgher@gmail.com> - 7.22-5
- Add auto-requires, BZ 969593.

* Tue May 21 2013 Jon Ciesla <limburgher@gmail.com> - 7.22-4
- Allow use of auto-provides <= EL-6.

* Thu May 09 2013 Jon Ciesla <limburgher@gmail.com> - 7.22-3
- Change rpmconfigdir to %%{_prefix}/lib/rpm to support EL-5.

* Thu May 09 2013 Jon Ciesla <limburgher@gmail.com> - 7.22-2
- Add libraries directory and macro, BZ 959687.
- Add auto-provides, BZ 959683.

* Thu Apr 4 2013 Peter Borsa <peter.borsa@gmail.com> - 7.22-1
- 7.22

* Thu Mar 7 2013 Peter Borsa <peter.borsa@gmail.com> - 7.21-1
- 7.21

* Thu Feb 21 2013 Paul W. Frields <stickster@gmail.com> - 7.20-1
- 7.20, SA-CORE-2013-002 (#913403)

* Fri Jan 25 2013 Jon Ciesla <limburgher@gmail.com> - 7.19-2
- README update for cron_key, BZ 902234.

* Thu Jan 17 2013 Jon Ciesla <limburgher@gmail.com> - 7.19-1
- 7.19, SA-CORE-2013-001.

* Thu Dec 20 2012 Jon Ciesla <limburgher@gmail.com> - 7.18-1
- 7.18.

* Thu Nov 8 2012 Peter Borsa <peter.borsa@gmail.com> - 7.17-2
- Fix README.txt location.

* Thu Nov 8 2012 Peter Borsa <peter.borsa@gmail.com> - 7.17-1
- New upstream.

* Wed Oct 31 2012 Jon Ciesla <limburgher@gmail.com> - 7.16-3
- Fix conf.

* Tue Oct 30 2012 Jon Ciesla <limburgher@gmail.com> - 7.16-2
- Fix for httpd 2.4, BZ 871394.

* Wed Oct 17 2012 Orion Poplawski <orion@cora.nwra.com> - 7.16-1
- New upstream - SA-CORE-2012-003 security update

* Wed Aug 1 2012 Peter Borsa <peter.borsa@gmail.com> - 7.15-1
- New upstream.

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.14-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Thu May 24 2012 Jon Ciesla <limburgher@gmail.com> - 7.14-2
- Patch for CVE-2012-2922, BZ 824631, BZ 824632.

* Thu May  3 2012 Paul W. Frields <stickster@gmail.com> - 7.14-1
- New upstream. (#818538)

* Thu Feb 02 2012 Jon Ciesla <limburgher@gmail.com> - 7.12-1
- New upstream.

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Dec 06 2011 Jon Ciesla <limburgher@gmail.com> - 7.10-1
- New upstream, BZ 760504.

* Thu Oct 27 2011 Paul W. Frields <stickster@gmail.com> - 7.9-1
- New upstream, BZ 749509.

* Sat Sep  3 2011 Paul W. Frields <stickster@gmail.com> - 7.8-1
- New upstream, minor bugfixes and API improvements only.

* Sun Aug  7 2011 Paul W. Frields <stickster@gmail.com> - 7.7-1
- New upstream, fixed version string only.

* Wed Jul 27 2011 Jon Ciesla <limb@jcomserv.net> - 7.6-1
- New upstream, SA-CORE-2011-003, BZ 726243.

* Thu Jun 30 2011 Jon Ciesla <limb@jcomserv.net> - 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 <limb@jcomserv.net> - 7.2-2
- Bump and rebuild for BZ 712251.

* Thu May 26 2011 Jon Ciesla <limb@jcomserv.net> - 7.2-1
- New upstream, SA-CORE-2011-001.

* Wed Apr 06 2011 Jon Ciesla <limb@jcomserv.net> - 7.0-4
- Exlcuded README and COPYRIGHT.
- Fixed sites symlink.

* Tue Mar 29 2011 Jon Ciesla <limb@jcomserv.net> - 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 <limb@jcomserv.net> - 7.0-2
- Corrected license tag.

* Wed Jan 05 2011 Jon Ciesla <limb@jcomserv.net> - 7.0-1
- Initial packaging.