3 %bcond_without tests # do not perform "make test"
7 Summary: XML::Clean - Ensure, that (HTML) text pass throught an XML parser
8 Summary(pl.UTF-8): XML::Clean - sprawdzanie czy tekst (HTML) przechodzi przez analizator XML-a
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 1429eec26fdecc974086b3808a450501
17 URL: http://search.cpan.org/dist/XML-Clean/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The ultimate quest of this module is to produce from non-XML text
25 text, that will will most probably pass throught any XML parser one
28 Basic cleaning is just XML tag matching (for every opening tag there
29 will be closing tag as well, and they will form a tree structure).
31 When you add some extra parameters, you will receive complete XML
32 text, including XML head and root element (if none were defined in
33 text, then some will be added).
35 %description -l pl.UTF-8
36 Zasadniczym zadaniem tego modułu jest stworzenie z nie-XML-owego
37 tekstu tekstu, który z dużym prawdopodobieństwem przejdzie przez
38 dowolny analizator XML-a.
40 Podstawowe czyszczenie to tylko dopasowywanie znaczników XML (dla
41 każdego otwierającego znacznika musi istnieć także znacznik zamykający
42 i muszą tworzyć strukturę drzewiastą).
44 W przypadku dodania dodatkowych parametrów otrzymujemy kompletny tekst
45 XML, zawierający nagłówek i główny element (jeśli nie zostały
46 zdefiniowane w tekście, zostaną dodane).
49 %setup -q -n %{pdir}-%{pnam}-%{version}
52 %{__perl} Makefile.PL \
56 %{?with_tests:%{__make} test}
59 rm -rf $RPM_BUILD_ROOT
62 DESTDIR=$RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %{perl_vendorlib}/XML/*.pm