Provides automatic installation scripts for OpenRA with Tiberian Sun & Red Alert 2 + Dune 2 (Windows, Linux)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
4.3 KiB

  1. #
  2. # spec file for package openra
  3. #
  4. # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
  5. #
  6. # All modifications and additions to the file contributed by third parties
  7. # remain the property of their copyright owners, unless otherwise agreed
  8. # upon. The license for this file, and modifications and additions to the
  9. # file, is the same license as for the pristine package itself (unless the
  10. # license for the pristine package is not an Open Source License, in which
  11. # case the license is the MIT License). An "Open Source License" is a
  12. # license that conforms to the Open Source Definition (Version 1.9)
  13. # published by the Open Source Initiative.
  14. # Please submit bugfixes or comments via http://bugs.opensuse.org/
  15. #
  16. Name: openra-bleed-tibsunra2
  17. Version: 1
  18. Release: 1
  19. Url: http://www.openra.net
  20. Summary: Recreation of the early Command & Conquer games
  21. License: GPL-3.0
  22. Group: Amusements/Games/Strategy/Real Time
  23. Source: %{name}-%{version}.tar.gz
  24. Source2: thirdparty.tar.gz
  25. Source3: http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz
  26. BuildRoot: %{_tmppath}/%{name}-%{version}-build
  27. BuildArch: noarch
  28. BuildRequires: desktop-file-utils
  29. BuildRequires: git
  30. BuildRequires: hicolor-icon-theme
  31. BuildRequires: shared-mime-info
  32. BuildRequires: pkgconfig(mono)
  33. Requires: SDL2
  34. %if 0%{?suse_version}
  35. BuildRequires: fdupes
  36. BuildRequires: lua51
  37. Requires: lua51
  38. Requires: freetype2
  39. %endif
  40. %if 0%{?fedora_version}
  41. BuildRequires: lua = 5.1
  42. Requires: lua = 5.1
  43. Requires: freetype
  44. %endif
  45. Requires: mono-core
  46. # workaround System.DllNotFoundException: libgdiplus.so - https://bugzilla.xamarin.com/show_bug.cgi?id=34314
  47. Requires: libgdiplus-devel
  48. Requires: openal-soft
  49. Requires: xdg-utils
  50. Requires: zenity
  51. # don't provide the bundled dependencies to other packages
  52. AutoReqProv: off
  53. %description
  54. OpenRA is an Open Source, Real Time Strategy game engine.
  55. Its primary focus is on creating an extendable platform
  56. to recreate games in the style of the early Westwood games.
  57. It ships mods that reimagine Command & Conquer: Tiberian Dawn,
  58. Red Alert as well as Dune 2000 if the original game files are
  59. provided.
  60. %prep
  61. %setup -q -n %{name}-%{version} -a2
  62. make version
  63. %build
  64. mkdir -p ./thirdparty/download
  65. cp %{SOURCE3} ./thirdparty/download
  66. make dependencies
  67. make core
  68. make tools
  69. make docs
  70. %install
  71. make DESTDIR="%{buildroot}" prefix=%{_prefix} install-all
  72. make DESTDIR="%{buildroot}" prefix=%{_prefix} install-linux-shortcuts
  73. make DESTDIR="%{buildroot}" prefix=%{_prefix} install-linux-mime
  74. make DESTDIR="%{buildroot}" prefix=%{_prefix} install-linux-appdata
  75. make DESTDIR="%{buildroot}" prefix=%{_prefix} install-man-page
  76. rm -rf %{buildroot}/usr/lib/openra/{SharpFont.dll.config,SDL2-CS.dll.config,OpenAL-CS.dll.config,Eluant.dll.config}
  77. rm -rf %{buildroot}/usr/lib/openra/mods/cnc/OpenRA.Mods.Cnc.dll.mdb
  78. rm -rf %{buildroot}/usr/lib/openra/mods/common/OpenRA.Mods.Common.dll.mdb
  79. rm -rf %{buildroot}/usr/lib/openra/mods/d2k/OpenRA.Mods.D2k.dll.mdb
  80. rm -rf %{buildroot}/usr/lib/openra/mods/ra/OpenRA.Mods.RA.dll.mdb
  81. rm -rf %{buildroot}/usr/lib/openra/mods/ra2/{.gitattributes,.gitignore,.travis.yml,build.cake,OpenRA.Mods.RA2.dll.mdb,make.cmd,make.ps1,makefile}
  82. rm -rf %{buildroot}/usr/lib/openra/mods/ts/OpenRA.Mods.TS.dll.mdb
  83. %if 0%{?suse_version}
  84. %fdupes %{buildroot}%{_prefix}/lib
  85. %endif
  86. %clean
  87. make DESTDIR="%{buildroot}" prefix=%{_prefix} uninstall
  88. %post
  89. %desktop_database_post
  90. %icon_theme_cache_post
  91. %mime_database_post
  92. %postun
  93. %desktop_database_postun
  94. %icon_theme_cache_postun
  95. %mime_database_postun
  96. %files
  97. %defattr(-,root,root)
  98. %doc DOCUMENTATION.md Lua-API.md README.md
  99. %{_bindir}/openra
  100. %{_bindir}/openra-server
  101. %{_prefix}/lib/openra/
  102. %{_datadir}/applications/*.desktop
  103. %{_datadir}/icons/hicolor/*/apps/*
  104. %{_datadir}/mime/packages/openra.xml
  105. %dir %{_datadir}/appdata/
  106. %{_datadir}/appdata/openra.appdata.xml
  107. %{_mandir}/man6/openra.*
  108. %changelog
  109. * Fri Jan 8 2016 mailaender@opensuse.org
  110. - fix openal depdendency (package was renamed to openal-soft)
  111. * Fri Dec 25 2015 mailaender@opensuse.org
  112. - bundled all binaries again for Fedora 23 and openSUSE 42.1
  113. * Thu Dec 24 2015 mailaender@opensuse.org
  114. - release 20151224
  115. * Sat Sep 19 2015 mailaender@opensuse.org
  116. - release 20150919