Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > af541ca96ad6eda988a994313c0a3be9 > files > 2

perl-File-Slurp-2002.1031-3mdk.src.rpm

%define	pkgname	File-Slurp
%define	filelist %{pkgname}-%{version}-filelist
%define	NVR	%{pkgname}-%{version}-%{release}

Summary:	File-Slurp - Read and write files with a single command
Name:		perl-%{pkgname}
Version:	2002.1031
Release:	3mdk
Group:		Development/Perl
License:	Distributable
Url:		http://www.cpan.org
BuildRoot:	%_tmppath/%name-%version
Source:		%{pkgname}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	perl-devel

%description
File::Slurp just reads and writes entire files with single commands.

%prep
%setup -q -n %{pkgname}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make
make test

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%makeinstall_std
find $RPM_BUILD_ROOT -name "perllocal.pod" | xargs -i rm -f {}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%{_mandir}/man3*/*
%{perl_vendorlib}/File/*.pm

%changelog
* Thu Aug 14 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 2002.1031-3mdk
- rebuild for new perl
- macroize
- drop $RPM_OPT_FLAGS, noarch..
- use %%makeinstall_std macro

* Fri Jul 18 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 2002.1031-2mdk
- buildrequires

* Thu Jun 26 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 2002.1031-1mdk
- Initial build.