Author: glen                         Date: Fri Sep 17 11:29:02 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 5.0.8888, add desktop file

---- Files affected:
packages/teamviewer:
   teamviewer.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/teamviewer/teamviewer.spec
diff -u packages/teamviewer/teamviewer.spec:1.2 
packages/teamviewer/teamviewer.spec:1.3
--- packages/teamviewer/teamviewer.spec:1.2     Fri Jul  9 12:24:30 2010
+++ packages/teamviewer/teamviewer.spec Fri Sep 17 13:28:56 2010
@@ -1,17 +1,20 @@
 # $Revision$, $Date$
 # TODO
-# - use system wine
-# - desktop file
+# - use system wine (bundles unmodified wine 1.1.41)
+%define                buildid 8888
+%define                rel             0.1
 Summary:       TeamViewer Remote Control Application
 Name:          teamviewer
 Version:       5.0
-Release:       0.3
+Release:       %{buildid}.%{rel}
 License:       Proprietary; includes substantial Free Software components, 
notably the Wine Project.
 Group:         Applications/Networking
 Source0:       http://www.teamviewer.com/download/%{name}_linux.tar.gz
-# NoSource0-md5:       2ff6ec6410f61b8f5d96d2057d00f886
+# NoSource0-md5:       10ba96fd81ac520f66c0f52cf70836a0
 NoSource:      0
 Source1:       %{name}.sh
+Source2:       %{name}.desktop
+Source3:       %{name}.png
 ExclusiveArch: %{ix86}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -32,20 +35,30 @@
 %setup -q -n %{name}5
 install -p %{SOURCE1} teamviewer
 
+ver=$(strings ".wine/drive_c/Program Files/TeamViewer/Version5/TeamViewer.exe" 
| grep %{version}.%{buildid})
+if [ -z "$ver" ]; then
+       exit 1
+fi
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir}}
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_desktopdir},%{_pixmapsdir}}
 cp -a .wine teamviewer $RPM_BUILD_ROOT%{_appdir}
 ln -s %{_appdir}/teamviewer $RPM_BUILD_ROOT%{_bindir}
+cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
+cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc license_teamviewer_en.txt copyrights_en.txt license_foss.txt
-%doc %lang(de) copyrights_de.txt linux_faq_de.txt
+%doc license_foss.txt
+%doc %lang(de) *_DE.txt
+%doc %lang(en) *_EN.txt
 %attr(755,root,root) %{_bindir}/teamviewer
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.png
 %dir %{_appdir}
 %attr(755,root,root) %{_appdir}/teamviewer
 # XXX: temp & ugly, until system wine works
@@ -59,6 +72,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2010/09/17 11:28:56  glen
+- up to 5.0.8888, add desktop file
+
 Revision 1.2  2010/07/09 10:24:30  glen
 - supply working wrapper
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/teamviewer/teamviewer.spec?r1=1.2&r2=1.3&f=u

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

Reply via email to