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