]> git.pld-linux.org Git - packages/perl-Mail-IMAPClient.git/commitdiff
- use vendordirs, added tests (disabled - fail for me)
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 22 Oct 2003 12:09:46 +0000 (12:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Mail-IMAPClient.spec -> 1.3

perl-Mail-IMAPClient.spec

index d036c1d39352fa4580432be6fe4951da495e7ad6..abfe1fdef1b1e9000d771d2d2b0f57d54fcd99a3 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with    tests   # perform "make test" (currently fails?)
+#
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    Mail
 %define        pnam    IMAPClient
@@ -11,8 +15,8 @@ Group:                Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5: d8a02891cf82901a7c96e2b50ccc23bb
 URL:           http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.readme
-BuildRequires: rpm-perlprov
-BuildRequires: perl-devel
+BuildRequires: perl-devel >= 5.8
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,9 +32,13 @@ IMAP za pomoc
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-yes n | %{__perl} Makefile.PL
+yes n | %{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -43,6 +51,6 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc Changes README Todo
-%{perl_sitelib}/Mail/IMAPClient
-%{perl_sitelib}/Mail/IMAPClient.pm
+%{perl_vendorlib}/Mail/IMAPClient
+%{perl_vendorlib}/Mail/IMAPClient.pm
 %{_mandir}/man3/*
This page took 0.080915 seconds and 4 git commands to generate.