]> git.pld-linux.org Git - packages/perl-JSON.git/blobdiff - perl-JSON.spec
- updated URL and macros
[packages/perl-JSON.git] / perl-JSON.spec
index 4a75e530ad636d02254e32c2f90b4e4204083971..3efbb8624d29f0a8e97c80079f3eba69d16e4e51 100644 (file)
@@ -1,27 +1,23 @@
 #
 # 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:       1.14
+Version:       4.09
 Release:       1
 # same as perl
 License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       http://www.cpan.org/modules/by-authors/id/M/MA/MAKAMAKA/%{pdir}-%{version}.tar.gz
-# Source0-md5: d95d9cdb7c0a64a51d3d946915db52fb
-URL:           http://search.cpan.org/dist/JSON/
+Source0:       http://www.cpan.org/modules/by-module/JSON/%{pdir}-%{version}.tar.gz
+# Source0-md5: bbd0239a830384a22295234b46b2fac8
+URL:           https://metacpan.org/dist/JSON
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
-%if %{with tests}
-BuildRequires: perl(HTTP::Request)
-BuildRequires: perl(HTTP::Response)
-BuildRequires: perl-libwww
-%endif
+BuildRequires: rpmbuild(macros) >= 1.745
+Suggests:      perl-JSON-XS
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -44,6 +40,7 @@ Więcej informacji na temat notacji JSON można znaleźć pod adresem
 %build
 %{__perl} Makefile.PL \
        INSTALLDIRS=vendor
+
 %{__make}
 
 %{?with_tests:%{__make} test}
@@ -60,8 +57,6 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc Changes README
-%{perl_vendorlib}/*.pm
-%{perl_vendorlib}/Apache/*.pm
+%{perl_vendorlib}/JSON.pm
 %{perl_vendorlib}/JSON
-%{perl_vendorlib}/JSONRPC
-%{_mandir}/man3/*
+%{_mandir}/man3/JSON*.3pm*
This page took 0.121602 seconds and 4 git commands to generate.