Skip to content

Instantly share code, notes, and snippets.

@Mailaender
Last active April 2, 2016 18:14
Show Gist options
  • Select an option

  • Save Mailaender/d982089383b02d7932306535bbd4a314 to your computer and use it in GitHub Desktop.

Select an option

Save Mailaender/d982089383b02d7932306535bbd4a314 to your computer and use it in GitHub Desktop.
-------------------------------------------------------------------
Wed Jul 9 13:53:02 UTC 2014 - mailaender@opensuse.org
- Fixed 64-bit cross-compile BNC#805424
-------------------------------------------------------------------
Sun Nov 24 16:27:36 UTC 2013 - mailaender@opensuse.org
- Update the MIME database on install
- Added desurium-v8-3.19.18.patch to fix build with latest V8
-------------------------------------------------------------------
Tue Oct 29 23:16:51 UTC 2013 - mailaender@opensuse.org
- Added RPMlint filters for template scripts
- Use localonly to avoid excessive git fetch
- Adjusted repo to new official GitHub organisation
-------------------------------------------------------------------
Sun May 26 09:08:20 UTC 2013 - mailaender@opensuse.org
- enable build of the CLI tools
-------------------------------------------------------------------
Sun Apr 28 08:06:16 UTC 2013 - mailaender@opensuse.org
- update to version 0.8.0_rc10
-------------------------------------------------------------------
Tue Mar 19 10:56:03 UTC 2013 - mailaender@opensuse.org
- update the system MIME cache for desura:// links
-------------------------------------------------------------------
Sat Mar 9 17:54:52 UTC 2013 - mailaender@opensuse.org
- update to version 0.8.0_rc9
- dropped flash video support
-------------------------------------------------------------------
Sun Feb 24 13:49:36 UTC 2013 - mailaender@opensuse.org
- update to version 0.8.0_rc8
-------------------------------------------------------------------
Wed Feb 6 14:57:02 UTC 2013 - mailaender@opensuse.org
- update to version 0.8.0_rc5
-------------------------------------------------------------------
Wed Jan 30 22:57:02 UTC 2013 - mailaender@opensuse.org
- update to version 0.8.0_rc4
-------------------------------------------------------------------
Sun Aug 26 19:41:30 UTC 2012 - mailaender@opensuse.org
- initial release
#
# spec file for package Desurium
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# dep_postfix macro is used to append "-32bit" to dependencies for x86_64 on openSUSE
%define dep_postfix %{nil}
%ifarch x86_64
%if 0%{?suse_version}
%define dep_postfix -32bit
%endif
%if 0%{?fedora}
%define dep_postfix (x86-32)
%endif
%endif
Name: Desurium
Summary: Desura open-source client
License: GPL-3.0
Group: Amusements/Games/Other
Version: 0.8.0_rc10
Release: 0
Url: http://www.desura.com/groups/desurium
BuildRequires: bison%{dep_postfix}
BuildRequires: boost-devel%{dep_postfix}
BuildRequires: cmake >= 2.8.2
BuildRequires: cups-devel
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: flex%{dep_postfix}
BuildRequires: gcc%{dep_postfix}
BuildRequires: gcc-c++%{dep_postfix}
BuildRequires: glibc-devel%{dep_postfix}
BuildRequires: gperf
BuildRequires: hicolor-icon-theme
BuildRequires: libgcrypt-devel%{dep_postfix}
BuildRequires: libtool%{dep_postfix}
BuildRequires: pkg-config
BuildRequires: scons
BuildRequires: tinyxml-devel
BuildRequires: unzip
BuildRequires: v8-devel
BuildRequires: yasm
BuildRequires: alsa-devel%{dep_postfix}
BuildRequires: libbz2-devel%{dep_postfix}
BuildRequires: dbus-1-devel%{dep_postfix}
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: glib2-devel%{dep_postfix}
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: gtk2-devel%{dep_postfix}
BuildRequires: pkgconfig(libcares)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libexslt)
BuildRequires: libnotify-devel%{dep_postfix}
BuildRequires: libxml2-devel%{dep_postfix}
BuildRequires: pkgconfig(nss)
BuildRequires: libopenssl-devel%{dep_postfix}
BuildRequires: pkgconfig(python)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(x11)
BuildRequires: libXi-devel%{dep_postfix}
BuildRequires: libXpm-devel%{dep_postfix}
BuildRequires: libXt-devel%{dep_postfix}
BuildRequires: shared-mime-info
#BuildRequires: wxWidgets-2_9-devel = 2.9.3
Requires: bzip2
Requires: curl
Requires: libcef_desura
Source0: https://github.com/desura/Desurium/archive/%{version}.tar.gz
Source1: https://s3-us-west-2.amazonaws.com/lecs.desura.lindenlab.com/cef-291.tar.gz
Source2: https://s3-us-west-2.amazonaws.com/lecs.desura.lindenlab.com/breakpad-850.tar.gz
Source3: https://s3-us-west-2.amazonaws.com/lecs.desura.lindenlab.com/wxWidgets-2.9.3.tar.bz2
# PATCH-FIX-UPSTREAM https://github.com/desura/desurium-overlay/blob/master/games-util/desurium/files/desurium-v8-3.19.18.patch
Patch0: desurium-v8-3.19.18.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is the unbranded Open Source version of the Desura digital
games distribution client. It is a program that allows a user to
one click download and install games and modifications.
%prep
%setup -q
%patch0 -p1
# copy dependency source code because build machines don't have internet access:
cp %{S:1} .
cp %{S:2} .
cp %{S:3} .
%build
mkdir build
cd build
cmake -DWITH_ARES=FALSE \
-DWITH_FLASH=FALSE \
-DCEF_URL="file://%{_sourcedir}/cef-291.tar.gz" \
-DBREAKPAD_URL="file://%{_sourcedir}/breakpad-850.tar.gz" \
-DWXWIDGET_URL="file://%{_sourcedir}/wxWidgets-2.9.3.tar.bz2" \
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
-DBINDIR="bin" \
-DRUNTIME_LIBDIR="%{_lib}/desurium" \
-DDATADIR="share/desurium" \
-DINSTALL_DESKTOP_FILE=TRUE \
-DDESKTOP_EXE=desura \
-DDESKTOP_ICON=desurium \
-DDESKTOPDIR="%{_datadir}/applications" \
-DBUILD_CEF=FALSE \
-BUILD_ONLY_CEF=FALSE \
-DDEBUG=TRUE \
-DBUILD_TESTS=FALSE \
-DFORCE_SYS_DEPS=FALSE \
-DFORCE_BUNDLED_WXGTK=TRUE \
%ifarch x86_64
-D32BIT_SUPPORT=TRUE \
%endif
%ifarch i586
-D32BIT_SUPPORT=FALSE \
%endif
..
make %{?_smp_mflags}
%install
cd build
%make_install
cd ..
# RPM does not like spaces in filenames:
rm "%{buildroot}%{_datadir}/desurium/language/New Language Read Me.txt"
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps
cp %{buildroot}%{_datadir}/desurium/desura.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/desurium.png
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
cp src/branding_desurium/sources/desubot.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/desurium.svg
desktop-file-edit --add-category="Amusement" \
%{buildroot}%{_datadir}/applications/desura.desktop
%if 0%{?suse_version}
%fdupes %{buildroot}
%endif
%post
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
/sbin/ldconfig
%postun
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/*
%{_libdir}/desurium/
%{_datadir}/icons/hicolor/256x256/apps/desurium.png
%{_datadir}/icons/hicolor/scalable/apps/desurium.svg
%{_datadir}/applications/desura.desktop
%{_datadir}/desurium
%{_datadir}/desurium/bindings
%{_datadir}/desurium/language
%{_datadir}/desurium/scripts/
%{_datadir}/desurium/themes
%{_datadir}/desurium/themes/default
%{_datadir}/desurium/themes/default/images
%{_datadir}/desurium/themes/default/images/app
%{_datadir}/desurium/themes/default/images/html
%{_datadir}/desurium/themes/default/images/html/ajax
%{_datadir}/desurium/themes/default/images/html/default
%{_datadir}/desurium/themes/default/images/html/ui
%{_datadir}/desurium/themes/default/images/html/icons
%{_datadir}/desurium/themes/default/css
%{_datadir}/desurium/themes/default/html
%{_datadir}/desurium/themes/default/js
%{_datadir}/desurium/util.sh
%changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment