]>
Commit | Line | Data |
---|---|---|
28de9f38 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
3386b617 | 4 | |
b1c1cd29 | 5 | %define pdir XML |
6 | %define pnam Smart | |
3386b617 | 7 | %include /usr/lib/rpm/macros.perl |
324f256a | 8 | Summary: XML::Smart - a smart, easy and powerful way to access/create XML files/data |
e7478a76 | 9 | Summary(pl.UTF-8): XML::Smart - zgrabny, łatwy i potężny sposób dostępu i tworzenia plików/danych XML |
28de9f38 | 10 | Name: perl-XML-Smart |
1fae116a | 11 | Version: 1.6.9 |
103d1f6f | 12 | Release: 2 |
1c0abf52 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
28de9f38 | 15 | Group: Development/Languages/Perl |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
1fae116a | 17 | # Source0-md5: 648309c0d613ddaca6f6b16e9f13c81d |
3386b617 ER |
18 | URL: http://search.cpan.org/dist/XML-Smart/ |
19 | BuildRequires: perl-Object-MultiType >= 0.03 | |
28de9f38 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
28de9f38 | 22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | This module has an easy way to access/create XML data. It's based on | |
27 | the HASH tree that is made of the XML data, and enable a dynamic | |
28 | access to it with the Perl syntax for Hash and Array, without needing | |
29 | to care if you have a Hash or an Array in the tree. In other words, | |
30 | each point in the tree work as a Hash and an Array at the same time! | |
31 | ||
32 | You also have extra resources, like a search for nodes by attribute, | |
33 | selection of an attribute value in each multiple node, change the | |
34 | returned format, etc... | |
35 | ||
f76850cd JR |
36 | %description -l pl.UTF-8 |
37 | Ten moduł ma łatwy sposób na dostęp i tworzenie danych XML. Jest | |
38 | oparty na drzewie haszy tworzonym z danych XML i umożliwia dynamiczny | |
39 | dostęp do nich z użyciem perlowej składni dla haszy i tablic, bez | |
40 | potrzeby pilnowania, czy w danym drzewie znajdują się hasze czy | |
41 | tablice. Innymi słowy, każdy węzeł w drzewie funkcjonuje jako hasz i | |
42 | tablica jednocześnie! | |
ca082f92 | 43 | |
f76850cd JR |
44 | Moduł udostępnia także dodatki takie jak poszukiwanie węzłów według |
45 | atrybutów, wybór wartości atrybutu w każdym węźle wielokrotnym, zmiana | |
ca082f92 | 46 | formatu zwracanych danych itp. |
28de9f38 | 47 | |
48 | %prep | |
49 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
50 | ||
51 | %build | |
52 | %{__perl} Makefile.PL \ | |
53 | INSTALLDIRS=vendor | |
28de9f38 | 54 | %{__make} |
1c0abf52 | 55 | |
28de9f38 | 56 | %{?with_tests:echo n | %{__make} test} |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %{__make} install \ | |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
f306e96c AG |
64 | # get rid of pod documentation |
65 | rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/XML/Smart/*.{pod,epod} | |
66 | ||
28de9f38 | 67 | %clean |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
72 | %doc Changes README | |
73 | %{perl_vendorlib}/XML/Smart.pm | |
74 | %{perl_vendorlib}/XML/Smart | |
75 | %{_mandir}/man3/* |