diff --git a/.gitignore b/.gitignore index e69de29..f91e578 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/drupal-7.0.tar.gz diff --git a/drupal7-7.0-scripts-noshebang.patch b/drupal7-7.0-scripts-noshebang.patch new file mode 100644 index 0000000..3276e3c --- /dev/null +++ b/drupal7-7.0-scripts-noshebang.patch @@ -0,0 +1,63 @@ +diff -U3 -r scripts.orig/code-clean.sh scripts/code-clean.sh +--- scripts.orig/code-clean.sh 2009-03-09 15:46:37.000000000 -0500 ++++ scripts/code-clean.sh 2011-02-21 20:39:32.000000000 -0600 +@@ -1,4 +1,3 @@ +-#!/bin/sh + # $Id: code-clean.sh,v 1.10 2009/03/09 20:46:37 dries Exp $ + + find . -name "*~" -type f | xargs rm -f +Only in scripts/: code-clean.sh~ +diff -U3 -r scripts.orig/cron-curl.sh scripts/cron-curl.sh +--- scripts.orig/cron-curl.sh 2006-08-22 02:38:24.000000000 -0500 ++++ scripts/cron-curl.sh 2011-02-21 20:39:36.000000000 -0600 +@@ -1,4 +1,3 @@ +-#!/bin/sh + # $Id: cron-curl.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ + + curl --silent --compressed http://example.com/cron.php +Only in scripts/: cron-curl.sh~ +diff -U3 -r scripts.orig/cron-lynx.sh scripts/cron-lynx.sh +--- scripts.orig/cron-lynx.sh 2006-08-22 02:38:24.000000000 -0500 ++++ scripts/cron-lynx.sh 2011-02-21 20:39:41.000000000 -0600 +@@ -1,4 +1,3 @@ +-#!/bin/sh + # $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ + + /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1 +Only in scripts/: cron-lynx.sh~ +diff -U3 -r scripts.orig/drupal.sh scripts/drupal.sh +--- scripts.orig/drupal.sh 2009-09-19 05:38:47.000000000 -0500 ++++ scripts/drupal.sh 2011-02-21 20:39:45.000000000 -0600 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env php + + Order Deny,Allow + #Comment the following line and uncomment the next for public use + Deny from all + #Allow from all + #Uncomment the following line for setup + #Allow from 127.0.0.1 + AllowOverride All + #Uncomment the next line if using with SSL/TLS + #php_flag session.cookie_secure on + diff --git a/drupal7.spec b/drupal7.spec new file mode 100644 index 0000000..bbd0c7e --- /dev/null +++ b/drupal7.spec @@ -0,0 +1,106 @@ +%define drupaldir %{_datadir}/drupal7 +Name: drupal7 +Version: 7.0 +Release: 4%{?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.0-scripts-noshebang.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 -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} +mkdir -p %{buildroot}%{_sysconfdir}/%{name}/modules +mkdir -p %{buildroot}%{_sysconfdir}/%{name}/themes +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/all/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}/all/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 +* 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. diff --git a/sources b/sources index e69de29..580317b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e96c0a5e47c5d7706897384069dfb920 drupal-7.0.tar.gz