3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: XML::XSH - an XML editing shell
9 Summary(pl.UTF-8): XML::XSH - powłoka do edycji XML-a
13 License: GPL v2 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: c25f59c465f785347d0466d653d9893f
18 BuildRequires: perl-Parse-RecDescent >= 1.94
19 BuildRequires: perl-XML-GDOME
20 BuildRequires: perl-XML-LibXML >= 1.54
21 BuildRequires: perl-XML-LibXML-XPathContext >= 0.04
22 BuildRequires: perl-XML-LibXSLT >= 1.53
23 BuildRequires: perl-XML-XUpdate-LibXML >= 0.4.0
25 BuildRequires: perl-devel >= 1:5.8.0
26 BuildRequires: rpm-perlprov >= 4.1-13
27 Requires: perl-Parse-RecDescent >= 1.94
28 Requires: perl-XML-LibXML >= 1.54
29 Requires: perl-XML-LibXML-XPathContext >= 0.04
30 Requires: perl-XML-LibXSLT >= 1.53
31 Requires: perl-XML-XUpdate-LibXML >= 0.4.0
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 xsh is a powerful command-line XML (DOM) editing tool/programming
37 language in the manner of Unix shell interpreters and line-oriented
38 text editors like ed. It can be used either interactively or for
39 batch-mode XML processing.
41 %description -l pl.UTF-8
42 xsh to potężne działające z linii poleceń narzędzie do edycji XML-a
43 (DOM), a także język programowania w stylu uniksowych powłok oraz
44 liniowo zorientowanych edytorów w stylu eda. Może być używane
45 interaktywnie lub do wsadowego przetwarzania XML-a.
48 %setup -q -n %{pdir}-%{pnam}-%{version}
51 %{__perl} Makefile.PL \
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %doc BUGS ChangeLog Changes NOTES README TODO
69 %attr(755,root,root) %{_bindir}/xsh
70 %{perl_vendorlib}/XML/XSH.pm
71 %{perl_vendorlib}/XML/XSH
72 %{perl_vendorlib}/Inline/XSH.pm