From 515c2457922a35b31dcb143e267bcc25e45caf89 Mon Sep 17 00:00:00 2001 From: radek Date: Mon, 17 Mar 2003 00:00:02 +0000 Subject: [PATCH] - new Changed files: perl-XML-Mini.spec -> 1.1 --- perl-XML-Mini.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 perl-XML-Mini.spec diff --git a/perl-XML-Mini.spec b/perl-XML-Mini.spec new file mode 100644 index 0000000..2f468d7 --- /dev/null +++ b/perl-XML-Mini.spec @@ -0,0 +1,54 @@ +# +# Conditional build: +# _without_tests - do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir XML +%define pnam Mini +Summary: XML::Mini - Perl implementation of the XML::Mini XML create/parse interface. +#Summary(pl): +Name: perl-XML-Mini +Version: 1.2.7 +Release: 1 +License: GPL v2+ +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +BuildRequires: perl-devel >= 5.6 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{!?_without_tests:1}0 +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +XML::Mini is a set of Perl classes that allow you to access XML data +and create valid XML output with a tree-based hierarchy of elements. +The MiniXML API has both Perl and PHP implementations. + +# %description -l pl +# TODO + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{!?_without_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%{perl_vendorlib}/%{pdir}/*.pm +%{perl_vendorlib}/%{pdir}/%{pnam} +%{_mandir}/man3/* -- 2.44.0