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.
This commit is contained in:
Christophe Fergeau 2014-10-09 16:48:45 +02:00
parent c6efbc64f5
commit 3e80ce0ab2

View File

@ -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 {} ';'