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.

123 lines
3.6 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. %if 0%{?suse_version}
  77. %fdupes %{buildroot}%{_prefix}/lib
  78. %endif
  79. %clean
  80. make DESTDIR="%{buildroot}" prefix=%{_prefix} uninstall
  81. %post
  82. %desktop_database_post
  83. %icon_theme_cache_post
  84. %mime_database_post
  85. %postun
  86. %desktop_database_postun
  87. %icon_theme_cache_postun
  88. %mime_database_postun
  89. %files
  90. %defattr(-,root,root)
  91. %doc DOCUMENTATION.md Lua-API.md README.md
  92. %{_bindir}/openra
  93. %{_prefix}/lib/openra/
  94. %{_datadir}/applications/*.desktop
  95. %{_datadir}/icons/hicolor/*/apps/*
  96. %{_datadir}/mime/packages/openra.xml
  97. %dir %{_datadir}/appdata/
  98. %{_datadir}/appdata/openra.appdata.xml
  99. %{_mandir}/man6/openra.*
  100. %changelog
  101. * Fri Jan 8 2016 mailaender@opensuse.org
  102. - fix openal depdendency (package was renamed to openal-soft)
  103. * Fri Dec 25 2015 mailaender@opensuse.org
  104. - bundled all binaries again for Fedora 23 and openSUSE 42.1
  105. * Thu Dec 24 2015 mailaender@opensuse.org
  106. - release 20151224
  107. * Sat Sep 19 2015 mailaender@opensuse.org
  108. - release 20150919