%define module XML-Simple %define version 1.06 %define release 1mdk Summary: XML-Simple perl module Name: perl-%{module} Version: %{version} Release: %{release} License: GPL or Artistic Group: Development/Perl Url: http://www.cpan.org Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/%{module}-%{version}.tar.bz2 BuildRequires: perl-devel >= 5.6 BuildRequires: perl-Storable BuildRequires: perl-XML-Parser BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description XML-Simple - trivial API to manipulate XML %prep rm -rf $RPM_BUILD_ROOT %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL PREFIX=%{_prefix} %{__make} %install rm -rf $RPM_BUILD_ROOT eval `perl '-V:installarchlib'` install -d $RPM_BUILD_ROOT/$installarchlib %{__make} PREFIX=$RPM_BUILD_ROOT%{_prefix} install install -d $RPM_BUILD_ROOT/%{_datadir} find $RPM_BUILD_ROOT%{_prefix} -type f -print | sed "s@^$RPM_BUILD_ROOT@@g"| \ grep -v perllocal.pod | grep -v .packlist | grep -v .bs > \ %{module}-%{version}-filelist perl -p -i -e 's/\.3/\.3\.bz2/g' %{module}-%{version}-filelist : %clean rm -rf $RPM_BUILD_ROOT %files -f %{module}-%{version}-filelist %defattr(-,root,root) %doc README MANIFEST Changes examples %changelog * Tue Jan 15 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.06-1mdk - 1.06 - url * Wed Dec 5 2001 Stefan van der Eijk <stefan@eijk.nu> 1.05-3mdk - fix BuildRequires * Thu Aug 23 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.05-2mdk - rebuild * Wed Mar 07 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.05-1mdk - new in contribs