]>
Commit | Line | Data |
---|---|---|
b8d7bb48 | 1 | # |
2 | # Conditional build: | |
20b629aa | 3 | %bcond_without tests # do not perform "make test" |
b8d7bb48 | 4 | # |
982ef985 | 5 | %include /usr/lib/rpm/macros.perl |
2d38579c | 6 | %define pdir XML |
7 | %define pnam SAX | |
c75fd3aa | 8 | Summary: XML::SAX - simple API for XML |
74068b63 | 9 | Summary(pl.UTF-8): XML::SAX - proste API dla XML-a |
2745e30a | 10 | Name: perl-XML-SAX |
5ad1ad2d JB |
11 | Version: 1.00 |
12 | Release: 1 | |
59ff7ef0 | 13 | # same as perl |
b506abe3 | 14 | License: GPL v1+ or Artistic |
982ef985 | 15 | Group: Development/Languages/Perl |
5ad1ad2d JB |
16 | Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz |
17 | # Source0-md5: 861a454f7bf269990ed2c1c125f4db48 | |
553f22b3 | 18 | Patch0: %{name}-noalter.patch |
2d7d030e | 19 | URL: http://search.cpan.org/dist/XML-SAX/ |
29a7cb44 | 20 | BuildRequires: perl-XML-NamespaceSupport >= 0.03 |
37c7d407 | 21 | BuildRequires: perl-XML-SAX-Base >= 1.05 |
72fb345c | 22 | BuildRequires: perl-devel >= 1:5.8.0 |
d534d49b | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
37c7d407 JB |
24 | Requires(post): coreutils |
25 | Requires: perl-XML-NamespaceSupport >= 0.03 | |
26 | Requires: perl-XML-SAX-Base >= 1.05 | |
982ef985 | 27 | BuildArch: noarch |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | XML::SAX consists of several framework classes for using and building | |
32 | Perl SAX2 XML parsers, filters, and drivers. It is designed around the | |
33 | need to be able to "plug in" different SAX parsers to an application | |
34 | without requiring programmer intervention. Those of you familiar with | |
35 | the DBI will be right at home. Some of the designs come from the Java | |
36 | JAXP specification (SAX part), only without the javaness. | |
37 | ||
05da61cd JR |
38 | %description -l pl.UTF-8 |
39 | XML::SAX składa się z kilku klas tworzących szkielet do używania i | |
40 | budowania parserów, filtrów i sterowników SAX2 XML w Perlu. Zadaniem | |
41 | modułu jest umożliwienie włączania różnych parserów SAX do aplikacji | |
42 | bez udziału programisty. Znający moduły DBI będą się czuli jak w domu. | |
43 | Niektóre koncepcje pochodzą ze specyfikacji Java JAXP (część SAX), ale | |
44 | bez javowości. | |
2acab687 | 45 | |
982ef985 | 46 | %prep |
47 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
93bdca1f | 48 | %patch0 -p1 |
982ef985 | 49 | |
50 | %build | |
d534d49b | 51 | %{__perl} Makefile.PL \ |
005abcc3 | 52 | INSTALLDIRS=vendor |
982ef985 | 53 | %{__make} |
54 | ||
20b629aa | 55 | %{?with_tests:%{__make} test} |
b8d7bb48 | 56 | |
982ef985 | 57 | %install |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
20b629aa | 60 | %{__make} install \ |
61 | DESTDIR=$RPM_BUILD_ROOT | |
d534d49b | 62 | touch $RPM_BUILD_ROOT%{perl_vendorlib}/XML/SAX/ParserDetails.ini |
2745e30a | 63 | |
37c7d407 JB |
64 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/XML/SAX/Intro.pod |
65 | ||
982ef985 | 66 | %clean |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
3c5447f4 | 69 | %post |
70 | umask 022 | |
71 | touch %{perl_vendorlib}/XML/SAX/ParserDetails.ini | |
72 | ||
982ef985 | 73 | %files |
74 | %defattr(644,root,root,755) | |
29a7cb44 | 75 | %doc Changes README |
d534d49b | 76 | %{perl_vendorlib}/XML/SAX.pm |
37c7d407 JB |
77 | %{perl_vendorlib}/XML/SAX/DocumentLocator.pm |
78 | %{perl_vendorlib}/XML/SAX/ParserFactory.pm | |
79 | %{perl_vendorlib}/XML/SAX/PurePerl.pm | |
d534d49b | 80 | %{perl_vendorlib}/XML/SAX/PurePerl |
3c5447f4 | 81 | %ghost %{perl_vendorlib}/XML/SAX/ParserDetails.ini |
37c7d407 JB |
82 | %{_mandir}/man3/XML::SAX.3pm* |
83 | %{_mandir}/man3/XML::SAX::DocumentLocator.3pm* | |
84 | %{_mandir}/man3/XML::SAX::Intro.3pm* | |
85 | %{_mandir}/man3/XML::SAX::ParserFactory.3pm* | |
86 | %{_mandir}/man3/XML::SAX::PurePerl*.3pm* |