diff --git a/.gitignore b/.gitignore index e69de29..a85b863 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Validator0.4.13.tgz diff --git a/mediawiki-validator.spec b/mediawiki-validator.spec new file mode 100644 index 0000000..ab98e71 --- /dev/null +++ b/mediawiki-validator.spec @@ -0,0 +1,62 @@ +%define UpstreamName Validator + +Name: mediawiki-validator +Version: 0.4.13 +Release: 1%{?dist} +Summary: Provides generic parameter handling support to other extensions +Group: Applications/Internet +License: GPLv3+ +URL: http://www.mediawiki.org/wiki/Extension:Validator +Source0: http://mwvalidator.googlecode.com/files/%{UpstreamName}%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: mediawiki >= 1.15.0 +Requires: php >= 5.2 + + +%description +Validator is a parameter handling framework which aims to facilitate common +parameter handling tasks, such as parsing, validation, and error handling, for +other MediaWiki extensions. + + +%prep +%setup -q -n %{UpstreamName} + + +%build + + +%install +rm -rf %{buildroot} + +%{__install} -d %{buildroot}%{_datadir}/mediawiki/extensions/%{UpstreamName} + +cat <README.fedora +To complete installation of %{name}: add the following two lines to +LocalSettings.php: + + # Validator + include_once("\$IP/extensions/%{UpstreamName}/%{UpstreamName}.php"); + +for each MediaWiki instance you wish to install %{name} on + +Additional instructions may be detailed in the online installation guide +available at http://www.mediawiki.org/wiki/Extension:Validator#Installation +EOF +%{__cp} -pa * %{buildroot}%{_datadir}/mediawiki/extensions/%{UpstreamName}/ + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%{_datadir}/mediawiki/extensions/%{UpstreamName} +%doc COPYING INSTALL README README.fedora RELEASE-NOTES + + +%changelog +* Thu Jan 23 2012 James Laska 0.4.13-1 +- Initial packaging of 0.4.13 diff --git a/sources b/sources index e69de29..337f8a2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0b76256e0a0879f71295730bdf7e008b Validator0.4.13.tgz