]> git.pld-linux.org Git - packages/perl-XML-LibXSLT.git/blame - perl-XML-LibXSLT.spec
- updated to 2.002001
[packages/perl-XML-LibXSLT.git] / perl-XML-LibXSLT.spec
CommitLineData
7ff8afcf
JB
1#
2# Conditional build:
cecd49da 3%bcond_without tests # do not perform "make test"
7ff8afcf 4#
2efa69b2 5%define pdir XML
6%define pnam LibXSLT
5175f4f6 7Summary: XML::LibXSLT - interface to the GNOME libxslt library
029f25b5 8Summary(pl.UTF-8): XML::LibXSLT - interfejs do biblioteki libxslt z GNOME
45747143 9Name: perl-XML-LibXSLT
60088104
JB
10Version: 2.002001
11Release: 1
cecd49da 12# same as perl
13License: GPL v1+ or Artistic
fb5d03ab 14Group: Development/Languages/Perl
c8a64cf3 15Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
60088104
JB
16# Source0-md5: b47ac3a69b58fa43386c4f39be5d7bd5
17URL: https://metacpan.org/dist/XML-LibXSLT
25c38113 18BuildRequires: libxslt-devel >= 1.1.28
4f96d668 19BuildRequires: perl-XML-LibXML >= 1.75
cee1be1e 20BuildRequires: perl-devel >= 1:5.14
5e759ec6 21BuildRequires: pkgconfig
937b6662 22BuildRequires: rpm-perlprov >= 4.1-13
86061254 23BuildRequires: rpmbuild(macros) >= 1.745
2afde508 24%if %{with tests}
25%if "%(perl -MXML::LibXML -e 'print XML::LibXML::LIBXML_VERSION == XML::LibXML::LIBXML_RUNTIME_VERSION || 0' 2>/dev/null)" == "0"
26BuildRequires: REBUILD-perl-XML-LibXML
27%endif
28%endif
25c38113 29Requires: libxslt >= 1.1.28
deabcbe1 30Requires: perl-XML-LibXML >= 1.70
c0862bd2 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
fb5d03ab 32
33%description
7e8382de 34This module is an interface to the GNOME project's libxslt. This is an
5c42f054 35extremely good XSLT engine, highly compliant and also very fast. I
36have tests showing this to be more than twice as fast as Sablotron.
a59d1efb 37
101963ed
JR
38%description -l pl.UTF-8
39Ten moduł jest interfejsem do libxslt z projektu GNOME. Jest to bardzo
40dobry silnik XSLT, o dużej zgodności ze standardem, a także bardzo
41szybki. Według testów jest ponad dwa razy szybszy od Sablotrona.
fb5d03ab 42
43%prep
44%setup -q -n %{pdir}-%{pnam}-%{version}
45
46%build
937b6662 47%{__perl} Makefile.PL \
1a626922 48 INSTALLDIRS=vendor
7ff8afcf 49%{__make} \
bac92549 50 CC="%{__cc}" \
7ff8afcf
JB
51 OPTIMIZE="%{rpmcflags}"
52
53%{?with_tests:%{__make} test}
fb5d03ab 54
55%install
56rm -rf $RPM_BUILD_ROOT
fb5d03ab 57
7ff8afcf
JB
58%{__make} install \
59 DESTDIR=$RPM_BUILD_ROOT
fb5d03ab 60
e0e5e0b5 61install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
fb5d03ab 62install example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
63
fb5d03ab 64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
ba95ac93 69%doc Changes LICENSE README
937b6662 70%{perl_vendorarch}/XML/LibXSLT.pm
cee1be1e 71%{perl_vendorarch}/XML/LibXSLT
937b6662 72%dir %{perl_vendorarch}/auto/XML/LibXSLT
937b6662 73%attr(755,root,root) %{perl_vendorarch}/auto/XML/LibXSLT/LibXSLT.so
ba95ac93 74%{_mandir}/man3/XML::LibXSLT.3pm*
cee1be1e 75%{_mandir}/man3/XML::LibXSLT::Quick.3pm*
fb5d03ab 76%{_examplesdir}/%{name}-%{version}
This page took 0.167752 seconds and 5 git commands to generate.