]> git.pld-linux.org Git - packages/Atari800.git/blob - Atari800.spec
5912731c0127574ba55fe3a7eba452f12b20bb68
[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 Patch0:         %{name}-romdir.patch
13 URL:            https://atari800.github.io/
14 BuildRequires:  SDL-devel >= 1.2
15 BuildRequires:  automake
16 BuildRequires:  libpng-devel
17 BuildRequires:  readline-devel
18 BuildRequires:  xorg-lib-libX11-devel
19 BuildRequires:  xorg-lib-libXext-devel
20 BuildRequires:  zlib-devel
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         specflags       -fomit-frame-pointer
24
25 %description
26 This is Atari 800, 800XL, 130XE and 5200 emulator.
27
28 %description -l pl.UTF-8
29 To jest emulator Atari 800, 800XL, 130XE i 5200.
30
31 %package common
32 Summary:        Atari 800 Emulator - common files for SDL and X11 versions
33 Summary(pl.UTF-8):      Emulator Atari 800 - pliki wspólne dla wersji SDL oraz X11
34 Group:          Applications/Emulators
35 Suggests:       Atari800-rom
36 Obsoletes:      Atari800 < 1.0.7
37
38 %description common
39 This is Atari 800, 800XL, 130XE and 5200 emulator.
40
41 This package contains common files for both SDL and X11 versions
42 of Atari800.
43
44 %description common -l pl.UTF-8
45 To jest emulator Atari 800, 800XL, 130XE i 5200.
46
47 Ten pakiet zawiera pliki wspólne dla wersji działających pod SDL
48 oraz X11.
49
50 %package x11
51 Summary:        Atari 800 Emulator - X Window version
52 Summary(pl.UTF-8):      Emulator Atari 800 - wersja dla systemu X Window
53 License:        GPL
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 License:        GPL
73 Group:          Applications/Emulators
74 Requires:       %{name}-common = %{version}-%{release}
75 Obsoletes:      Atari800-svga < 2.1.0
76
77 %description SDL
78 This is Atari 800, 800XL, 130XE and 5200 emulator.
79
80 This package contains Atari800 executable file configured for SDL with
81 sound and joystick support.
82
83 %description SDL -l pl.UTF-8
84 To jest emulator Atari 800, 800XL, 130XE i 5200.
85
86 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
87 obsługą dźwięku i joysticka.
88
89 %prep
90 %setup -q -n atari800-%{version}
91 %patch0 -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.046944 seconds and 2 git commands to generate.