%define module File-ShareDir Name: perl-%{module} Version: 1.03 Release: 1ark Summary: Perl module for locating per-dist and per-module shared files URL: http://search.cpan.org/dist/%module Source: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/A/AD/ADAMK/%{module}-%version.tar.gz License: Perl (Artistic or GPL) Group: Development/Languages BuildRoot: %{_tmppath}/%{name}-root BuildArch: noarch BuildRequires: perl(Class::Inspector) %track prog %name = { url = http://search.cpan.org/dist/%module regex = "%module-(__VER__)" version = %version } %description Perl module for locating per-dist and per-module shared files %prep %setup -q -n %{module}-%version %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %?_smp_mflags make %?_smp_mflags test %install rm -rf $RPM_BUILD_ROOT make %?_smp_mflags install INSTALLDIRS=vendor DESTDIR="$RPM_BUILD_ROOT" %files %defattr(-,root,root) %doc Changes MANIFEST README %{perl_vendorlib}/File/* %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %changelog * Mon Feb 07 2011 Bernhard Rosenkraenzer <bero@arklinux.org> 1.03-1ark - initial RPM, needed for SDL_perl 2.5x