# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Email %define pnam FolderType Summary: Email::FolderType - return type of a mail folder Summary(pl): Email::FolderType - sprawdzenie rodzaju folderu pocztowego Name: perl-Email-FolderType Version: 0.6 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 54a74b1fd8f5bfedabc82808c1fa7502 BuildRequires: perl-devel >= 5.6 BuildRequires: rpm-perlprov >= 4.1-13 %if %{!?_without_tests:1}0 BuildRequires: perl-Test-Simple %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Provides a utility module for detecting the type of a given mail box. %description -l pl Jest to moduł narzędziowy do wykrywania rodzaju podanej skrzynki pocztowej. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{!?_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 %{perl_vendorlib}/%{pdir}/*.pm %{_mandir}/man3/*