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.

131 lines
4.1 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/mods/cnc/OpenRA.Mods.Cnc.dll.mdb
  77. rm -rf %{buildroot}/usr/lib/openra/mods/common/OpenRA.Mods.Common.dll.mdb
  78. rm -rf %{buildroot}/usr/lib/openra/mods/d2k/OpenRA.Mods.D2k.dll.mdb
  79. rm -rf %{buildroot}/usr/lib/openra/mods/ra/OpenRA.Mods.RA.dll.mdb
  80. rm -rf %{buildroot}/usr/lib/openra/mods/ra2/{.gitattributes,.gitignore,.travis.yml,build.cake,OpenRA.Mods.RA2.dll.mdb,make.cmd,make.ps1,makefile}
  81. rm -rf %{buildroot}/usr/lib/openra/mods/ts/OpenRA.Mods.TS.dll.mdb
  82. %if 0%{?suse_version}
  83. %fdupes %{buildroot}%{_prefix}/lib
  84. %endif
  85. %clean
  86. make DESTDIR="%{buildroot}" prefix=%{_prefix} uninstall
  87. %post
  88. %desktop_database_post
  89. %icon_theme_cache_post
  90. %mime_database_post
  91. %postun
  92. %desktop_database_postun
  93. %icon_theme_cache_postun
  94. %mime_database_postun
  95. %files
  96. %defattr(-,root,root)
  97. %doc DOCUMENTATION.md Lua-API.md README.md
  98. %{_bindir}/openra
  99. %{_bindir}/openra-server
  100. %{_prefix}/lib/openra/
  101. %{_datadir}/applications/*.desktop
  102. %{_datadir}/icons/hicolor/*/apps/*
  103. %{_datadir}/mime/packages/openra.xml
  104. %dir %{_datadir}/appdata/
  105. %{_datadir}/appdata/openra.appdata.xml
  106. %{_mandir}/man6/openra.*
  107. %changelog
  108. * Fri Jan 8 2016 mailaender@opensuse.org
  109. - fix openal depdendency (package was renamed to openal-soft)
  110. * Fri Dec 25 2015 mailaender@opensuse.org
  111. - bundled all binaries again for Fedora 23 and openSUSE 42.1
  112. * Thu Dec 24 2015 mailaender@opensuse.org
  113. - release 20151224
  114. * Sat Sep 19 2015 mailaender@opensuse.org
  115. - release 20150919