]> git.pld-linux.org Git - packages/perl-JSON-Tiny.git/blame - perl-JSON-Tiny.spec
- new
[packages/perl-JSON-Tiny.git] / perl-JSON-Tiny.spec
CommitLineData
f10a42e6
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir JSON
6%define pnam Tiny
7Summary: JSON::Tiny - minimal JSON with no dependencies
8Summary(pl.UTF-8): JSON::Tiny - minimalny JSON bez zależności
9Name: perl-JSON-Tiny
10Version: 0.58
11Release: 1
12License: Artistic v2.0
13Group: Development/Languages/Perl
14Source0: http://www.cpan.org/modules/by-module/JSON/%{pdir}-%{pnam}-%{version}.tar.gz
15# Source0-md5: aa006882222e17a94295b3a655aab91b
16URL: https://metacpan.org/release/JSON-Tiny
17BuildRequires: perl-devel >= 1:5.8.0
18BuildRequires: rpm-perlprov >= 4.1-13
19BuildRequires: rpmbuild(macros) >= 1.745
20%if %{with tests}
21BuildRequires: perl(Exporter) >= 5.59
22BuildRequires: perl-Test-Simple
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28Lightweight, fast, pure-Perl JSON in a stand-alone module with only
29core dependencies.
30
31%description -l pl.UTF-8
32Lekka, szybka, czysto perlowa biblioteka JSON w samodzielnym module
33bez zależności spoza podstawowego Perla.
34
35%prep
36%setup -q -n %{pdir}-%{pnam}-%{version}
37
38%build
39%{__perl} Makefile.PL \
40 INSTALLDIRS=vendor
41%{__make}
42
43%{?with_tests:%{__make} test}
44
45%install
46rm -rf $RPM_BUILD_ROOT
47
48%{__make} pure_install \
49 DESTDIR=$RPM_BUILD_ROOT
50
51%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/JSON/Tiny.pod
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
58%doc Changes
59%{perl_vendorlib}/JSON/Tiny.pm
60%{_mandir}/man3/JSON::Tiny.3pm*
This page took 0.145799 seconds and 4 git commands to generate.