]> git.pld-linux.org Git - packages/Atari800.git/blob - Atari800.spec
33757c21e647323d7b7379a199790719957501c5
[packages/Atari800.git] / Atari800.spec
1 Summary:        Atari 800 Emulator
2 Summary(pl.UTF-8):      Emulator Atari 800
3 Name:           Atari800
4 Version:        4.2.0
5 Release:        1
6 License:        GPL v2+
7 Group:          Applications/Emulators
8 #Source0Download: https://github.com/atari800/atari800/releases
9 Source0:        https://github.com/atari800/atari800/releases/download/ATARI800_4_2_0/atari800-%{version}-src.tgz
10 # Source0-md5:  695031b9bc3461cd18ec9090779d984b
11 Source1:        %{name}-chooser
12 URL:            https://atari800.github.io/
13 BuildRequires:  SDL-devel
14 BuildRequires:  automake
15 BuildRequires:  xorg-lib-libX11-devel
16 BuildRequires:  xorg-lib-libXext-devel
17 BuildRequires:  zlib-devel
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         specflags       -fomit-frame-pointer
21
22 %description
23 This is Atari 800, 800XL, 130XE and 5200 emulator.
24
25 %description -l pl.UTF-8
26 To jest emulator Atari 800, 800XL, 130XE i 5200.
27
28 %package common
29 Summary:        Atari 800 Emulator - common files for SDL and X11 versions
30 Summary(pl.UTF-8):      Emulator Atari 800 - pliki wspólne dla wersji SDL oraz X11
31 Group:          Applications/Emulators
32 Suggests:       Atari800-rom
33 Obsoletes:      Atari800 < 1.0.7
34
35 %description common
36 This is Atari 800, 800XL, 130XE and 5200 emulator.
37
38 This package contains common files for both SDL and X11 versions
39 of Atari800.
40
41 %description common -l pl.UTF-8
42 To jest emulator Atari 800, 800XL, 130XE i 5200.
43
44 Ten pakiet zawiera pliki wspólne dla wersji działających pod SDL
45 oraz X11.
46
47 %package x11
48 Summary:        Atari 800 Emulator - X Window version
49 Summary(pl.UTF-8):      Emulator Atari 800 - wersja dla systemu X Window
50 License:        GPL
51 Group:          Applications/Emulators
52 Requires:       %{name}-common = %{version}-%{release}
53
54 %description x11
55 This is Atari 800, 800XL, 130XE and 5200 emulator.
56
57 This package contains Atari800 executable file configured for X11 with
58 OSS sound and joystick support.
59
60 %description x11 -l pl.UTF-8
61 To jest emulator Atari 800, 800XL, 130XE i 5200.
62
63 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z
64 obsługą dźwięku OSS i joysticka.
65
66 %package SDL
67 Summary:        Atari 800 Emulator - SDL version
68 Summary(pl.UTF-8):      Emulator Atari 800 - wersja SDL
69 License:        GPL
70 Group:          Applications/Emulators
71 Requires:       %{name}-common = %{version}-%{release}
72 Obsoletes:      Atari800-svga < 2.1.0
73
74 %description SDL
75 This is Atari 800, 800XL, 130XE and 5200 emulator.
76
77 This package contains Atari800 executable file configured for SDL with
78 sound and joystick support.
79
80 %description SDL -l pl.UTF-8
81 To jest emulator Atari 800, 800XL, 130XE i 5200.
82
83 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
84 obsługą dźwięku i joysticka.
85
86 %prep
87 %setup -q -n atari800-%{version}
88
89 %build
90 cp -f /usr/share/automake/config.sub .
91
92 %configure \
93         --target=default \
94         --enable-crashmenu \
95         --disable-silent-rules \
96         --disable-stereosound \
97         --with-sound=sdl \
98         --with-video=sdl
99
100 %{__make}
101
102 %{__mv} src/atari800 atari800-SDL
103
104 %{__make} clean
105
106 %configure \
107         --target=x11-shm \
108         --enable-crashmenu \
109         --disable-silent-rules \
110         --disable-stereosound \
111         --with-sound=oss \
112         --with-video=yes
113
114 %{__make}
115
116 %{__mv} src/atari800 atari800-x11
117
118 %install
119 rm -rf $RPM_BUILD_ROOT
120 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/atari800,%{_mandir}/man1}
121
122 install atari800-x11 $RPM_BUILD_ROOT%{_bindir}
123 install atari800-SDL $RPM_BUILD_ROOT%{_bindir}
124 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/atari800
125 cp -p src/atari800.man $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1
126
127 %clean
128 rm -rf $RPM_BUILD_ROOT
129
130 %files common
131 %defattr(644,root,root,755)
132 %doc DOC/{BUGS,CREDITS,ChangeLog,FAQ,NEWS,README,TODO,USAGE,*.txt} README.TXT
133 %attr(755,root,root) %{_bindir}/atari800
134 %dir %{_datadir}/atari800
135 %{_mandir}/man1/atari800.1*
136
137 %files x11
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/atari800-x11
140
141 %files SDL
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_bindir}/atari800-SDL
This page took 0.043339 seconds and 2 git commands to generate.