]> git.pld-linux.org Git - packages/perl-XML-Smart.git/blame - perl-XML-Smart.spec
use generic url
[packages/perl-XML-Smart.git] / perl-XML-Smart.spec
CommitLineData
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 8Summary: XML::Smart - a smart, easy and powerful way to access/create XML files/data
e7478a76 9Summary(pl.UTF-8): XML::Smart - zgrabny, łatwy i potężny sposób dostępu i tworzenia plików/danych XML
28de9f38 10Name: perl-XML-Smart
1fae116a 11Version: 1.6.9
103d1f6f 12Release: 2
1c0abf52 13# same as perl
14License: GPL v1+ or Artistic
28de9f38 15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
1fae116a 17# Source0-md5: 648309c0d613ddaca6f6b16e9f13c81d
3386b617
ER
18URL: http://search.cpan.org/dist/XML-Smart/
19BuildRequires: perl-Object-MultiType >= 0.03
28de9f38 20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
28de9f38 22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26This module has an easy way to access/create XML data. It's based on
27the HASH tree that is made of the XML data, and enable a dynamic
28access to it with the Perl syntax for Hash and Array, without needing
29to care if you have a Hash or an Array in the tree. In other words,
30each point in the tree work as a Hash and an Array at the same time!
31
32You also have extra resources, like a search for nodes by attribute,
33selection of an attribute value in each multiple node, change the
34returned format, etc...
35
f76850cd
JR
36%description -l pl.UTF-8
37Ten moduł ma łatwy sposób na dostęp i tworzenie danych XML. Jest
38oparty na drzewie haszy tworzonym z danych XML i umożliwia dynamiczny
39dostęp do nich z użyciem perlowej składni dla haszy i tablic, bez
40potrzeby pilnowania, czy w danym drzewie znajdują się hasze czy
41tablice. Innymi słowy, każdy węzeł w drzewie funkcjonuje jako hasz i
42tablica jednocześnie!
ca082f92 43
f76850cd
JR
44Moduł udostępnia także dodatki takie jak poszukiwanie węzłów według
45atrybutów, wybór wartości atrybutu w każdym węźle wielokrotnym, zmiana
ca082f92 46formatu 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
59rm -rf $RPM_BUILD_ROOT
60
61%{__make} install \
62 DESTDIR=$RPM_BUILD_ROOT
63
f306e96c
AG
64# get rid of pod documentation
65rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/XML/Smart/*.{pod,epod}
66
28de9f38 67%clean
68rm -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/*
This page took 0.04715 seconds and 4 git commands to generate.