forked from sergiomb2/dbgl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbgl.spec
179 lines (145 loc) · 5.94 KB
/
dbgl.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
#
# spec file for package dbgl
#
# Copyright (c) 2022 UnitedRPMs.
# Copyright (c) 2023 Sérgio Basto
#
# 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.
%global debug_package %{nil}
#AutoReqProv: no
%global __provides_exclude_from %{buildroot}%{_javadir}/%{name}/lib/
Name: dbgl
Summary: DOSBox Game Launcher
URL: https://dbgl.org/
Version: 0.96
%global uversion %(foo=%{version}; echo ${foo//./})
Release: 1%{?dist}
License: GPLv2
BuildRequires: ant
BuildRequires: desktop-file-utils
BuildRequires: java-devel
BuildRequires: eclipse-swt
BuildRequires: apache-commons-lang3
BuildRequires: apache-commons-io
BuildRequires: apache-commons-text
BuildRequires: libappstream-glib
Requires: dosbox >= 0.70
Requires: eclipse-swt
Requires: apache-commons-lang3
Requires: apache-commons-io
Requires: apache-commons-text
Requires: java >= 1:1.8.0
Requires: java-headless >= 1:1.8.0
Requires: jpackage-utils
Requires: SDL_net
Requires: SDL_sound
Source0: https://dbgl.org/download/src%{uversion}.zip
Source1: dbgl.desktop
Source2: dbgl.appdata.xml
Source3: dbgl
%description
DBGL is a Java front-end for DOSBox, based largely upon the proven
interface of D-Fend.
The front-end is by no means finished. It is a work in progress
and lacking many features, but the core is working, and I think
the product is somewhat usable as it is. Please bear in mind that
the interface is still quite rough around the edges.
%prep
%setup -qc
# remove bundles
# swt
rm -r ./src/dist/linuxshared/lib/swtlin64.jar
rm -r ./src/dist/shared/lib/commons-lang3-*.jar
rm -r ./src/dist/shared/lib/commons-io-*.jar
rm -r ./src/dist/shared/lib/commons-text-*.jar
# not easy unbundle jersey-2.13.jar fedora have jersey-2.18 and 2.23 seems that
# haven't org.glassfish.jersey.core.jersey-server
#rm -r ./src/dist/shared/lib/jersey-2.13.jar
#rm -r ./src/dist/shared/lib/jersey-2.27.0.jar
%build
build-jar-repository -s -p src/dist/shared/lib/ commons-io commons-lang3 apache-commons-text/commons-text.jar swt
# glassfish-jax-rs-api jersey glassfish-hk2-utils \
# glassfish-hk2-configuration glassfish-hk2/hk2-metadata-generator \
# glassfish-hk2-hk2
ant distlinux
%install
install -dm755 %{buildroot}%{_javadir}/%{name}
cd dist; tar xvf dbgl096.tar.gz -C %{buildroot}%{_javadir}/%{name}
cd %{buildroot}%{_javadir}/%{name}/lib
rm %{buildroot}%{_javadir}/%{name}/lib/commons-io.jar
ln -sf ../../commons-io.jar
rm %{buildroot}%{_javadir}/%{name}/lib/commons-lang3.jar
ln -sf ../../commons-lang3.jar
rm %{buildroot}%{_javadir}/%{name}/lib/apache-commons-text_commons-text.jar
ln -s ../../apache-commons-text/commons-text.jar apache-commons-text_commons-text.jar
rm %{buildroot}%{_javadir}/%{name}/lib/swt.jar
ln -s ../../../../lib/java/swt.jar
install -m755 %{S:3} %{buildroot}/%{_javadir}/%{name}/dbgl
install -dm755 %{buildroot}/usr/bin
cd %{buildroot}/usr/bin
ln -s ../share/java/dbgl/dbgl
install -dm755 %{buildroot}/usr/share/icons/hicolor/256x256/apps
install -m644 %{buildroot}%{_javadir}/%{name}/dbgl.png %{buildroot}/usr/share/icons/hicolor/256x256/apps
install -dm755 %{buildroot}/usr/share/applications
install -m644 %{S:1} %{buildroot}/usr/share/applications
install -D -p -m 0644 %{S:2} \
%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
%files
%{_bindir}/%{name}
%{_javadir}/%{name}/
%{_datadir}/icons/hicolor/256x256/apps/dbgl.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%changelog
* Sun Jan 29 2023 Sérgio Basto <[email protected]> - 0.96-1
- Update dbgl to 0.96
* Sat Jan 15 2022 Unitedrpms Project <unitedrpms AT protonmail DOT com> 0.95-7
- Updated to 0.95
* Tue Sep 14 2021 Unitedrpms Project <unitedrpms AT protonmail DOT com> 0.94-7
- Updated to 0.94
* Mon Apr 26 2021 Unitedrpms Project <unitedrpms AT protonmail DOT com> 0.93-1
- Updated to 0.93
* Sat Dec 26 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 0.92-1
- Updated to 0.92
* Sun Feb 09 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 0.91-1
- Updated to 0.91
* Wed Dec 25 2019 Sérgio Basto <[email protected]> - 0.90-1
- Update to 0.90
* Sun Nov 05 2017 Unitedrpms Project <unitedrpms AT protonmail DOT com> 0.82-1
- Updated to 0.82
* Thu Mar 09 2017 Sérgio Basto <[email protected]> - 0.81-1
- Update to 0.81
* Fri Dec 23 2016 Sérgio Basto <[email protected]> - 0.80-3
- set jar classpath with (unbundle) system libraries (instead use symbol links)
- gnatenkobrain review:
- btw, you can remove / between %{buildroot} and others.
- probably you meant %{ix86}
- to %check please
* Mon Dec 19 2016 Sérgio Basto <[email protected]> - 0.80-2
- Bump release
- Use external .desktop file easier to send to upstream
- Add Packaging:AppData
* Fri Jun 17 2016 Oleg Kishinskiy <[email protected]> - 0.80-1
- Update for new vertion
* Fri Mar 20 2015 Oleg Kishinskiy <[email protected]> - 0.79-3
- add ant for BuildRequires
* Fri Mar 20 2015 Oleg Kishinskiy <[email protected]> - 0.79-2
- FIX change category
* Fri Mar 20 2015 Oleg Kishinskiy <[email protected]> - 0.79-1
- update for new vertion
- change category
* Tue Dec 23 2014 Oleg Kishinskiy <[email protected]> - 0.78-3
- fix spec to install from source
* Wed Dec 10 2014 Igor Gnatenko <[email protected]> - 0.78-2
- spec cleanup
* Wed Dec 10 2014 Oleg Kishinskiy <[email protected]> - 0.78-1
- Update for new vertion
* Mon Jul 29 2013 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.76-2
- Initial build rpm