SPECS: perl-Mozilla-LDAP.spec - use sed to edit files, and do that...

glen glen at pld-linux.org
Wed Sep 6 22:59:45 CEST 2006


Author: glen                         Date: Wed Sep  6 20:59:45 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use sed to edit files, and do that in prep
- check-files cleanup, adapter

---- Files affected:
SPECS:
   perl-Mozilla-LDAP.spec (1.29 -> 1.30) 

---- Diffs:

================================================================
Index: SPECS/perl-Mozilla-LDAP.spec
diff -u SPECS/perl-Mozilla-LDAP.spec:1.29 SPECS/perl-Mozilla-LDAP.spec:1.30
--- SPECS/perl-Mozilla-LDAP.spec:1.29	Wed Sep  6 22:35:00 2006
+++ SPECS/perl-Mozilla-LDAP.spec	Wed Sep  6 22:59:40 2006
@@ -17,6 +17,7 @@
 BuildRequires:	mozldap-devel >= 5.17
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRequires:	sed >= 4.0
 Requires:	mozldap >= 5.17
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -37,13 +38,15 @@
 %prep
 %setup -q -n perldap-%{version}
 
-%{__perl} -pi -e 's@"lib"@"%{_lib}"@' Makefile.PL
+%{__sed} -i -e 's@"lib"@"%{_lib}"@' Makefile.PL
+%{__sed} -i -e 's|/usr/bin/perl5|%{__perl}|' examples/*.pl
+rm -rf examples/CVS
 
 %build
 %{__perl} Makefile.PL \
 	INSTALLDIRS=vendor \
 	<<EOF
-/usr
+%{_prefix}
 yes
 yes
 -lldap50 -lssldap50 -lprldap50 -lssl3 -lpthread
@@ -60,11 +63,12 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-%{__perl} -pi -e 's|/usr/bin/perl5|%{__perl}|' examples/*.pl
-rm -rf examples/CVS
 install -d $RPM_BUILD_ROOT%{_examplesdir}
 cp -r examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
+rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Mozilla/LDAP/API/.packlist
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -87,6 +91,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.30  2006/09/06 20:59:40  glen
+- use sed to edit files, and do that in prep
+- check-files cleanup, adapter
+
 Revision 1.29  2006/09/06 20:35:00  glen
 - rel 12
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/perl-Mozilla-LDAP.spec?r1=1.29&r2=1.30&f=u



More information about the pld-cvs-commit mailing list