From 2ffb0070d64f8bab0450bcf6dbf89f9831b89a1543e8e59850aa96eb93b89741 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 17 Apr 2015 09:43:45 +0000 Subject: [PATCH] Accepting request 297609 from devel:languages:perl:autoupdate - updated to 0.40 see /usr/share/doc/packages/perl-MediaWiki-API/Changes 0.40 2014-09-13 Apologies for the lack of updates and the speed to implement some fixes but I have been busy on other projects. Edit token code has been reworked somewhat to make it simpler, and a bugfix applied for an issue with downloading images over https using the buildin Download() function. 0.39 2012-05-20 Added automatic support for handling tokens in the MediaWiki::API->Edit function for (Un)watch, Send e-mail and Patrol changes. (Un)watch already worked but wasn't documented. 0.38 2012-05-19 Allow the actions the API supports with an http GET request to be configurable. MediaWiki::API->{config}->{get_actions} defaults to { 'query' => 1, 'logout' => 1, purge' => 1, 'paraminfo' => 1 } but can be added to/ammended as needed for any extensions that add additional functions to the API that support a GET request. Make the version of Test::More required to be 0.98 to avoid an issue with older versions missing functionality (eg. on centos 5.x). 0.37 2011-08-10 The MediaWiki::API->Edit call was not getting a token correctly for an import action. Thanks to Mike Lifeguard for the report. 0.36 2011-08-07 Since 1.16 MediaWiki now supports uploading files via the API, we no longer need to post directly to Special:Upload. Although now the MediaWiki::API->Upload function will use the api to upload if using a recent mediawiki, it has also been deprecated, as uploads can be done directly via the MediaWiki::API->API call, or if you prefer MediaWiki::API->Edit (where it will automatically get a token for you). Thanks to Jeremy Muhlich for the original patch. Some details about uploading files via the API / Edit calls can be OBS-URL: https://build.opensuse.org/request/show/297609 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MediaWiki-API?expand=0&rev=9 --- MediaWiki-API-0.35.tar.gz | 3 -- MediaWiki-API-0.37.tar.gz | 3 -- MediaWiki-API-0.40.tar.gz | 3 ++ cpanspec.yml | 20 +++++++++ perl-MediaWiki-API.changes | 62 ++++++++++++++++++++++++++++ perl-MediaWiki-API.spec | 84 ++++++++++++++++++++------------------ 6 files changed, 129 insertions(+), 46 deletions(-) delete mode 100644 MediaWiki-API-0.35.tar.gz delete mode 100644 MediaWiki-API-0.37.tar.gz create mode 100644 MediaWiki-API-0.40.tar.gz create mode 100644 cpanspec.yml diff --git a/MediaWiki-API-0.35.tar.gz b/MediaWiki-API-0.35.tar.gz deleted file mode 100644 index 50d4031..0000000 --- a/MediaWiki-API-0.35.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aafbd885629b4f4271f5a9aa24f56424c2d179ab7b7bdbdf5b8ba7170978887f -size 27499 diff --git a/MediaWiki-API-0.37.tar.gz b/MediaWiki-API-0.37.tar.gz deleted file mode 100644 index 7a0ae07..0000000 --- a/MediaWiki-API-0.37.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a4e866c2feff801cfe02f404d98a32708885e89497609fc41834896c536aba19 -size 31838 diff --git a/MediaWiki-API-0.40.tar.gz b/MediaWiki-API-0.40.tar.gz new file mode 100644 index 0000000..0edb838 --- /dev/null +++ b/MediaWiki-API-0.40.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fcc8f4349231c06bb282c9da5391f188c22e40b8bb034853f4bc820989cf7f06 +size 32959 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..1d29333 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,20 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +license: GPL-3.0+ +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-MediaWiki-API.changes b/perl-MediaWiki-API.changes index 723e2b4..a4209e6 100644 --- a/perl-MediaWiki-API.changes +++ b/perl-MediaWiki-API.changes @@ -1,3 +1,65 @@ +------------------------------------------------------------------- +Fri Apr 17 07:54:52 UTC 2015 - coolo@suse.com + +- updated to 0.40 + see /usr/share/doc/packages/perl-MediaWiki-API/Changes + + 0.40 2014-09-13 + Apologies for the lack of updates and the speed to implement some fixes but I have been busy on other projects. + Edit token code has been reworked somewhat to make it simpler, and a bugfix applied for an issue with downloading + images over https using the buildin Download() function. + + 0.39 2012-05-20 + Added automatic support for handling tokens in the MediaWiki::API->Edit function for (Un)watch, Send e-mail + and Patrol changes. (Un)watch already worked but wasn't documented. + + 0.38 2012-05-19 + Allow the actions the API supports with an http GET request to be configurable. + MediaWiki::API->{config}->{get_actions} defaults to { 'query' => 1, 'logout' => 1, purge' => 1, 'paraminfo' => 1 } + but can be added to/ammended as needed for any extensions that add additional functions to the API that support + a GET request. + + Make the version of Test::More required to be 0.98 to avoid an issue with older versions missing functionality + (eg. on centos 5.x). + + 0.37 2011-08-10 + The MediaWiki::API->Edit call was not getting a token correctly for an import action. Thanks to Mike Lifeguard + for the report. + + 0.36 2011-08-07 + Since 1.16 MediaWiki now supports uploading files via the API, we no longer need to post directly to + Special:Upload. Although now the MediaWiki::API->Upload function will use the api to upload if using a + recent mediawiki, it has also been deprecated, as uploads can be done directly via the MediaWiki::API->API + call, or if you prefer MediaWiki::API->Edit (where it will automatically get a token for you). Thanks to + Jeremy Muhlich for the original patch. Some details about uploading files via the API / Edit calls can be + found in the API section of the pod documentation. + + There are now some tests included with the module. They run a few api functions against a test wiki - + http://testwiki.exotica.org.uk to make sure everything is working correctly. Feel free to use this wiki for + testing the module with your own code also. It is wiped/cleaned regularly. + +------------------------------------------------------------------- +Fri Apr 17 07:54:52 UTC 2015 - coolo@suse.com + +- updated to 0.37 + see /usr/share/doc/packages/perl-MediaWiki-API/Changes + + 0.37 2011-08-07 + The MediaWiki::API->Edit call was not getting a token correctly for an import action. Thanks to Mike Lifeguard + for the report. + + 0.36 2011-08-07 + Since 1.16 MediaWiki now supports uploading files via the API, we no longer need to post directly to + Special:Upload. Although now the MediaWiki::API->Upload function will use the api to upload if using a + recent mediawiki, it has also been deprecated, as uploads can be done directly via the MediaWiki::API->API + call, or if you prefer MediaWiki::API->Edit (where it will automatically get a token for you). Thanks to + Jeremy Muhlich for the original patch. Some details about uploading files via the API / Edit calls can be + found in the API section of the pod documentation. + + There are now some tests included with the module. They run a few api functions against a test wiki - + http://testwiki.exotica.org.uk to make sure everything is working correctly. Feel free to use this wiki for + testing the module with your own code also. It is wiped/cleaned regularly. + ------------------------------------------------------------------- Wed Dec 1 13:33:37 UTC 2010 - coolo@novell.com diff --git a/perl-MediaWiki-API.spec b/perl-MediaWiki-API.spec index 73f636e..021c900 100644 --- a/perl-MediaWiki-API.spec +++ b/perl-MediaWiki-API.spec @@ -1,60 +1,64 @@ -# vim: set sw=4 ts=4 et nu: -# norootforbuild +# +# spec file for package perl-MediaWiki-API +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + Name: perl-MediaWiki-API -Version: 0.35 +Version: 0.40 Release: 0 -Summary: Provides a Perl interface to the MediaWiki API -Source: http://search.cpan.org/CPAN/authors/id/E/EX/EXOBUZZ/MediaWiki-API-%{version}.tar.gz -URL: http://search.cpan.org/dist/MediaWiki-API +#Upstream: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . +%define cpan_name MediaWiki-API +Summary: Provides a Perl interface to the MediaWiki API (http://www.mediawiki.org[cut] +License: GPL-3.0+ Group: Development/Libraries/Perl -License: Perl License -BuildRoot: %{_tmppath}/build-%{name}-%{version} -%{perl_requires} +Url: http://search.cpan.org/dist/MediaWiki-API/ +Source0: http://www.cpan.org/authors/id/E/EX/EXOBUZZ/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: make -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(Test::More) -BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(JSON) -BuildRequires: perl(Encode) -BuildRequires: perl(Carp) -Requires: perl(Test::More) -Requires: perl(LWP::UserAgent) +BuildRequires: perl(LWP::UserAgent) +BuildRequires: perl(Test::More) >= 0.98 Requires: perl(JSON) -Requires: perl(Encode) -Requires: perl(Carp) +Requires: perl(LWP::UserAgent) +Requires: perl(Test::More) >= 0.98 +%{perl_requires} %description -This module provides an interface between Perl and the MediaWiki API -(http://www.mediawiki.org/wiki/API) allowing creation of scripts to automate -editing and extraction of data from MediaWiki driven sites like Wikipedia. +Provides a Perl interface to the MediaWiki API (http://www.mediawiki.org/wiki/API) %prep -%setup -q -n "MediaWiki-API-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL +%setup -q -n %{cpan_name}-%{version} %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?jobs:-j%{jobs}} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install %perl_make_install %perl_process_packlist +%perl_gen_filelist -%check -%__make test - -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} - -%files -%defattr(-,root,root) -%doc LICENSE README Changes -%dir %{perl_vendorlib}/MediaWiki -%{perl_vendorlib}/MediaWiki/API.pm -%dir %{perl_vendorarch}/auto/MediaWiki -%{perl_vendorarch}/auto/MediaWiki/API -%doc %{perl_man3dir}/MediaWiki::API.%{perl_man3ext}%{ext_man} +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes LICENSE README +%changelog