3 %bcond_without tests # do not perform "make test"
7 Summary: Config::JSON - a JSON based config file system
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 26918705ca68a635d391e4d809a78e3b
16 URL: http://search.cpan.org/dist/Config-JSON/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-Any-Moose >= 0.13
21 BuildRequires: perl-JSON >= 2.16
22 BuildRequires: perl-Test-Deep >= 0.095
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This package parses the config files written in JSON. It also does
29 some non-JSON stuff, like allowing for comments in the files.
32 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %{__perl} Makefile.PL \
39 %{?with_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %{perl_vendorlib}/Config/JSON.pm