Sophie

Sophie

distrib > Fedora > 16 > x86_64 > media > updates-src > by-pkgid > 754eaf4d700c3208aaae4f2527b7093f > files > 2

mediawiki-HTTP302Found-2.0.1-1.fc16.src.rpm

Name:           mediawiki-HTTP302Found
Version:        2.0.1
Release:        1%{?dist}
Summary:        Forces an external HTTP 302 redirect instead of internal redirects

Group:          Applications/Internet
License:        GPLv2+
URL:            http://www.mediawiki.org/wiki/Extension:HTTP302Found
Source0:        http://puiterwijk.fedorapeople.org/releases/HTTP302Found-2.0.1.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

Requires:       mediawiki >= 1.7

%description
Pushes a HTTP code 302 (Found) to the browser when there is a redirect instead
of handling it internally. The end user will not notice any difference (other
than the address to the page having an ?rd=Redirecting_page bit at the end).


%prep
%setup -q -n HTTP302Found-2.0.1
echo 'To complete installation of %{name}, add the following lines to LocalSettings.php:

    require_once("$IP/extensions/HTTP302Found/HTTP302Found.php");

for each MediaWiki instance you wish to install %{name} on.' > README.fedora


%build


%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/mediawiki/extensions/HTTP302Found/
install -cpm 644 %{_builddir}/%{buildsubdir}/*.php %{buildroot}%{_datadir}/mediawiki/extensions/HTTP302Found/


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc README.fedora COPYING
%{_datadir}/mediawiki/extensions/HTTP302Found


%changelog
* Sun Aug 12 2012 Patrick Uiterwijk <puiterwijk@gmail.com> - 2.0.1-1
- Update Required to real required version
- Added a COPYING to the sources

* Sun Aug 12 2012 Patrick Uiterwijk <puiterwijk@gmail.com> - 2.0-1
- Complete rewrite for MediaWiki 1.19

* Mon Jun 15 2009 Ian Weller <ian@ianweller.org> - 1.0-1
- Initial package build