[drupal6-path_redirect] Initial import (#925990)
Shawn Iwinski
siwinski at fedoraproject.org
Mon Apr 22 16:35:07 UTC 2013
commit b4b759a73bc31d4b8ea663e5d17fd57a92643ecb
Author: Shawn Iwinski <siwinski at redhat.com>
Date: Mon Apr 22 12:34:38 2013 -0400
Initial import (#925990)
.gitignore | 1 +
drupal6-path_redirect-RPM-README.txt | 5 ++
drupal6-path_redirect.spec | 69 ++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 76 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fcd1c41 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/path_redirect-6.x-1.0-rc2.tar.gz
diff --git a/drupal6-path_redirect-RPM-README.txt b/drupal6-path_redirect-RPM-README.txt
new file mode 100644
index 0000000..a098b41
--- /dev/null
+++ b/drupal6-path_redirect-RPM-README.txt
@@ -0,0 +1,5 @@
+After installation, you must enable this module from the Drupal administration
+page.
+
+If upgrading this module separately from the core Drupal package, be sure to
+run the http://hostname/drupal6/upgrade.php script after this RPM is upgraded.
diff --git a/drupal6-path_redirect.spec b/drupal6-path_redirect.spec
new file mode 100644
index 0000000..7055e85
--- /dev/null
+++ b/drupal6-path_redirect.spec
@@ -0,0 +1,69 @@
+%{!?drupal6: %global drupal6 %{_datadir}/drupal6}
+%{!?drupal6_modules: %global drupal6_modules %{drupal6}/sites/all/modules}
+
+%global module_name path_redirect
+%global pre_release rc2
+
+Name: drupal6-%{module_name}
+Version: 1.0
+Release: 0.1.%{pre_release}%{?dist}
+Summary: Redirect users from one URL to another
+
+Group: Applications/Publishing
+License: GPLv2
+URL: http://drupal.org/project/%{module_name}
+Source0: http://ftp.drupal.org/files/projects/%{module_name}-6.x-%{version}-%{pre_release}.tar.gz
+Source1: %{name}-RPM-README.txt
+
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires: drupal6
+Requires: drupal6(devel_generate)
+# phpci
+Requires: php-date
+Requires: php-pcre
+
+Provides: drupal6(%{module_name}) = %{version}
+Provides: drupal6(%{module_name}_generate) = %{version}
+
+%description
+This module allows you to specify a redirect from one path to another path
+or an external URL, using any HTTP redirect status
+(http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3).
+
+This package provides the following Drupal modules:
+* %{module_name}
+* %{module_name}_generate
+
+
+%prep
+%setup -qn %{module_name}
+
+cp -p %{SOURCE1} .
+
+
+%build
+# Empty build section, nothing required
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p -m 0755 %{buildroot}%{drupal6_modules}/%{module_name}
+cp -pr * %{buildroot}%{drupal6_modules}/%{module_name}/
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc *.txt
+%{drupal6_modules}/%{module_name}
+%exclude %{drupal6_modules}/%{module_name}/*.txt
+
+
+%changelog
+* Fri Mar 22 2013 Shawn Iwinski <shawn.iwinski at gmail.com> 1.0-0.1.rc2
+- Initial package
diff --git a/sources b/sources
index e69de29..cbc0f77 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5eaa28c42c0a3cbdd8b102d48af06447 path_redirect-6.x-1.0-rc2.tar.gz
More information about the scm-commits
mailing list