[drupal6-login_destination] Import SRPM (#693119)

Paul W. Frields pfrields at fedoraproject.org
Wed Apr 6 02:02:30 UTC 2011


commit 19f20f825f92e4f05aae0706b06d213d6ef0acc5
Author: Paul W. Frields <stickster at gmail.com>
Date:   Tue Apr 5 22:02:13 2011 -0400

    Import SRPM (#693119)

 .gitignore                                  |    1 +
 drupal6-login_destination-fedora-README.txt |    6 +++
 drupal6-login_destination.spec              |   59 +++++++++++++++++++++++++++
 sources                                     |    1 +
 4 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c687f97 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/login_destination-6.x-2.12.tar.gz
diff --git a/drupal6-login_destination-fedora-README.txt b/drupal6-login_destination-fedora-README.txt
new file mode 100644
index 0000000..0e23730
--- /dev/null
+++ b/drupal6-login_destination-fedora-README.txt
@@ -0,0 +1,6 @@
+After installation, you must enable this module from the drupal
+administration.
+
+If upgrading this module seperately from the core drupal package, 
+be sure to run the http://hostname/drupal/upgrade.php script after this
+rpm is upgraded.
diff --git a/drupal6-login_destination.spec b/drupal6-login_destination.spec
new file mode 100644
index 0000000..cbff50f
--- /dev/null
+++ b/drupal6-login_destination.spec
@@ -0,0 +1,59 @@
+%global drupalver 6
+%{?rhel: %{expand: %%global drupal drupal%%{drupalver}}}
+%if 0%{?fedora} >= 15
+%global drupal drupal%{drupalver}
+%endif
+%{!?drupal: %{expand: %%global drupal drupal}}
+# e.g. "/usr/share/drupal6"
+%global drupaldir %{_datadir}/%{drupal}
+# Use upstream name as expressed in URL and tarball
+%global modname login_destination
+
+Name:    drupal%{drupalver}-%{modname}
+Version: 2.12
+Release: 1%{?dist}
+Summary: Customize login landing page in Drupal %{drupalver}
+Group:   Applications/Publishing
+License: GPLv2+
+URL:     http://drupal.org/project/%{modname}
+Source0: http://ftp.drupal.org/files/projects/%{modname}-%{drupalver}.x-%{version}.tar.gz
+Source1: %{name}-fedora-README.txt
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires:  %{drupal} >= 6.0
+
+%description
+The Login Destination module allows you to customize the destination
+that a user is redirected to after logging in. The destination can be
+an internal page or an external URL. It is possible to specify certain
+conditions like referring pages or user roles and make the destination
+depend upon them. You may use PHP snippets to provide custom
+conditions and destinations. It also possible to keep users on the
+currently visited page after logging in or out.
+
+%prep
+%setup -qn %{modname}
+
+%build
+cp %{SOURCE1} .
+
+%install
+rm -rf %{buildroot}
+install -d %{buildroot}%{drupaldir}/modules/%{modname}
+find . -type f -exec install -m 0644 -D '{}' %{buildroot}%{drupaldir}/modules/%{modname}/'{}' \;
+
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.txt %{name}-fedora-README.txt
+%exclude %{drupaldir}/modules/%{modname}/LICENSE.txt
+%exclude %{drupaldir}/modules/%{modname}/%{name}-fedora-README.txt
+%{drupaldir}/modules/%{modname}
+
+%changelog
+* Sat Apr  2 2011 Paul W. Frields <stickster at gmail.com> - 2.12-1
+- Initial RPM package
+
diff --git a/sources b/sources
index e69de29..4091e8a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+419225ba09fb206139657fcf3a3be981  login_destination-6.x-2.12.tar.gz


More information about the scm-commits mailing list