secondlife-vl.spec 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. Summary: Second Life client
  2. Summary(ja): セカンドライフ クライアント
  3. Name: secondlife
  4. Version: 1.18.0.6
  5. Release: 0vl2
  6. Group: Applications/Games
  7. License: GPL
  8. URL: http://secondlife.com/
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. Source0: http://secondlife.com/developers/opensource/downloads/2007/07/slviewer-src-%{version}.tar.gz
  11. Source1: http://secondlife.com/developers/opensource/downloads/2007/07/slviewer-artwork-%{version}.zip
  12. Source2: secondlife.png
  13. Source3: lindenlab-secondlife.desktop
  14. Source4: secondlife.sh
  15. Source5: secondlife.sysconfig
  16. #Source10: slviewer-1.17.1.0-png-support-missing-files.tar.bz2
  17. # Build fixes
  18. Patch1: slviewer-1.17.3.0-fix-buildsystem.patch
  19. Patch3: slviewer-1.13.3.57837-systempaths.patch
  20. Patch6: slviewer-1.14.0.1-no-crash-reports.patch
  21. Patch7: slviewer-1.14.0.1-fonts.patch
  22. Patch8: slviewer-1.14.0.1-llfasttimer-no-asm.patch
  23. Patch9: slviewer-1.16.0.5-no-updater.patch
  24. Patch10: slviewer-1.14.0.1-gnome-open.patch
  25. Patch11: slviewer-1.17.3.0-llstatusbar-extra-qualification.patch
  26. Patch12: slviewer-1.17.1.0-no-Werror.patch
  27. Patch13: slviewer-1.17.3.0-no-llresolv6.patch
  28. # Bug fixes
  29. Patch100: slviewer-1.17.1.0-linked_list.patch
  30. Patch102: slviewer-1.17.2.0-fix-AllowIdleAFK.patch
  31. Patch103: slviewer-1.17.3.0-VWR-1475.patch
  32. Patch105: VWR-1465-hires_snapshot_crash_v3.patch
  33. Patch106: slviewer-1.17.0.12-fix-mismatched-delete.patch
  34. Patch107: slviewer-1.18.0.6-VWR-1354_lldrawpool_crash_V2.patch
  35. # Enhancements
  36. Patch200: slviewer-1.17.2.0-no-evil.patch
  37. Patch201: slviewer-1.17.3.0-openal.patch
  38. Patch210: slviewer-1.16.0.5-new-gpu.patch
  39. BuildRequires: scons
  40. BuildRequires: bison
  41. BuildRequires: flex
  42. BuildRequires: SDL-devel
  43. BuildRequires: gtk2-devel
  44. BuildRequires: libjpeg-devel
  45. BuildRequires: openjpeg-devel >= 1.2
  46. BuildRequires: libvorbis-devel
  47. BuildRequires: libogg-devel
  48. BuildRequires: apr-util-devel
  49. BuildRequires: libboost-devel
  50. BuildRequires: curl-devel
  51. BuildRequires: xmlrpc-epi-devel
  52. BuildRequires: openldap-devel
  53. BuildRequires: openal-devel >= 1:0.0.8
  54. BuildRequires: freealut-devel
  55. BuildRequires: elfio
  56. BuildRequires: desktop-file-utils
  57. #BuildRequires: gcc3-c++ = 3.3.6
  58. ExclusiveArch: i686 x86_64
  59. %description
  60. The Second Life client for Linux, currently in alpha testing.
  61. %prep
  62. %setup -q -b 1 -n linden
  63. # Build fixes
  64. %patch1 -p1 -b .buildfix
  65. %patch3 -p1 -b .systempath
  66. %patch6 -p1 -b .no-crash-reports
  67. %patch7 -p1 -b .fonts
  68. %patch8 -p1 -b .llfasttimer-no-asm
  69. %patch9 -p1 -b .no-updater
  70. %patch10 -p1 -b .gnome-open
  71. %patch11 -p1 -b .llstatusbar-extra-qualification
  72. %patch12 -p1 -b .no-Werror
  73. %patch13 -p1 -b .no-llresolv6
  74. # Bugfixes
  75. %patch100 -p1 -b .linked_list
  76. %patch102 -p1 -b .allowidleafk
  77. %patch103 -p1 -b .vwr-1475
  78. %patch105 -p1 -b .vwr-1465
  79. %patch106 -p1 -b .fix-mismatched-delete
  80. %patch107 -p1 -b .vwr-1354
  81. # Enhancements
  82. %patch200 -p1 -b .no-evil
  83. %patch201 -p1 -b .openal
  84. %patch210 -p1 -b .new-gpu
  85. sed -i 's/g++-3.4/g++/g' indra/SConstruct
  86. %build
  87. pushd indra
  88. scons BUILD=release BTARGET=client MOZLIB=no FMOD=no DISTCC=no CXX=g++ ARCH=%{_target_cpu} %{?_smp_mflags}
  89. popd
  90. %install
  91. rm -rf %{buildroot}
  92. install -D -p -m 755 indra/newview/secondlife-%{_target_cpu}-bin-globalsyms \
  93. %{buildroot}%{_bindir}/secondlife.bin
  94. install -m 755 %{SOURCE4} %{buildroot}%{_bindir}/secondlife
  95. install -d %{buildroot}%{_datadir}/secondlife
  96. pushd indra/newview
  97. cp -pr app_settings \
  98. character \
  99. res-sdl \
  100. skins \
  101. featuretable.txt \
  102. featuretable_linux.txt \
  103. gpu_table.txt \
  104. %{buildroot}%{_datadir}/secondlife/
  105. popd
  106. install -d %{buildroot}%{_libdir}/secondlife
  107. install -m755 indra/lib_release_client/%{_target_cpu}-linux/*.so %{buildroot}%{_libdir}/secondlife
  108. install -d %{buildroot}%{_sysconfdir}/sysconfig
  109. install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysconfig/secondlife
  110. # Make rpmlint stop complaining
  111. find %{buildroot}%{_datadir}/secondlife/skins/ -type f|xargs chmod 644
  112. install -p -m 644 scripts/messages/message_template.msg %{buildroot}%{_datadir}/secondlife/app_settings/
  113. mkdir -p %{buildroot}%{_datadir}/secondlife/fonts
  114. ln -s /usr/X11R6/lib/X11/fonts/TTF/Vera.ttf \
  115. %{buildroot}%{_datadir}/secondlife/fonts/sans.ttf
  116. ln -s /usr/X11R6/lib/X11/fonts/TTF/VeraBd.ttf \
  117. %{buildroot}%{_datadir}/secondlife/fonts/sansbold.ttf
  118. ln -s /usr/X11R6/lib/X11/fonts/TTF/VeraMono.ttf \
  119. %{buildroot}%{_datadir}/secondlife/fonts/mono.ttf
  120. ln -s /usr/X11R6/lib/X11/fonts/TrueType/VL-PGothic-Regular.ttf \
  121. %{buildroot}%{_datadir}/secondlife/fonts/unicode.ttf
  122. mkdir -p %{buildroot}%{_datadir}/icons/hicolor/192x192
  123. cp -p %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/192x192/secondlife.png
  124. desktop-file-install --vendor lindenlab \
  125. --dir ${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE3}
  126. %clean
  127. rm -rf %{buildroot}
  128. %files
  129. %defattr(-,root,root,-)
  130. %doc LICENSE-source.txt LICENSE-logos.txt doc/*
  131. %doc indra/newview/linux_tools/client-readme.txt
  132. %doc indra/newview/lsl_guide.html
  133. %doc indra/newview/releasenotes.txt
  134. %config %{_sysconfdir}/sysconfig/secondlife
  135. %{_bindir}/secondlife*
  136. %{_datadir}/applications/lindenlab-secondlife.desktop
  137. %{_datadir}/icons/hicolor/192x192/secondlife.png
  138. %{_datadir}/secondlife/
  139. %{_libdir}/secondlife
  140. %changelog
  141. * Tue Jul 17 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.18.0.6-0vl2
  142. - add Patch107 to fix VWR-1354
  143. * Fri Jul 13 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.18.0.6-0vl1
  144. - new upstream release
  145. * Sat Jul 07 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17.3.0-0vl1
  146. - new upstream release
  147. - add Patch103 to use lossy encoding with openjpeg(VWR-1475)
  148. * Thu Jun 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17.2.0-0vl2
  149. - add patch101 to fix VWR-1203
  150. - add patch102 to fix AllowIdleAFK
  151. * Thu Jun 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17.2.0-0vl1
  152. - new upstream release
  153. * Wed Jun 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17.1.0-0vl2
  154. - add VWR-1396 patches
  155. - build with openjpeg-1.2
  156. * Tue Jun 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17.1.0-0vl1
  157. - new upstream release
  158. * Tue Jun 19 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17.0.12-0vl1
  159. - new upstream release
  160. * Sat Jun 09 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.16.0.5-0vl2
  161. - add patch210 to support GeForce8500/8600
  162. * Sat Jun 09 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.16.0.5-0vl1
  163. - initial build for Vine Linux
  164. - update to 1.16.0.5
  165. - use Bitstream Vera instead of DejaVu LGC
  166. * Thu Apr 26 2007 Callum Lerwick <seg@haxxed.com> 1.15.0.2-1
  167. - New upstream.
  168. - Non-redistributable fonts are no longer included, substitute DejaVu LGC
  169. for now.
  170. * Thu Apr 19 2007 Callum Lerwick <seg@haxxed.com> 1.14.0.1-1
  171. - New upstream.
  172. * Thu Mar 29 2007 Callum Lerwick <seg@haxxed.com> 1.14.0.0-1
  173. - New upstream.
  174. * Sun Mar 25 2007 Callum Lerwick <seg@haxxed.com> 1.13.4.8-0.1.20070321a
  175. - First submission to Fedora.
  176. * Sat Feb 10 2007 Callum Lerwick <seg@haxxed.com> 1.13.3.3-1
  177. - Initial packaging.