]>
Commit | Line | Data |
---|---|---|
8414ec5c | 1 | # |
7bbd3cdd | 2 | # Conditional build: |
de6999c1 | 3 | %bcond_without tests # do not perform "make test" |
4 | %bcond_without autodeps # do not BR packages, needed only | |
7bbd3cdd | 5 | # for resolving deps |
8414ec5c | 6 | # |
bc63dbb2 | 7 | %define pdir XML |
8 | %define pnam XSLT | |
05bc34dd | 9 | Summary: Perl XML::XSLT module |
166487d5 ER |
10 | Summary(es.UTF-8): Modulo Perl XML::XSLT |
11 | Summary(pl.UTF-8): Moduł Perla XML::XSLT | |
12 | Summary(pt_BR.UTF-8): Modulo Perl XML::XSLT | |
05bc34dd | 13 | Name: perl-XML-XSLT |
92c0beca | 14 | Version: 0.48 |
2908b9cd | 15 | Release: 2 |
8414ec5c | 16 | # same as perl |
17 | License: GPL v1+ or Artistic | |
05bc34dd | 18 | Group: Development/Languages/Perl |
ee93f8dd | 19 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
92c0beca | 20 | # Source0-md5: 44d6d9e183d5c49c5d422ae42e7a9f68 |
7eafbee4 | 21 | URL: http://search.cpan.org/dist/XML-XSLT/ |
eb793ea2 | 22 | BuildRequires: perl-devel >= 1:5.8.0 |
d45affd4 | 23 | BuildRequires: rpm-perlprov |
7bbd3cdd | 24 | %if %{with tests} |
25 | BuildRequires: perl(Test::More) >= 0.33 | |
26 | %endif | |
27 | %if %{with tests} || %{with autodeps} | |
7bbd3cdd | 28 | BuildRequires: perl-URI |
8414ec5c | 29 | BuildRequires: perl-XML-DOM >= 1.25 |
7bbd3cdd | 30 | BuildRequires: perl-XML-Parser >= 2.23 |
7eafbee4 | 31 | BuildRequires: perl-libwww |
7bbd3cdd | 32 | %endif |
51c057ad | 33 | BuildArch: noarch |
05bc34dd | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8e38bc7c | 35 | |
36 | %description | |
37 | Perl Interface to XSL Transformational sheets. | |
38 | ||
5b6e6600 | 39 | %description -l es.UTF-8 |
8e38bc7c | 40 | Perl Interface to XSL Transformational sheets. |
41 | ||
5b6e6600 JR |
42 | %description -l pl.UTF-8 |
43 | Moduły perla do arkuszy konwersji XSL. | |
05bc34dd | 44 | |
5b6e6600 | 45 | %description -l pt_BR.UTF-8 |
05bc34dd | 46 | Perl Interface to XSL Transformational sheets. |
8e38bc7c | 47 | |
48 | %prep | |
86956c37 | 49 | %setup -q -n %{pdir}-%{pnam}-%{version} |
8e38bc7c | 50 | |
51 | %build | |
26a7a1c3 | 52 | %{__perl} Makefile.PL \ |
729282fd | 53 | INSTALLDIRS=vendor |
05bc34dd | 54 | %{__make} |
8e38bc7c | 55 | |
7bbd3cdd | 56 | %{?with_tests: %{__make} test} |
57 | ||
8e38bc7c | 58 | %install |
05bc34dd | 59 | rm -rf $RPM_BUILD_ROOT |
60 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
8e38bc7c | 61 | |
05bc34dd | 62 | %{__make} install \ |
63 | DESTDIR=$RPM_BUILD_ROOT | |
7eafbee4 | 64 | cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
8e38bc7c | 65 | |
8e38bc7c | 66 | %clean |
05bc34dd | 67 | rm -rf $RPM_BUILD_ROOT |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
d45affd4 | 71 | %doc README* Change* MANIFEST example* |
05bc34dd | 72 | %attr(755,root,root) %{_bindir}/* |
26a7a1c3 | 73 | %{perl_vendorlib}/XML/* |
05bc34dd | 74 | %{_mandir}/man[13]/* |
75 | %{_examplesdir}/%{name}-%{version} |