%define pkgname Module-Find # Basic Information Name: perl-%{pkgname} Version: 0.10 Release: 1%{?_dist_release} License: Artistic or GPL Group: Development/Libraries Source0: http://search.cpan.org/CPAN/authors/id/C/CR/CRENZ/%{pkgname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root Vendor: Project Vine Distribution: Vine Linux Packager: yasumichi Summary: Find and use installed modules in a (sub)category Summary(ja): (サブ)カテゴリー内にインストールされたモジュールを見つけて利用する # Dependency Requires: perl Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl %description Module::Find lets you find and use modules in categories. This can be very useful for auto-detecting driver or plugin modules. You can differentiate between looking in the category itself or in all subcategories. If you want Module::Find to search in a certain directory on your harddisk (such as the plugins directory of your software installation), make sure you modify @INC before you call the Module::Find functions. #%%description -l ja #ここに日本語で詳細を記述してください。 %prep %setup -q -n Module-Find-0.10 %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/Module/Find/.packlist %clean %{__rm} -rf ${RPM_BUILD_ROOT} %files -f %{name}.files %defattr(-,root,root) %doc Changes README %{_mandir}/*/* %changelog * Mon Oct 10 2011 Yasumichi Akahoshi 0.10-1 - initial build for Vine Linux