%define pkgname Data-Dump # Basic Information Name: perl-%{pkgname} Version: 1.20 Release: 1%{?_dist_release} License: Artistic or GPL Group: Development/Libraries Source0: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/%{pkgname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root Vendor: Project Vine Distribution: Vine Linux Packager: yasumichi Summary: Pretty printing of data structures Summary(ja): データ構造のきれいな出力 # Dependency Requires: perl Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl %description This module provide a few functions that traverse their argument and produces a string as its result. The string contains Perl code that, when evaled, produces a deep copy of the original arguments. #%%description -l ja #ここに日本語で詳細を記述してください。 %prep %setup -q -n Data-Dump-1.20 %build perl Makefile.PL %{__make} %install %{__rm} -rf ${RPM_BUILD_ROOT} %{__make} install DESTDIR=${RPM_BUILD_ROOT} find $RPM_BUILD_ROOT%{_prefix} -type f -print | sed "s@^$RPM_BUILD_ROOT@@g" | grep -v ^%{_mandir} | grep -v perllocal.pod | grep -v "\.packlist" > %{name}.files if [ "$(cat %{name}.files)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi # remove unnecessary files. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Data/Dump/.packlist %clean %{__rm} -rf ${RPM_BUILD_ROOT} %files -f %{name}.files %defattr(-,root,root) %doc Changes README %dir %{perl_sitelib}/Data/Dump %{_mandir}/*/* %changelog * Mon Oct 10 2011 Yasumichi Akahoshi 1.20-1 - initial build for Vine Linux