/
dosbox.spec
89 lines (76 loc) · 2.5 KB
/
dosbox.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
Summary: A DOS emulator
Name: dosbox
Version: 0.74.3
Release: 1
License: GPLv2+
Group: Emulators
Url: http://dosbox.sourceforge.net/
# Code taken from svn
# svn checkout https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk dosbox-%{version}
#Source0: http://prdownloads.sourceforge.net/dosbox/%{name}-%{version}.tar.xz
Source0: http://downloads.sourceforge.net/dosbox/%{name}-%(echo %{version} |cut -d. -f1-2)-%(echo %{version} |cut -d. -f3-).tar.gz
Source11: %{name}-16x16.png
Source12: %{name}-32x32.png
Source13: %{name}-48x48.png
Patch0: dosbox-0.74.4119-defaultsettings.patch
BuildRequires: SDL_sound-devel
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(SDL_net)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(zlib)
%description
DOSBox is a DOS-emulator that uses the SDL-library which makes
DOSBox very easy to port to different platforms. DOSBox has
already been ported to many different platforms, such as
Windows, BeOS, Linux, MacOS X...
DOSBox also emulates CPU:286/386 realmode/protected mode,
Directory FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA
graphics, a SoundBlaster/Gravis Ultra Sound card for excellent
sound compatibility with older games...
You can "re-live" the good old days with the help of DOSBox,
it can run plenty of the old classics that don't run on your
new computer!
%files
%doc AUTHORS ChangeLog NEWS README THANKS
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_mandir}/*/*
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
#----------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%(echo %{version} |cut -d. -f1-2)-%(echo %{version} |cut -d. -f3-)
[ -e autogen.sh ] && ./autogen.sh
%build
%if %mdvver >= 201500
%ifarch %ix86
export CC="gcc"
export CXX="g++"
%endif
%endif
%configure
%make
%install
%makeinstall_std
rm -rf %{buildroot}%{_datadir}/doc/dosbox
mkdir -p %{buildroot}%{_datadir}/applications
# Create appropriate .desktop file
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=DOSBox
Comment=A DOS emulator
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Utility;Emulator;
EOF
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png