Sophie

Sophie

distrib > Fedora > 17 > i386 > media > updates-src > by-pkgid > 7b8249d119bfec71f5a9a8f681e0ff7b > files > 2

drupal6-path_redirect-1.0-0.2.rc2.fc17.src.rpm

%{!?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.2.%{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
# 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 (NOTE: requires install of the drupal6-devel pkg)


%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
* Mon Apr 22 2013 Shawn Iwinski <shawn.iwinski@gmail.com> 1.0-0.2.rc2
- Removed devel_generate from dependencies

* Fri Mar 22 2013 Shawn Iwinski <shawn.iwinski@gmail.com> 1.0-0.1.rc2
- Initial package