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
This commit is contained in:
Stephan Kulow
2015-04-17 09:43:45 +00:00
committed by Git OBS Bridge
parent 8d41a6051e
commit 2ffb0070d6
6 changed files with 129 additions and 46 deletions

View File

@@ -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 <http://www.gnu.org/licenses/>.
%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