]>
Commit | Line | Data |
---|---|---|
f10a42e6 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir JSON | |
6 | %define pnam Tiny | |
7 | Summary: JSON::Tiny - minimal JSON with no dependencies | |
8 | Summary(pl.UTF-8): JSON::Tiny - minimalny JSON bez zależności | |
9 | Name: perl-JSON-Tiny | |
10 | Version: 0.58 | |
11 | Release: 1 | |
12 | License: Artistic v2.0 | |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-module/JSON/%{pdir}-%{pnam}-%{version}.tar.gz | |
15 | # Source0-md5: aa006882222e17a94295b3a655aab91b | |
16 | URL: https://metacpan.org/release/JSON-Tiny | |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | BuildRequires: rpmbuild(macros) >= 1.745 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl(Exporter) >= 5.59 | |
22 | BuildRequires: perl-Test-Simple | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Lightweight, fast, pure-Perl JSON in a stand-alone module with only | |
29 | core dependencies. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Lekka, szybka, czysto perlowa biblioteka JSON w samodzielnym module | |
33 | bez 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 | |
46 | rm -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 | |
54 | rm -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* |