# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir - %define pnam - Summary: - Summary(de): - Summary(es): - Summary(fr): - Summary(pl): - Summary(ru): - Name: perl- Version: - Release: - Epoch: - License: (enter GPL/LGPL/BSD/BSD-like/Artistic/other license name here) Group: Development/Languages/Perl Icon: - Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz Patch0: %{name} URL: - BuildRequires: perl-devel >= 5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: - Requires: - Prereq: - Provides: - Obsoletes: - BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautoreq "perl(anything_fake_or_conditional)" %description %description -l de %description -l es %description -l fr %description -l pl %description -l ru %prep %setup -q -n %{pdir}-%{pnam}-%{version} %patch0 -p1 %build # Don't use pipes here: they generally don't work. Apply a patch. %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} # if module isn't noarch, use: # %{__make} \ # OPTIMIZE="%{rpmcflags}" %{!?_without_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README # use macros: #%%{perl_vendorlib}/... #%%{perl_vendorarch}/... %{_mandir}/man3/*