[totem] Remove duplicated code in %install

Christophe Fergeau teuf at fedoraproject.org
Thu Oct 23 08:42:05 UTC 2014


commit 3e80ce0ab2e246fd300f590abe097d4350a4987c
Author: Christophe Fergeau <cfergeau at redhat.com>
Date:   Thu Oct 9 16:48:45 2014 +0200

    Remove duplicated code in %install
    
    .la files are removed twice in different ways, and %find_lang %{name}
    --with-gnome  is called twice too.
    There are no .a files generated during the build. so we don't need to
    make sure we clean them up as was done by the removed code.

 totem.spec |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/totem.spec b/totem.spec
index a8ae7a8..0b0d609 100644
--- a/totem.spec
+++ b/totem.spec
@@ -143,15 +143,6 @@ make %{?_smp_mflags}
 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
 %find_lang %{name} --with-gnome
 
-rm -rf $RPM_BUILD_ROOT%{_libdir}/totem/plugins/*/*.{a,la} \
- $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.{a,la} \
- $RPM_BUILD_ROOT%{_libdir}/libbaconvideowidget*.{a,la} \
- $RPM_BUILD_ROOT%{_libdir}/libbaconvideowidget.so \
- $RPM_BUILD_ROOT%{_libdir}/totem/plugins/bemused/ \
- $RPM_BUILD_ROOT%{_libdir}/totem/plugins/mythtv/
-
-%find_lang %{name} --with-gnome
-
 #nuke the .la file(s)
 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 


More information about the scm-commits mailing list