]> git.pld-linux.org Git - packages/perl-XML-XSLT.git/blame - perl-XML-XSLT.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-XML-XSLT.git] / perl-XML-XSLT.spec
CommitLineData
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 9Summary: Perl XML::XSLT module
166487d5
ER
10Summary(es.UTF-8): Modulo Perl XML::XSLT
11Summary(pl.UTF-8): Moduł Perla XML::XSLT
12Summary(pt_BR.UTF-8): Modulo Perl XML::XSLT
05bc34dd 13Name: perl-XML-XSLT
92c0beca 14Version: 0.48
2908b9cd 15Release: 2
8414ec5c 16# same as perl
17License: GPL v1+ or Artistic
05bc34dd 18Group: Development/Languages/Perl
ee93f8dd 19Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
92c0beca 20# Source0-md5: 44d6d9e183d5c49c5d422ae42e7a9f68
7eafbee4 21URL: http://search.cpan.org/dist/XML-XSLT/
eb793ea2 22BuildRequires: perl-devel >= 1:5.8.0
d45affd4 23BuildRequires: rpm-perlprov
7bbd3cdd 24%if %{with tests}
25BuildRequires: perl(Test::More) >= 0.33
26%endif
27%if %{with tests} || %{with autodeps}
7bbd3cdd 28BuildRequires: perl-URI
8414ec5c 29BuildRequires: perl-XML-DOM >= 1.25
7bbd3cdd 30BuildRequires: perl-XML-Parser >= 2.23
7eafbee4 31BuildRequires: perl-libwww
7bbd3cdd 32%endif
51c057ad 33BuildArch: noarch
05bc34dd 34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
8e38bc7c 35
36%description
37Perl Interface to XSL Transformational sheets.
38
5b6e6600 39%description -l es.UTF-8
8e38bc7c 40Perl Interface to XSL Transformational sheets.
41
5b6e6600
JR
42%description -l pl.UTF-8
43Moduły perla do arkuszy konwersji XSL.
05bc34dd 44
5b6e6600 45%description -l pt_BR.UTF-8
05bc34dd 46Perl 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 59rm -rf $RPM_BUILD_ROOT
60install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
8e38bc7c 61
05bc34dd 62%{__make} install \
63 DESTDIR=$RPM_BUILD_ROOT
7eafbee4 64cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
8e38bc7c 65
8e38bc7c 66%clean
05bc34dd 67rm -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}
This page took 0.561718 seconds and 4 git commands to generate.