]> git.pld-linux.org Git - SPECS.git/blob - perl-XML-Clean.spec
SPECS updated Sat 31 Jul 20:27:02 CEST 2021
[SPECS.git] / perl-XML-Clean.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    XML
6 %define pnam    Clean
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
9 Name:           perl-XML-Clean
10 Version:        1.06
11 Release:        1
12 # same as perl
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
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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
26 could find. 
27
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). 
30
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).
34
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.
39
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ą).
43
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).
47
48 %prep
49 %setup -q -n %{pdir}-%{pnam}-%{version}
50
51 %build
52 %{__perl} Makefile.PL \
53         INSTALLDIRS=vendor
54 %{__make}
55
56 %{?with_tests:%{__make} test}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %doc ChangeLog
70 %{perl_vendorlib}/XML/*.pm
71 %{_mandir}/man3/*
This page took 0.27989 seconds and 3 git commands to generate.