]>
Commit | Line | Data |
---|---|---|
9d37e7bf | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
9d37e7bf | 5 | %define pdir JSON |
44781d44 JB |
6 | Summary: JSON - parse and convert to JSON (JavaScript Object Notation) |
7 | Summary(pl.UTF-8): JSON - analiza i konwersja do notacji JSON (JavaScript Object Notation) | |
9d37e7bf | 8 | Name: perl-JSON |
e4c19a2a | 9 | Version: 4.09 |
9d37e7bf | 10 | Release: 1 |
11 | # same as perl | |
12 | License: GPL v1+ or Artistic | |
13 | Group: Development/Languages/Perl | |
b2807f7b | 14 | Source0: http://www.cpan.org/modules/by-module/JSON/%{pdir}-%{version}.tar.gz |
e4c19a2a | 15 | # Source0-md5: bbd0239a830384a22295234b46b2fac8 |
9d37e7bf | 16 | URL: http://search.cpan.org/dist/JSON/ |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
b9b30b02 | 19 | Suggests: perl-JSON-XS |
9d37e7bf | 20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
44781d44 JB |
24 | This module converts between JSON (JavaScript Object Notation) and |
25 | Perl data structure into each other. | |
9d37e7bf | 26 | |
44781d44 | 27 | For JSON, See to <http://www.crockford.com/JSON/>. |
9d37e7bf | 28 | |
44781d44 JB |
29 | %description -l pl.UTF-8 |
30 | Ten moduł dokonuje konwersji między notacją JSON (JavaScript Object | |
31 | Notation) a perlowymi strukturami danych. | |
32 | ||
33 | Więcej informacji na temat notacji JSON można znaleźć pod adresem | |
34 | <http://www.crockford.com/JSON/>. | |
9d37e7bf | 35 | |
36 | %prep | |
37 | %setup -q -n %{pdir}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
0bb7d98d | 42 | |
9d37e7bf | 43 | %{__make} |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes README | |
b2807f7b | 59 | %{perl_vendorlib}/JSON.pm |
44781d44 | 60 | %{perl_vendorlib}/JSON |
b2807f7b | 61 | %{_mandir}/man3/JSON*.3pm* |