# disable find_requires as it generate incorrect require on # pear(Renameuser/SpecialRenameuser_body.php) %define __find_requires %{nil} %define mediawiki_extensions %{_datadir}/mediawiki/extensions %define oname Bugzilla %define gitrel bc55a7f Name: mediawiki-bugzilla Version: 0.0 Release: %mkrel 0.%{gitrel}.3 Summary: Mediawiki extension for %{oname} License: GPLv2+ Group: System/Servers Url: https://github.com/LegNeato/%name BuildArch: noarch Source0: LegNeato-%name-%gitrel.tar.gz Patch0: mediawiki-bugzilla-add-xmlrpc-support.patch Patch1: mediawiki-bugzilla-add-xmlrpc-support-cleaningpatch.patch Requires: mediawiki Requires: bugzilla %description This is a MediaWiki extension that provides read-only access to the Bugzilla REST API %prep %setup -q -n LegNeato-%name-%gitrel %patch0 -p1 %patch1 -p1 %build %install install -d %{buildroot}%{mediawiki_extensions}/%{oname} cp -fr * %{buildroot}%{mediawiki_extensions}/%{oname} cat > README.install.urpmi << EOF To use this extension, you have to add the following three lines to your LocalSettings.php require_once("%{mediawiki_extensions}/Bugzilla/Bugzilla.php"); Edit LocalSettings.php and change/override any configuration variables. Current configuration variables and their defaults can be found at the end of Bugzilla.php Run the MediaWiki update script to create the cache database table php /var/lib/mediawiki/maintenance/update.php. __Note that you may need to add $wgDBadminuser and $wgDBadminpassword to /etc/mediawiki/LocalSettings.php depending on your MediaWiki version__ EOF %files %doc README.install.urpmi %{mediawiki_extensions}/%{oname} %changelog * Fri Jan 18 2013 dmorgan <dmorgan> 0.0-0.bc55a7f.3.mga3 + Revision: 389539 - Fix deps * Sat Jan 12 2013 umeabot <umeabot> 0.0-0.bc55a7f.2.mga3 + Revision: 359905 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Jul 28 2012 dmorgan <dmorgan> 0.0-0.bc55a7f.1.mga3 + Revision: 275105 - imported package mediawiki-bugzilla