SPECS: GoogleEarth.spec - pl desc, hardcode GOOGLEEARTH_DATA_PATH ...

gotar gotar at pld-linux.org
Thu Jun 15 03:05:39 CEST 2006


Author: gotar                        Date: Thu Jun 15 01:05:39 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- pl desc, hardcode GOOGLEEARTH_DATA_PATH into start script, install all
  the libraries (without them it sig11s)

---- Files affected:
SPECS:
   GoogleEarth.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/GoogleEarth.spec
diff -u SPECS/GoogleEarth.spec:1.2 SPECS/GoogleEarth.spec:1.3
--- SPECS/GoogleEarth.spec:1.2	Wed Jun 14 12:17:08 2006
+++ SPECS/GoogleEarth.spec	Thu Jun 15 03:05:33 2006
@@ -5,6 +5,7 @@
 # - mark national resources as lang
 #
 Summary:	Google Earth - 3D planet viewer
+Summary(pl):	Google Earth - globus
 Name:		GoogleEarth
 Version:	4
 Release:	0.5
@@ -25,7 +26,15 @@
 %define		_google_data_path	%{_libdir}/%{name}
 
 %description
-Google Earth puts a planet's worth of imagery and other geographic information right on your desktop. View exotic locales like Maui and Paris as well as points of interest such as local restaurants, hospitals, schools, and more.
+Google Earth puts a planet's worth of imagery and other geographic
+information right on your desktop. View exotic locales like Maui and
+Paris as well as points of interest such as local restaurants,
+hospitals, schools, and more.
+
+%description -l pl
+Google Earth pokazuje obrazy Ziemii oraz informacje geograficzne. Można
+obejrzeć tak egzotyczne lokalizacje jak Maui czy Paryż, jak również
+miejsca typu restauracje, szpitale, szkoły i inne.
 
 %prep
 %setup -q -T -c
@@ -38,16 +47,13 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/env.d,%{_bindir},%{_google_data_path}} \
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_google_data_path}} \
 	$RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
 #install -d $RPM_BUILD_ROOT{%{jredir},%{_javadir},%{_includedir}} \
-#	$RPM_BUILD_ROOT{%{_mandir}/{,ja/}man1,/etc/env.d,%{_prefix}/src/%{name}-sources} \
+#	$RPM_BUILD_ROOT{%{_mandir}/{,ja/}man1,%{_prefix}/src/%{name}-sources} \
 
-install bin/googleearth $RPM_BUILD_ROOT%{_bindir}
-
-cat << EOF > $RPM_BUILD_ROOT/etc/env.d/GOOGLEEARTH_DATA_PATH
-GOOGLEEARTH_DATA_PATH="%{_google_data_path}"
-EOF
+sed '/FindPath()/aGOOGLEEARTH_DATA_PATH="/usr/lib/GoogleEarth"
+5,40d' bin/googleearth > $RPM_BUILD_ROOT%{_bindir}/googleearth
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 install googleearth-icon.png $RPM_BUILD_ROOT%{_pixmapsdir}
@@ -57,9 +63,14 @@
 install *.ini $RPM_BUILD_ROOT%{_google_data_path}
 
 # Some libraries:
-install libcomponent.so libfusion.so libgeobase.so libmath.so \
-	libwmsbase.so libnet.so libcollada.so libbase.so libgoogleearth.so \
-	$RPM_BUILD_ROOT%{_google_data_path}
+#install libcomponent.so libfusion.so libgeobase.so libmath.so \
+#	libwmsbase.so libnet.so libcollada.so libbase.so libgoogleearth.so \
+#	$RPM_BUILD_ROOT%{_google_data_path}
+#install lib{IGAttrs,IGCollision,IGCore,IGDisplay,IGExportCommon,IGGfx,IGGui,IGMath,IGOpt,IGSg,IGUtils,auth,common,framework,render,evll}.so \
+#	lib{navigate,layer,measure,gps,basicIngest,googlesearch}.so \
+#	$RPM_BUILD_ROOT%{_google_data_path}
+#install lib{freeimage.so.3,{crypto,ssl}.so.0.9.8} $RPM_BUILD_ROOT%{_libdir}
+install lib* $RPM_BUILD_ROOT%{_google_data_path}
 
 cp -R kvw xml lang res resources $RPM_BUILD_ROOT%{_google_data_path}
 
@@ -69,12 +80,11 @@
 %files
 %defattr(644,root,root,755)
 %doc EULA-*
-%attr(644,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
 %attr(755,root,root) %{_bindir}/*
 %dir %{_google_data_path}
 %{_google_data_path}/*.ini
 %attr(755,root,root) %{_google_data_path}/googleearth-bin
-%attr(755,root,root) %{_google_data_path}/*.so
+%attr(755,root,root) %{_google_data_path}/*.so*
 %dir %{_google_data_path}/kvw
 %{_google_data_path}/kvw/*.kvw
 %dir %{_google_data_path}/lang
@@ -113,9 +123,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2006/06/15 01:05:33  gotar
+- pl desc, hardcode GOOGLEEARTH_DATA_PATH into start script, install all
+  the libraries (without them it sig11s)
+
 Revision 1.2  2006/06/14 10:17:08  blues
 - if NoSource then NoSource-md5
 
 Revision 1.1  2006/06/14 10:12:37  blues
 - initial release. not tested
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/GoogleEarth.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list