Author: sparky                       Date: Thu Nov 19 16:37:39 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- build by default with -fvisibility=hidden (reduces number of symbols from
  ~5000 to ~1000)
- fixed build with shared

---- Files affected:
packages/mplayer:
   mplayer.spec (1.426 -> 1.427) 

---- Diffs:

================================================================
Index: packages/mplayer/mplayer.spec
diff -u packages/mplayer/mplayer.spec:1.426 packages/mplayer/mplayer.spec:1.427
--- packages/mplayer/mplayer.spec:1.426 Thu Nov 19 00:57:42 2009
+++ packages/mplayer/mplayer.spec       Thu Nov 19 17:37:33 2009
@@ -73,7 +73,7 @@
 
 %define                subver  rc4
 %define                svnver  29930
-%define                rel     0.1
+%define                rel     0.4
 
 Summary:       MPlayer - THE Movie Player for UN*X
 Summary(de.UTF-8):     MPlayer ist ein unter der freien GPL-Lizenz stehender 
Media-Player
@@ -108,10 +108,10 @@
 Patch10:       %{name}-ldflags.patch
 Patch11:       %{name}-altivec.patch
 Patch12:       %{name}-check-byteswap.patch
-Patch13:       %{name}-ffmpeg.patch
-Patch14:       %{name}-shared_live.patch
-# TODO
-Patch15:       %{name}-shared.patch
+Patch13:       %{name}-visibility-hidden-fix.patch
+Patch14:       %{name}-ffmpeg.patch
+Patch15:       %{name}-shared_live.patch
+Patch16:       %{name}-shared.patch
 
 # codecs, outputs, demuxers:
 Patch20:       %{name}-auto-expand.patch
@@ -318,9 +318,10 @@
 %patch10 -p1
 %patch11 -p1
 %patch12 -p1
-%{?with_system_ffmpeg:%patch13 -p1}
-%{?with_live:%patch14 -p1}
-%{?with_shared:%patch15 -p1}
+%patch13 -p1
+%{?with_system_ffmpeg:%patch14 -p1}
+%{?with_live:%patch15 -p1}
+%{?with_shared:%patch16 -p1}
 
 # codecs, outputs, demuxers:
 %patch20 -p1
@@ -360,7 +361,7 @@
 sed 's/STREAM_NONCACHEABLE/STREAM_NON_CACHEABLE/' -i stream/stream_live555.c
 
 %build
-CFLAGS="%{rpmcflags} %{?with_shared:-fPIC}"
+CFLAGS="%{rpmcflags} -fvisibility=hidden %{?with_shared:-fvisibility=default 
-fPIC}"
 CFLAGS="$CFLAGS 
-I%{_includedir}/xvid%{?with_directfb::%{_includedir}/directfb}"
 %{?with_live:CFLAGS="$CFLAGS -I/usr/include/liveMedia"}
 
@@ -501,6 +502,11 @@
 ln -sf gmplayer%{_suf} $RPM_BUILD_ROOT%{_bindir}/gmplayer
 %endif
 
+%if %{with shared}
+install -d $RPM_BUILD_ROOT%{_libdir}
+install libmplayer.so $RPM_BUILD_ROOT%{_libdir}
+%endif
+
 # fonts
 cp -r font-* $RPM_BUILD_ROOT%{_datadir}/mplayer
 ln -sf font-arial-iso-8859-2/font-arial-24-iso-8859-2 
$RPM_BUILD_ROOT%{_datadir}/mplayer/font
@@ -558,6 +564,7 @@
 %files common
 %defattr(644,root,root,755)
 %doc DOCS/tech
+%{?with_shared:%attr(755,root,root) %{_libdir}/libmplayer.so}
 %if %{with win32}
 %doc etc/codecs.win32.conf
 %endif
@@ -600,6 +607,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.427  2009/11/19 16:37:33  sparky
+- build by default with -fvisibility=hidden (reduces number of symbols from
+  ~5000 to ~1000)
+- fixed build with shared
+
 Revision 1.426  2009/11/18 23:57:42  sparky
 - added ldflags patch; use --real-ldflags
 - (re)organized patches
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mplayer/mplayer.spec?r1=1.426&r2=1.427&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to