]> git.pld-linux.org Git - packages/perl-Config-JSON.git/blame - perl-Config-JSON.spec
- updated to 1.4.0
[packages/perl-Config-JSON.git] / perl-Config-JSON.spec
CommitLineData
12fadaf2 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Config
7%define pnam JSON
8Summary: Config::JSON - a JSON based config file system
9Name: perl-Config-JSON
9135bbbb 10Version: 1.4.0
12fadaf2 11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
9135bbbb 16# Source0-md5: 1ffdc1d66f0d825f2aab28f74e6ce2bb
a104a4f9 17URL: http://search.cpan.org/dist/Config-JSON/
12fadaf2 18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
a104a4f9 20%if %{with tests}
21BuildRequires: perl(Class::InsideOut) >= 1.06
22BuildRequires: perl-JSON >= 2.12
23BuildRequires: perl-Test-Deep >= 0.095
24%endif
12fadaf2 25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29This package parses the config files written in JSON. It also does
30some non-JSON stuff, like allowing for comments in the files.
31
32%prep
33%setup -q -n %{pdir}-%{pnam}
34
35%build
36%{__perl} Makefile.PL \
37 INSTALLDIRS=vendor
38%{__make}
39
40%{?with_tests:%{__make} test}
41
42%install
43rm -rf $RPM_BUILD_ROOT
a104a4f9 44
12fadaf2 45%{__make} install \
46 DESTDIR=$RPM_BUILD_ROOT
47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%files
52%defattr(644,root,root,755)
a104a4f9 53%doc Changes README
12fadaf2 54%{perl_vendorlib}/Config/JSON.pm
55%{_mandir}/man3/*
This page took 0.077582 seconds and 4 git commands to generate.