SPECS: mplayer.spec - multiarch support
sparky
sparky at pld-linux.org
Fri Apr 21 11:13:29 CEST 2006
Author: sparky Date: Fri Apr 21 09:13:29 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- multiarch support
---- Files affected:
SPECS:
mplayer.spec (1.323 -> 1.324)
---- Diffs:
================================================================
Index: SPECS/mplayer.spec
diff -u SPECS/mplayer.spec:1.323 SPECS/mplayer.spec:1.324
--- SPECS/mplayer.spec:1.323 Mon Mar 20 14:05:02 2006
+++ SPECS/mplayer.spec Fri Apr 21 11:13:23 2006
@@ -58,6 +58,13 @@
%ifarch %{x8664}
%undefine with_runtime
%endif
+
+%if %{_lib} == "lib64"
+%define _suf 64
+%else
+%define _suf 32
+%endif
+
# set it to 0, or 1
%define snapshot 0
@@ -450,11 +457,14 @@
# executables
%if %{with mencoder}
-install mencoder $RPM_BUILD_ROOT%{_bindir}
+install mencoder $RPM_BUILD_ROOT%{_bindir}/mencoder%{_suf}
+ln -sf mencoder%{_suf} $RPM_BUILD_ROOT%{_bindir}/mencoder
%endif
-install mplayer $RPM_BUILD_ROOT%{_bindir}
+install mplayer $RPM_BUILD_ROOT%{_bindir}/mplayer%{_suf}
+ln -sf mplayer%{_suf} $RPM_BUILD_ROOT%{_bindir}/mplayer
%if %{with gui}
-install gmplayer $RPM_BUILD_ROOT%{_bindir}
+install gmplayer $RPM_BUILD_ROOT%{_bindir}/gmplayer%{_suf}
+ln -sf gmplayer%{_suf} $RPM_BUILD_ROOT%{_bindir}/gmplayer
%endif
# fonts
@@ -506,12 +516,12 @@
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/mplayer
+%attr(755,root,root) %{_bindir}/mplayer*
%if %{with gui}
%files -n gmplayer
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/gmplayer
+%attr(755,root,root) %{_bindir}/gmplayer*
%{_desktopdir}/gmplayer.desktop
%dir %{_datadir}/%{name}/Skin
%ghost %{_datadir}/%{name}/Skin/default
@@ -521,7 +531,7 @@
%defattr(644,root,root,755)
%doc DOCS/tech/encoding-tips.txt DOCS/tech/swscaler_filters.txt
%doc DOCS/tech/swscaler_methods.txt DOCS/tech/colorspaces.txt
-%attr(755,root,root) %{_bindir}/mencoder
+%attr(755,root,root) %{_bindir}/mencoder*
%files common
%defattr(644,root,root,755)
@@ -572,6 +582,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.324 2006/04/21 09:13:23 sparky
+- multiarch support
+
Revision 1.323 2006/03/20 13:05:02 wiget
- more xorg-lib\* BRs
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/mplayer.spec?r1=1.323&r2=1.324&f=u
More information about the pld-cvs-commit
mailing list