SPECS: perl.spec - updated rpmbuild macros for rm --interactive=never

glen glen at pld-linux.org
Fri Feb 8 14:14:06 CET 2008


Author: glen                         Date: Fri Feb  8 13:14:06 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated rpmbuild macros for rm --interactive=never

---- Files affected:
SPECS:
   perl.spec (1.373 -> 1.374) 

---- Diffs:

================================================================
Index: SPECS/perl.spec
diff -u SPECS/perl.spec:1.373 SPECS/perl.spec:1.374
--- SPECS/perl.spec:1.373	Fri Feb  8 13:44:36 2008
+++ SPECS/perl.spec	Fri Feb  8 14:14:00 2008
@@ -83,7 +83,7 @@
 %{?with_gdbm:BuildRequires:	gdbm-devel}
 # required for proper Provides generation (older are not supported by spec)
 BuildRequires:	rpm-build >= 4.3-0.20040107.4
-BuildRequires:	rpmbuild(macros) >= 1.310
+BuildRequires:	rpmbuild(macros) >= 1.424
 Requires:	%{name}-base = %{epoch}:%{version}-%{release}
 Requires:	%{name}-modules = %{epoch}:%{version}-%{release}
 Requires:	%{name}-doc-reference = %{epoch}:%{version}-%{release}
@@ -683,7 +683,7 @@
 ## {Scalar,List}::Util should be in perl_archlib (it's a bit tricky and should
 ## probably be done in %%prep, but then Configure would complain (->MANIFEST))
 mv ext/List/Util/lib/List/Util.pm ext/List/Util
-rm --interactive=never ext/List/Util/Makefile.PL
+%{__rm} ext/List/Util/Makefile.PL
 cat <<'EOF' > ext/List/Util/Makefile.PL
 use ExtUtils::MakeMaker;
 WriteMakefile(NAME=>"List::Util", VERSION_FROM=>"Util.pm", DEFINE=>"-DPERL_EXT");
@@ -703,7 +703,7 @@
 
 ## microperl
 %if %{with microperl}
-rm --interactive=never uconfig.h
+%{__rm} uconfig.h
 #chmod u+w uconfig.sh
 #echo "usemallocwrap='define'" >> uconfig.sh
 %{__make} -f Makefile.micro \
@@ -738,7 +738,7 @@
 %{__ln_s} -f psed		$RPM_BUILD_ROOT%{_bindir}/s2p
 
 ## Fix lib
-rm --interactive=never $RPM_BUILD_ROOT%{perl_archlib}/CORE/libperl.so
+%{__rm} $RPM_BUILD_ROOT%{perl_archlib}/CORE/libperl.so
 %{__ln_s} `%{__perl} -e '$_="'%{perl_archlib}/CORE/libperl.so.%{_abi}'";s|^'%{_libdir}'/*||;print'` \
 	$RPM_BUILD_ROOT%{_libdir}/libperl.so.%{_abi}
 %{__ln_s} libperl.so.%{_abi} $RPM_BUILD_ROOT%{_libdir}/libperl.so
@@ -771,7 +771,7 @@
 cd "$owd"
 
 ## remove man pages for other operating systems
-rm --interactive=never	$RPM_BUILD_ROOT%{_mandir}/man1/perl{aix,amiga,apollo,beos,bs2000,ce,cygwin,dgux,dos}* \
+%{__rm}	$RPM_BUILD_ROOT%{_mandir}/man1/perl{aix,amiga,apollo,beos,bs2000,ce,cygwin,dgux,dos}* \
 	$RPM_BUILD_ROOT%{_mandir}/man1/perl{freebsd,hpux,machten,macos,mpeix,os2,os390}* \
 	$RPM_BUILD_ROOT%{_mandir}/man1/perl{qnx,solaris,vmesa,vms,vos,win32}*
 
@@ -781,36 +781,36 @@
 echo ".so perl%(echo %{version} | tr -d .)delta.1" >$RPM_BUILD_ROOT%{_mandir}/man1/perldelta.1
 
 ## These File::Spec submodules are for non-Unix systems
-rm --interactive=never $RPM_BUILD_ROOT%{perl_privlib}/File/Spec/[EMOVW]*.pm
+%{__rm} $RPM_BUILD_ROOT%{perl_privlib}/File/Spec/[EMOVW]*.pm
 rm $RPM_BUILD_ROOT%{_mandir}/man3/File::Spec::{Epoc,Mac,OS2,VMS,Win32}.3perl*
 
 ## We already have these *.pod files as man pages
-rm --interactive=never $RPM_BUILD_ROOT%{perl_privlib}/{Encode,Test,Net,Locale{,/Maketext}}/*.pod
+%{__rm} $RPM_BUILD_ROOT%{perl_privlib}/{Encode,Test,Net,Locale{,/Maketext}}/*.pod
 rm $RPM_BUILD_ROOT%{perl_privlib}/pod/a2p.pod
-rm --interactive=never $RPM_BUILD_ROOT%{perl_privlib}/*.pod
-rm --interactive=never $RPM_BUILD_ROOT%{perl_archlib}/*.pod
+%{__rm} $RPM_BUILD_ROOT%{perl_privlib}/*.pod
+%{__rm} $RPM_BUILD_ROOT%{perl_archlib}/*.pod
 
 ## this object file looks unused; why is it there?
-rm --interactive=never $RPM_BUILD_ROOT%{perl_archlib}/CORE/sperl.o
+%{__rm} $RPM_BUILD_ROOT%{perl_archlib}/CORE/sperl.o
 
 install -d doc-base/{Getopt/Long,Switch} \
 	doc-devel/ExtUtils \
 	doc-modules/{Attribute/Handlers,Filter/Simple,I18N/LangTags,Locale/{Codes,Maketext},Memoize,NEXT,Net/Ping,Term/ANSIColor,Test/Simple,Text/{Balanced,TabsWrap},Unicode/Collate,unicore}
 
 # needed only for tests
-rm --interactive=never $RPM_BUILD_ROOT%{perl_privlib}/Unicode/Collate/keys.txt
+%{__rm} $RPM_BUILD_ROOT%{perl_privlib}/Unicode/Collate/keys.txt
 mv -f $RPM_BUILD_ROOT%{perl_privlib}/unicore/ReadMe.txt \
 	doc-modules/unicore
 # source for *.pl
-rm --interactive=never $RPM_BUILD_ROOT%{perl_privlib}/unicore/{*.txt,mktables}
+%{__rm} $RPM_BUILD_ROOT%{perl_privlib}/unicore/{*.txt,mktables}
 # cpan tools, we use rpm instead of cpan for managing packages (some search tool would be nice to have but...)
-rm --interactive=never $RPM_BUILD_ROOT%{_bindir}/cpan*
-rm --interactive=never $RPM_BUILD_ROOT%{_mandir}/man1/cpan*
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/cpan*
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/cpan*
 # others
-rm --interactive=never $RPM_BUILD_ROOT%{_bindir}/config_data
-rm --interactive=never $RPM_BUILD_ROOT%{_mandir}/man1/config_data*
-rm --interactive=never $RPM_BUILD_ROOT%{_mandir}/man3/XS::APItest*
-rm --interactive=never $RPM_BUILD_ROOT%{_mandir}/man3/XS::Typemap*
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/config_data
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/config_data*
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/XS::APItest*
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/XS::Typemap*
 
 ## dir tree for other perl modules
 install -d $RPM_BUILD_ROOT{%{perl_vendorlib},%{perl_vendorarch},%{perl_vendorarch}/auto}
@@ -1442,6 +1442,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.374  2008-02-08 13:14:00  glen
+- updated rpmbuild macros for rm --interactive=never
+
 Revision 1.373  2008-02-08 12:44:36  arekm
 - rel 2
 
================================================================

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



More information about the pld-cvs-commit mailing list