SPECS (DEVEL): perl-MIME-Lite.spec - moved to DEVEL as it requires perl-Ema...

gotar gotar at pld-linux.org
Thu Jul 24 15:14:23 CEST 2008


Author: gotar                        Date: Thu Jul 24 13:14:23 2008 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- moved to DEVEL as it requires perl-Email-Date-Format instead of perl-Email-Date now
- conditional (with tests) BR: perl-Email-Date-Format
- moved examples to %_examplesdir, added contrib, removed changes.pod
- made it build non-interactive

---- Files affected:
SPECS:
   perl-MIME-Lite.spec (1.44 -> 1.44.2.1) 

---- Diffs:

================================================================
Index: SPECS/perl-MIME-Lite.spec
diff -u SPECS/perl-MIME-Lite.spec:1.44 SPECS/perl-MIME-Lite.spec:1.44.2.1
--- SPECS/perl-MIME-Lite.spec:1.44	Thu Jul 24 13:29:52 2008
+++ SPECS/perl-MIME-Lite.spec	Thu Jul 24 15:14:17 2008
@@ -16,9 +16,10 @@
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	7b3f4b9b3f8a0023dbc62859ef9a775f
-BuildRequires:	rpm-perlprov >= 4.1-13
 BuildRequires:	perl-devel >= 1:5.8.0
+%{?with_tests:BuildRequires:	perl-Email-Date-Format}
 BuildRequires:	perl-libnet
+BuildRequires:	rpm-perlprov >= 4.1-13
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -34,24 +35,32 @@
 
 %build
 %{__perl} Makefile.PL \
-	INSTALLDIRS=vendor
+	INSTALLDIRS=vendor << END
+no
+END
 %{__make}
 
 %{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
+install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+
+# package it or not?
+rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/MIME/changes.pod
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README examples
+%doc README contrib
 %{perl_vendorlib}/MIME/Lite.pm
+%{_examplesdir}/%{name}
 %{_mandir}/man3/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -60,6 +69,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.44.2.1  2008/07/24 13:14:17  gotar
+- moved to DEVEL as it requires perl-Email-Date-Format instead of perl-Email-Date now
+- conditional (with tests) BR: perl-Email-Date-Format
+- moved examples to %_examplesdir, added contrib, removed changes.pod
+- made it build non-interactive
+
 Revision 1.44  2008/07/24 11:29:52  gotar
 - up to 3.021 (fixed SMTP AUTH: http://www.perlmonks.org/?node_id=681884)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/perl-MIME-Lite.spec?r1=1.44&r2=1.44.2.1&f=u



More information about the pld-cvs-commit mailing list