1 | %{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} |
---|
2 | |
---|
3 | Name: perl-XML-XPath |
---|
4 | Version: 1.13 |
---|
5 | Release: 5%{?_dist_release} |
---|
6 | |
---|
7 | Summary: XPath parser and evaluator for Perl |
---|
8 | |
---|
9 | Group: Development/Libraries |
---|
10 | License: GPL or Artistic |
---|
11 | URL: http://search.cpan.org/dist/XML-XPath/ |
---|
12 | Source0: http://www.cpan.org/authors/id/M/MS/MSERGEANT/XML-XPath-%{version}.tar.gz |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | |
---|
15 | BuildArch: noarch |
---|
16 | BuildRequires: perl >= 1:5.6.1, perl(XML::Parser) |
---|
17 | #Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
18 | |
---|
19 | %description |
---|
20 | This module aims to comply exactly to the XPath specification at |
---|
21 | http://www.w3.org/TR/xpath and yet allow extensions to be added in the |
---|
22 | form of functions. Modules such as XSLT and XPointer may need to do |
---|
23 | this as they support functionality beyond XPath. |
---|
24 | |
---|
25 | |
---|
26 | %prep |
---|
27 | %setup -q -n XML-XPath-%{version} |
---|
28 | |
---|
29 | |
---|
30 | %build |
---|
31 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
32 | make %{?_smp_mflags} |
---|
33 | |
---|
34 | |
---|
35 | %install |
---|
36 | rm -rf $RPM_BUILD_ROOT |
---|
37 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
---|
38 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
39 | find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
40 | chmod -R u+w $RPM_BUILD_ROOT/* |
---|
41 | |
---|
42 | |
---|
43 | %check || : |
---|
44 | make test |
---|
45 | |
---|
46 | %clean |
---|
47 | rm -rf $RPM_BUILD_ROOT |
---|
48 | |
---|
49 | %files |
---|
50 | %defattr(-,root,root,-) |
---|
51 | %doc README TODO |
---|
52 | %{_bindir}/xpath |
---|
53 | %{perl_vendorlib}/XML |
---|
54 | %{_mandir}/man3/*.3* |
---|
55 | |
---|
56 | |
---|
57 | %changelog |
---|
58 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.13-5 |
---|
59 | - rebuild with perl-5.12.3 |
---|
60 | |
---|
61 | * Sun Jul 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.13-4 |
---|
62 | - rebuilt with perl 5.10.0 |
---|
63 | - applied new versioning policy |
---|
64 | |
---|
65 | * Sun Jul 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> |
---|
66 | - rebuilt for Vine Linux |
---|
67 | |
---|
68 | * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> |
---|
69 | - rebuilt |
---|
70 | |
---|
71 | * Sun Jul 11 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-2 |
---|
72 | - Bring up to date with current fedora.us Perl spec template. |
---|
73 | |
---|
74 | * Sun Oct 12 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.1 |
---|
75 | - First build. |
---|