Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MediaWiki-API?expand=0&rev=13
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-MediaWiki-API
|
# spec file for package perl-MediaWiki-API
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,19 +16,19 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: perl-MediaWiki-API
|
|
||||||
Version: 0.52
|
|
||||||
Release: 0
|
|
||||||
#Upstream: GPL-1.0-or-later
|
|
||||||
%define cpan_name MediaWiki-API
|
%define cpan_name MediaWiki-API
|
||||||
Summary: Provides a Perl interface to the MediaWiki API (https://www.mediawiki.or[cut]
|
Name: perl-MediaWiki-API
|
||||||
|
Version: 0.520.0
|
||||||
|
Release: 0
|
||||||
|
# 0.52 -> normalize -> 0.520.0
|
||||||
|
%define cpan_version 0.52
|
||||||
|
#Upstream: GPL-1.0-or-later
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
Group: Development/Libraries/Perl
|
Summary: Provides a Perl interface to the MediaWiki API (https://www.mediawiki.or[cut]
|
||||||
URL: https://metacpan.org/release/%{cpan_name}
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/E/EX/EXOBUZZ/%{cpan_name}-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/E/EX/EXOBUZZ/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
Source1: cpanspec.yml
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(JSON)
|
BuildRequires: perl(JSON)
|
||||||
@@ -37,17 +37,19 @@ BuildRequires: perl(Test::More) >= 0.98
|
|||||||
Requires: perl(JSON)
|
Requires: perl(JSON)
|
||||||
Requires: perl(LWP::UserAgent)
|
Requires: perl(LWP::UserAgent)
|
||||||
Requires: perl(Test::More) >= 0.98
|
Requires: perl(Test::More) >= 0.98
|
||||||
|
Provides: perl(MediaWiki::API) = %{version}
|
||||||
|
%undefine __perllib_provides
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Provides a Perl interface to the MediaWiki API (https://www.mediawiki.org/wiki/API)
|
Provides a Perl interface to the MediaWiki API (https://www.mediawiki.org/wiki/API)
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
@@ -58,7 +60,6 @@ make test
|
|||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
|
||||||
%doc Changes CONTRIBUTING.md README
|
%doc Changes CONTRIBUTING.md README
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user