]>
Commit | Line | Data |
---|---|---|
e3bab152 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
ac1d7258 | 4 | |
bc225888 | 5 | %define pdir XML |
6 | %define pnam XUpdate-LibXML | |
ec60e026 | 7 | Summary: XML::XUpdate::LibXML - simple implementation of XUpdate format |
a896c18f | 8 | Summary(pl.UTF-8): XML::XUpdate::LibXML - prosta implementacja formatu XUpdate |
e3bab152 | 9 | Name: perl-XML-XUpdate-LibXML |
1e011da9 | 10 | Version: 0.6.0 |
11 | Release: 1 | |
e3bab152 JB |
12 | License: unknown |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
1e011da9 | 15 | # Source0-md5: feee3db4ab0a0520d9b1f17b50f74693 |
ac1d7258 ER |
16 | URL: http://search.cpan.org/dist/XML-XUpdate-LibXML/ |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
e3bab152 JB |
19 | %if %{with tests} |
20 | BuildRequires: perl-XML-LibXML >= 1.54 | |
21 | BuildRequires: perl-XML-LibXML-Iterator | |
22 | BuildRequires: perl-XML-LibXML-XPathContext >= 0.04 | |
23 | %endif | |
e3bab152 JB |
24 | Requires: perl-XML-LibXML >= 1.54 |
25 | Requires: perl-XML-LibXML-XPathContext >= 0.04 | |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | This module implements the XUpdate format described in XUpdate Working | |
31 | Draft from 2000-09-14 (http://www.xmldb.org/xupdate/xupdate-wd.html). | |
32 | The implementation is based on XML::LibXML DOM API. | |
33 | ||
178e76c8 JR |
34 | %description -l pl.UTF-8 |
35 | Ten moduł implementuje format XUpdate opisany w XUpdate Working Draft | |
e3bab152 JB |
36 | z 14.09.2000 (http://www.xmldb.org/xupdate/xupdate-wd.html). |
37 | Implementacja jest oparta na API DOM z XML::LibXML. | |
38 | ||
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
43 | %{__perl} Makefile.PL \ | |
44 | INSTALLDIRS=vendor | |
e3bab152 JB |
45 | %{__make} |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc Changes | |
61 | %attr(755,root,root) %{_bindir}/xupdate | |
62 | %{perl_vendorlib}/XML/Normalize | |
63 | %{perl_vendorlib}/XML/XUpdate | |
64 | %{_mandir}/man[13]/* |