#
# Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_without tests # unit tests
#
-%include /usr/lib/rpm/macros.perl
%define pdir JSON
Summary: JSON - parse and convert to JSON (JavaScript Object Notation)
Summary(pl.UTF-8): JSON - analiza i konwersja do notacji JSON (JavaScript Object Notation)
Name: perl-JSON
-Version: 2.15
+Version: 4.09
Release: 1
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/JSON/%{pdir}-%{version}.tar.gz
-# Source0-md5: 15de50d89da9a0c389d3fb1a4aef84d0
-URL: http://search.cpan.org/dist/JSON/
+# Source0-md5: bbd0239a830384a22295234b46b2fac8
+URL: https://metacpan.org/dist/JSON
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
Suggests: perl-JSON-XS
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%build
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
+
%{__make}
%{?with_tests:%{__make} test}
%files
%defattr(644,root,root,755)
%doc Changes README
-%{perl_vendorlib}/*.pm
+%{perl_vendorlib}/JSON.pm
%{perl_vendorlib}/JSON
-%{_mandir}/man3/*
+%{_mandir}/man3/JSON*.3pm*