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.

129 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. %setup -q -n %{name}-%{version}
  63. make version
  64. %build
  65. ##mkdir -p ./thirdparty/download
  66. ##cp %{SOURCE3} ./thirdparty/download
  67. make dependencies
  68. make core
  69. make tools
  70. make docs
  71. %install
  72. make DESTDIR="%{buildroot}" prefix=%{_prefix} install-all
  73. make DESTDIR="%{buildroot}" prefix=%{_prefix} install-linux-shortcuts
  74. make DESTDIR="%{buildroot}" prefix=%{_prefix} install-linux-mime
  75. make DESTDIR="%{buildroot}" prefix=%{_prefix} install-linux-appdata
  76. make DESTDIR="%{buildroot}" prefix=%{_prefix} install-man-page
  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,OpenRA.Mods.Cnc.dll.mdb}
  79. rm -rf %{buildroot}/usr/lib/openra/mods/d2k/OpenRA.Mods.D2k.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. %if 0%{?suse_version}
  82. %fdupes %{buildroot}%{_prefix}/lib
  83. %endif
  84. %clean
  85. make DESTDIR="%{buildroot}" prefix=%{_prefix} uninstall
  86. %post
  87. %desktop_database_post
  88. %icon_theme_cache_post
  89. %mime_database_post
  90. %postun
  91. %desktop_database_postun
  92. %icon_theme_cache_postun
  93. %mime_database_postun
  94. %files
  95. %defattr(-,root,root)
  96. %doc DOCUMENTATION.md Lua-API.md README.md
  97. %{_bindir}/openra
  98. %{_bindir}/openra-server
  99. %{_prefix}/lib/openra/
  100. %{_datadir}/applications/*.desktop
  101. %{_datadir}/icons/hicolor/*/apps/*
  102. %{_datadir}/mime/packages/openra.xml
  103. %dir %{_datadir}/appdata/
  104. %{_datadir}/appdata/openra.appdata.xml
  105. %{_mandir}/man6/openra.*
  106. %changelog
  107. * Fri Jan 8 2016 mailaender@opensuse.org
  108. - fix openal depdendency (package was renamed to openal-soft)
  109. * Fri Dec 25 2015 mailaender@opensuse.org
  110. - bundled all binaries again for Fedora 23 and openSUSE 42.1
  111. * Thu Dec 24 2015 mailaender@opensuse.org
  112. - release 20151224
  113. * Sat Sep 19 2015 mailaender@opensuse.org
  114. - release 20150919