]>
Commit | Line | Data |
---|---|---|
f1bee890 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
98a255b3 ER |
4 | |
5 | %define pdir XML | |
6 | %define pnam SAXDriver-Sablotron | |
dbf53af9 JB |
7 | %include /usr/lib/rpm/macros.perl |
8 | Summary: XML::SAXDriver::Sablotron perl module | |
3f2b2d6b | 9 | Summary(pl.UTF-8): Moduł perla XML::SAXDriver::Sablotron |
afac7b55 | 10 | Name: perl-XML-SAXDriver-Sablotron |
48bf83a9 | 11 | Version: 0.30 |
04e8c248 | 12 | Release: 2 |
f1bee890 | 13 | License: GPL v2+ or MPL v1.1 |
dbf53af9 | 14 | Group: Development/Languages/Perl |
fa7b45b0 JB |
15 | #Source0Download: http://www.gingerall.com/charlie/ga/xml/d_sab.xml |
16 | Source0: http://download-1.gingerall.cz/download/sablot/XML-SAXDriver-Sablotron-%{version}.tar.gz | |
6b6e4de6 | 17 | # Source0-md5: 785db592e5ca705b3732816cbbd1d1f3 |
98a255b3 | 18 | URL: http://search.cpan.org/dist/XML-SAXDriver-Sablotron/ |
dbf53af9 JB |
19 | BuildRequires: perl-XML-SAX |
20 | BuildRequires: perl-XML-Sablotron | |
98a255b3 | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
04e8c248 | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
dbf53af9 JB |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | XML::SAXDriver::Sablotron is a SAX2 driver based on Sablotron XSLT | |
28 | processor. An XSLT transformation result is outputted as a stream of | |
29 | SAX2 events. The result tree is not build at all - SAX2 events are | |
30 | emitted directly instead. | |
31 | ||
c91cb018 JR |
32 | %description -l pl.UTF-8 |
33 | XML::SAXDriver::Sablotron to sterownik SAX2 bazujący na procesorze | |
34 | XSLT Sablotron. Wyjściem transformacji XSLT jest strumień zdarzeń | |
35 | SAX2. Wynikowe drzewo nie jest budowane - zdarzenia SAX2 są wywoływane | |
36 | bezpośrednio. | |
dbf53af9 JB |
37 | |
38 | %prep | |
39 | %setup -q -n XML-SAXDriver-Sablotron-%{version} | |
40 | ||
41 | %build | |
04e8c248 | 42 | %{__perl} Makefile.PL \ |
967f5450 | 43 | INSTALLDIRS=vendor |
c3372e29 | 44 | %{__make} |
dbf53af9 | 45 | |
f1bee890 | 46 | %{?with_tests:%{__make} test} |
47 | ||
dbf53af9 JB |
48 | %install |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
dbf53af9 JB |
54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
785788e9 | 59 | %doc README Changes |
04e8c248 | 60 | %dir %{perl_vendorlib}/XML/SAXDriver |
61 | %{perl_vendorlib}/XML/SAXDriver/Sablotron.pm | |
dbf53af9 | 62 | %{_mandir}/man3/* |