SPECS: helixplayer.spec - builds and packages on ac

glen glen at pld-linux.org
Thu Jan 3 23:33:27 CET 2008


Author: glen                         Date: Thu Jan  3 22:33:27 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- builds and packages on ac

---- Files affected:
SPECS:
   helixplayer.spec (1.29 -> 1.30) 

---- Diffs:

================================================================
Index: SPECS/helixplayer.spec
diff -u SPECS/helixplayer.spec:1.29 SPECS/helixplayer.spec:1.30
--- SPECS/helixplayer.spec:1.29	Thu Jan  3 22:28:27 2008
+++ SPECS/helixplayer.spec	Thu Jan  3 23:33:21 2008
@@ -15,6 +15,8 @@
 Patch0:		%{name}-system-libs.patch
 Patch1:		%{name}-desktop.patch
 Patch2:		%{name}-cflags.patch
+Patch3:		%{name}-sem_t.patch
+Patch4:		%{name}-bzip2.patch
 URL:		https://player.helixcommunity.org/
 BuildRequires:	gtk+2-devel >= 2.0.0
 BuildRequires:	libogg-devel
@@ -61,12 +63,16 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 # expat is modified (based on mozilla?)
 # libjpeg is compiled with different config (BGRx instead of RGB)
 # so only these can be replaced by system ones
 #rm -rf common/import/{bzip2,zlib} datatype/image/png/import/libpng
 
+#mkdir -p common/import/bzip2/rel/bzip2
+#ln -s common/import/bzip2/rel/bzip2
 
 # duplicate. just avoid confusion and remove it
 rm build/BIF/build.bif
@@ -111,25 +117,31 @@
 	-P helix-client-all-defines-free \
 	-p green -v -n \
 	%{!?debug:-t release} \
-	player_gtk player_plugin
+	player_all
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_pixmapsdir},%{_desktopdir},%{_bindir}}
+install -d $RPM_BUILD_ROOT{%{_libdir}/%{name}/share,%{_pixmapsdir},%{_desktopdir},%{_bindir}}
 
-cp -a player/installer/archive/temp/* $RPM_BUILD_ROOT%{_libdir}/%{name}
-rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/Bin
-rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/postinst
+cp -a player/installer/archive/temp/{codecs,common,lib,plugins} $RPM_BUILD_ROOT%{_libdir}/%{name}
+install player/installer/archive/temp/hxplay.bin $RPM_BUILD_ROOT%{_libdir}/%{name}
+cp -a player/installer/archive/temp/share/locale $RPM_BUILD_ROOT%{_datadir}
+cp -a player/installer/archive/temp/share/{default,icons,hxplay*,*.css} $RPM_BUILD_ROOT%{_libdir}/%{name}/share
 install player/installer/common/hxplay.desktop $RPM_BUILD_ROOT%{_desktopdir}
 install player/app/gtk/res/hxplay.png $RPM_BUILD_ROOT%{_pixmapsdir}
 
 install -d $RPM_BUILD_ROOT%{_browserpluginsdir}
-mv $RPM_BUILD_ROOT{%{_libdir}/%{name}/mozilla,%{_browserpluginsdir}}/nphelix.so
-mv $RPM_BUILD_ROOT{%{_libdir}/%{name}/mozilla,%{_browserpluginsdir}}/nphelix.xpt
+cp -a release/nphelix.* $RPM_BUILD_ROOT%{_browserpluginsdir}
 
-sed -i -e "s,#[ \t]*HELIX_LIBS[ \t]*=.*,HELIX_LIBS=%{_libdir}/%{name}; export HELIX_LIBS," $RPM_BUILD_ROOT%{_libdir}/%{name}/hxplay
+sed -e "s,#[ \t]*HELIX_LIBS[ \t]*=.*,HELIX_LIBS=%{_libdir}/%{name}; export HELIX_LIBS," \
+	player/installer/archive/temp/hxplay > $RPM_BUILD_ROOT%{_libdir}/%{name}/hxplay
+chmod a+rx $RPM_BUILD_ROOT%{_libdir}/%{name}/hxplay
 ln -sf %{_libdir}/%{name}/hxplay $RPM_BUILD_ROOT%{_bindir}/hxplay
 
+%find_lang player
+%find_lang widget
+cat player.lang widget.lang > %{name}.lang
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -141,7 +153,7 @@
 	%update_browser_plugins
 fi
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/hxplay
 %dir %{_libdir}/%{name}
@@ -153,8 +165,6 @@
 %dir %{_libdir}/%{name}/plugins
 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so
 %{_libdir}/%{name}/share
-%{_libdir}/%{name}/README
-%{_libdir}/%{name}/LICENSE
 %{_desktopdir}/hxplay.desktop
 %{_pixmapsdir}/hxplay.png
 
@@ -169,6 +179,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.30  2008-01-03 22:33:21  glen
+- builds and packages on ac
+
 Revision 1.29  2008-01-03 21:28:27  glen
 - start update to 1.0.9, troubles building it
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/helixplayer.spec?r1=1.29&r2=1.30&f=u



More information about the pld-cvs-commit mailing list