SHA256
1
0
forked from pool/dbgl

Accepting request 817553 from home:mnhauke:games

Initial package for dbgl

OBS-URL: https://build.opensuse.org/request/show/817553
OBS-URL: https://build.opensuse.org/package/show/Emulators/dbgl?expand=0&rev=1
This commit is contained in:
Marcus Meissner 2020-07-03 09:40:34 +00:00 committed by Git OBS Bridge
commit 850e33e9a2
7 changed files with 172 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

19
dbgl-wrapper.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
# use right java version
#JAVA_HOME=/etc/alternatives/jre_11
# set jar-entry-class
MAIN_CLASS="org.dbgl.gui.Launcher"
# source the jpackage helpers and set environment
VERBOSE=1
. /usr/share/java-utils/java-functions
set_javacmd
check_java_env
set_jvm_dirs
# If the memory run short it can help to use set_options
# Xms set the initial and minimum Java heap size, Xmx set the maximum Java heap size
# default: Xms (25% of the amount of free physical memory in the system, up to 16 MB and at least 8 MB)
# default: Xmx (32bit: 50% of available physical memory up to 1 GB, 64bit: 50% of available physical memory up to 32 GB)
set_options "-Xms256M" "-Xmx1G" "-Ddbgl.data.userhome=true"
CLASSPATH=`build-classpath dbgl`
run "$@"

36
dbgl.appdata.xml Normal file
View File

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 oleg kishinskiy <legunt@yandex.ru> -->
<component type="desktop">
<id>dbgl.desktop</id>
<metadata_license>GPLv2</metadata_license>
<project_license>free</project_license>
<updatecontact>legunt@yandex.ru</updatecontact>
<name>DosBox Game Launcher</name>
<name xml:lang="ru"> Лаунчер для DosBox</name>
<summary>multi-platform frontend for DOSBox</summary>
<summary xml:lang="ru">мультиплатформенный фронтенд для DOSBox</summary>
<description>
<p>
DOSBox Game Launcher DBGL is an elegant graphic interface for DOSBox, the MS-DOS
emulator specialized in running old games, DGBL lets you manage all of your titles
with a comfortable, attractive, and highly functional interface.
</p>
<p xml:lang="ru">
DOSBox Game Launcher DBGL - это элегантный графический интерфейс для DOSBox, MS-DOS
эмулятор специализированный в запуске старых игр, DGBL позволяет Вам управлять всеми
своими тайтлами с удобным, привлекательным и очень функциональным интерфейсом.
</p>
</description>
<screenshots>
<screenshot type="default">https://github.com/RussianFedora/dbgl/blob/master/dbgl_screenshot.png</screenshot>
<screenshot>http://members.quicknet.nl/blankendaalr/dbgl/img/features1_big.png</screenshot>
<screenshot>http://members.quicknet.nl/blankendaalr/dbgl/img/features3_big.png</screenshot>
<screenshot>http://members.quicknet.nl/blankendaalr/dbgl/img/features4_big.png</screenshot>
<screenshot>http://members.quicknet.nl/blankendaalr/dbgl/img/075large.png</screenshot>
</screenshots>
<url type="homepage">http://members.quicknet.nl/blankendaalr/dbgl</url>
</component>

4
dbgl.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sun Jun 28 18:26:47 UTC 2020 - Martin Hauke <mardnh@gmx.de>
- Initial package, version 0.91

86
dbgl.spec Normal file
View File

@ -0,0 +1,86 @@
#
# spec file for package dbgl
#
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
#
# 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 https://bugs.opensuse.org/
#
%define realver 091
Name: dbgl
Version: 0.91
Release: 0
Summary: DOSBox Game Launcher
License: GPL-2.0-only
Group: System/Emulators/Other
URL: http://home.quicknet.nl/qn/prive/blankendaalr/dbgl/
Source0: http://members.quicknet.nl/blankendaalr/dbgl/download/src%{realver}.zip
Source1: %{name}-wrapper.sh
Source2: %{name}.appdata.xml
BuildRequires: ant
BuildRequires: apache-commons-io
BuildRequires: apache-commons-lang3
BuildRequires: apache-commons-text
BuildRequires: eclipse-swt
BuildRequires: java-devel
BuildRequires: unzip
BuildRequires: update-desktop-files
Requires: apache-commons-io
Requires: apache-commons-lang3
Requires: apache-commons-text
Requires: dosbox >= 0.70
Requires: eclipse-swt
Requires: java >= 1.8
Requires: javapackages-tools
BuildArch: noarch
%description
DBGL is a Java front-end for DOSBox, based largely upon the
proven interface of D-Fend.
%prep
%setup -q -c
# unbundle libs
rm ./src/dist/shared/lib/commons-lang3-*.jar
rm ./src/dist/shared/lib/commons-io-*.jar
rm ./src/dist/shared/lib/commons-text-*.jar
%build
mkdir -p lib
build-jar-repository -s -p lib commons-io commons-lang3 apache-commons-text swt
ant distlinux
%install
install -D -m0755 %{SOURCE1} %{buildroot}/%{_bindir}/%{name}
install -d %{buildroot}%{_javadir}/dbgl
tar xvf dist/dbgl%{realver}.tar.gz -C %{buildroot}%{_javadir}/dbgl/
# Use symbol links to system libraries
build-jar-repository -s -p %{buildroot}/%{_javadir}/%{name}/lib commons-io commons-lang3 apache-commons-text swt
#
install -d %{buildroot}%{_datadir}/pixmaps
mv %{buildroot}%{_javadir}/%{name}/dbgl.png %{buildroot}%{_datadir}/pixmaps/
install -D -pm0644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/dbgl.appdata.xml
%suse_update_desktop_file -c %{name} %{name} "DOSBox Game Launcher" %{name} %{name} Game Emulator
# Remove not needed files
rm %{buildroot}%{_javadir}/dbgl/lib/swtlin64.jar
rm %{buildroot}%{_javadir}/dbgl/dbgl
%files
%license src/dist/shared/COPYING
%{_bindir}/dbgl
%{_javadir}/dbgl
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%changelog

3
src091.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eae70786e5209a4047d7719287ec9b6f22f443d51b4b44b4ee49ac9bcde6b226
size 19464732