Want more features on Pastebin? Sign Up, it's FREE!
Guest

0ad.spec

By: a guest on Jan 5th, 2012  |  syntax: None  |  size: 4.53 KB  |  views: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # norootforbuild
  2.  
  3. Name:           0ad
  4. Version:        r10803
  5. Release:        1.0
  6. License:        GNU GPL v2 or later
  7. Group:          Amusements/Games/Strategy/Real Time
  8. Url:            http://wildfiregames.com/0ad/
  9. Source:         0ad-%{version}-alpha-unix-build.tar.gz
  10. BuildRoot:      %{_tmppath}/%{name}-%{version}-build
  11. BuildRequires:  boost-devel
  12. BuildRequires:  DevIL-devel
  13. BuildRequires:  fam-devel
  14. BuildRequires:  gcc-c++
  15. BuildRequires:  libcurl-devel
  16. BuildRequires:  libjpeg-devel
  17. BuildRequires:  libpng-devel
  18. BuildRequires:  libvorbis-devel
  19. BuildRequires:  libxml2-devel
  20. BuildRequires:  nasm
  21. BuildRequires:  python
  22. BuildRequires:  subversion
  23. BuildRequires:  zip
  24. BuildRequires:  cmake
  25. BuildRequires:  desktop-file-utils
  26. #BuildRequires:  libenet-devel ##use static one included instead.
  27. BuildRequires:  openal-soft-devel
  28. BuildRequires:  pkgconfig
  29. BuildRequires:  SDL-devel
  30. BuildRequires:  wxGTK-devel
  31.  
  32.  
  33. Requires:       0ad-data
  34. Summary:        Free, Open-Source, Cross-Platform RTS Game of Ancient Warfare
  35.  
  36. %description
  37. 0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform real-time
  38. strategy (RTS) game of ancient warfare. In short, it is a historically-based
  39. war/economy game that allows players to relive or rewrite the history of Western
  40. civilizations, focusing on the years between 500 B.C. and 500 A.D. The project is
  41. highly ambitious, involving state-of-the-art 3D graphics, detailed artwork, sound,
  42. and a flexible and powerful custom-built game engine.
  43.  
  44. The game has been in development by Wildfire Games (WFG), a group of volunteer,
  45. hobbyist game developers, since 2001. The code and data are available under the GPL
  46. license, and the art, sound and documentation are available under CC-BY-SA. In short,
  47. we consider 0 A.D. an an educational celebration of game development and ancient
  48. history.
  49.  
  50.  
  51. %prep
  52. %setup -q -n %{name}-%{version}-alpha
  53.  
  54. %build
  55. export CFLAGS="%{optflags}"
  56. export CPPFLAGS="%{optflags}"
  57. build/workspaces/update-workspaces.sh --bindir=%{_bindir} --datadir=%{_datadir}/%{name}  --libdir=%{_libdir}/%{name}
  58. pushd build/workspaces/gcc
  59. %__make verbose=1 %{?_smp_mflags}
  60. popd
  61.  
  62.  
  63. %check
  64. #__make check
  65.  
  66. # Disabled for now because of weird failures on OpenSUSE 11.3 i586
  67. # (looks like SpiderMonkey doesn't like the OBS environment or something?)
  68. #LD_LIBRARY_PATH=binaries/system binaries/system/test -libdir binaries/system
  69.  
  70. %install
  71. #makeinstall
  72. %__install -Dm 0755 binaries/system/pyrogenesis %{buildroot}%{_bindir}/pyrogenesis
  73. %__install -Dm 0755 binaries/system/libCollada.so %{buildroot}%{_libdir}/%{name}/libCollada.so
  74. %__install -Dm 0755 binaries/system/libAtlasUI.so %{buildroot}%{_libdir}/%{name}/libAtlasUI.so
  75. %__install -Dm 0755 binaries/system/libmozjs185-ps-release.so.1.0 %{buildroot}%{_libdir}/%{name}/libmozjs185-ps-release.so.1.0
  76. %__install -Dm 0755 binaries/system/libnvcore.so %{buildroot}%{_libdir}/%{name}/libnvcore.so
  77. %__install -Dm 0755 binaries/system/libnvimage.so %{buildroot}%{_libdir}/%{name}/libnvimage.so
  78. %__install -Dm 0755 binaries/system/libnvmath.so %{buildroot}%{_libdir}/%{name}/libnvmath.so
  79. %__install -Dm 0755 binaries/system/libnvtt.so %{buildroot}%{_libdir}/%{name}/libnvtt.so
  80. %__install -Dm 0755 binaries/system/libenet.so.1 %{buildroot}%{_libdir}/%{name}/libenet.so.1
  81. #__install -Dm 0755 binaries/system/ActorEditor %{buildroot}/%{_libexecdir}/%{name}/bin/ActorEditor
  82. #__install -Dm 0755 binaries/system/ColourTester %{buildroot}/%{_libexecdir}/%{name}/bin/ColourTester
  83.  
  84. %__install -Dm 0644 build/resources/0ad.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
  85. %__install -Dm 0644 build/resources/0ad.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
  86.  
  87. %if 0%{?suse_version}
  88. %suse_update_desktop_file %{name}
  89. %endif
  90.  
  91. %if 0%{?fedora_version}
  92. desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
  93. %endif
  94.  
  95. %__install -Dm 0755 build/resources/0ad.sh %{buildroot}%{_bindir}/0ad
  96.  
  97. %__mkdir_p %{buildroot}%{_libdir}/%{name}
  98. %__mkdir_p %{buildroot}%{_datadir}/%{name}
  99.  
  100. %clean
  101. test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
  102.  
  103. %files
  104. %defattr(-,root,root)
  105. %doc README.txt
  106. %{_bindir}/0ad
  107. %{_bindir}/pyrogenesis
  108. %{_libdir}/%{name}/libCollada.so
  109. %{_libdir}/%{name}/libAtlasUI.so
  110. %{_libdir}/%{name}/libmozjs185-ps-release.so.1.0
  111. %{_libdir}/%{name}/libnvcore.so
  112. %{_libdir}/%{name}/libnvimage.so
  113. %{_libdir}/%{name}/libnvmath.so
  114. %{_libdir}/%{name}/libnvtt.so
  115. %{_libdir}/%{name}/libenet.so.1
  116. %{_datadir}/pixmaps/%{name}.png
  117. %{_datadir}/applications/%{name}.desktop
  118. %dir %{_libdir}/%{name}
  119. %dir %{_datadir}/%{name}
clone this paste RAW Paste Data