3 %bcond_without tests # do not perform "make test"
7 Summary: XML::Smart - a smart, easy and powerful way to access/create XML files/data
8 Summary(pl.UTF-8): XML::Smart - zgrabny, łatwy i potężny sposób dostępu i tworzenia plików/danych XML
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 648309c0d613ddaca6f6b16e9f13c81d
17 URL: http://search.cpan.org/dist/XML-Smart/
18 BuildRequires: perl-Object-MultiType >= 0.03
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module has an easy way to access/create XML data. It's based on
26 the HASH tree that is made of the XML data, and enable a dynamic
27 access to it with the Perl syntax for Hash and Array, without needing
28 to care if you have a Hash or an Array in the tree. In other words,
29 each point in the tree work as a Hash and an Array at the same time!
31 You also have extra resources, like a search for nodes by attribute,
32 selection of an attribute value in each multiple node, change the
33 returned format, etc...
35 %description -l pl.UTF-8
36 Ten moduł ma łatwy sposób na dostęp i tworzenie danych XML. Jest
37 oparty na drzewie haszy tworzonym z danych XML i umożliwia dynamiczny
38 dostęp do nich z użyciem perlowej składni dla haszy i tablic, bez
39 potrzeby pilnowania, czy w danym drzewie znajdują się hasze czy
40 tablice. Innymi słowy, każdy węzeł w drzewie funkcjonuje jako hasz i
43 Moduł udostępnia także dodatki takie jak poszukiwanie węzłów według
44 atrybutów, wybór wartości atrybutu w każdym węźle wielokrotnym, zmiana
45 formatu zwracanych danych itp.
48 %setup -q -n %{pdir}-%{pnam}-%{version}
51 %{__perl} Makefile.PL \
55 %{?with_tests:echo n | %{__make} test}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
63 # get rid of pod documentation
64 rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/XML/Smart/*.{pod,epod}
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %{perl_vendorlib}/XML/Smart.pm
73 %{perl_vendorlib}/XML/Smart