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