]> git.pld-linux.org Git - packages/Atari800.git/blame - Atari800.spec
- updated to 4.2.0
[packages/Atari800.git] / Atari800.spec
CommitLineData
d657d007
JB
1#
2# Conditional build:
af4c66f1 3%bcond_with license_agreement # with unzipped ROM files instead of xf25.zip
af4c66f1 4#
d657d007 5Summary: Atari 800 Emulator
ad763a77 6Summary(pl.UTF-8): Emulator Atari 800
d657d007 7Name: Atari800
e33b8bdc
JB
8Version: 4.2.0
9Release: 1
e54121ec 10License: GPL v2+ (Atari800), distributable if unmodified (xf25 with ROMs)
d657d007 11Group: Applications/Emulators
e33b8bdc
JB
12#Source0Download: https://github.com/atari800/atari800/releases
13Source0: https://github.com/atari800/atari800/releases/download/ATARI800_4_2_0/atari800-%{version}-src.tgz
14# Source0-md5: 695031b9bc3461cd18ec9090779d984b
d657d007
JB
15# NOTE: ROMs probably can be redistributed only in original XF25 archive
16Source1: http://joy.sophics.cz/www/xf25.zip
a2247a56 17# Source1-md5: 4dc3b6b4313e9596c4d474785a37b94d
d657d007 18Source2: %{name}-chooser
56ebf01c 19URL: https://atari800.github.io/
8525291b 20BuildRequires: SDL-devel
f19ff0c8 21BuildRequires: automake
af4c66f1 22%if %{with license_agreement}
8525291b 23BuildRequires: unzip
af4c66f1 24%endif
ac602993 25BuildRequires: xorg-lib-libX11-devel
c283af33 26BuildRequires: xorg-lib-libXext-devel
d657d007 27BuildRequires: zlib-devel
5f8fb39a 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
d657d007 29
8e539164
TP
30%define specflags -fomit-frame-pointer
31
d657d007 32%description
5af21d09
JB
33This is Atari 800, 800XL, 130XE and 5200 emulator.
34
a1f05138 35%description -l pl.UTF-8
5af21d09 36To jest emulator Atari 800, 800XL, 130XE i 5200.
d657d007
JB
37
38%package common
e54121ec
JB
39Summary: Atari 800 Emulator - common files for SDL and X11 versions
40Summary(pl.UTF-8): Emulator Atari 800 - pliki wspólne dla wersji SDL oraz X11
d657d007 41Group: Applications/Emulators
d657d007 42Obsoletes: Atari800
e33b8bdc 43%if %{without license_agreement}
af4c66f1 44Requires(post): unzip
96d99a48 45%endif
d657d007
JB
46
47%description common
48This is Atari 800, 800XL, 130XE and 5200 emulator.
49
e54121ec 50This package contains common files for both SDL and X11 versions
d657d007 51of Atari800.
e33b8bdc 52%if %{without license_agreement}
96d99a48 53Note: because of license problems we had to include whole X-Former
af4c66f1 54archive (xf25.zip). If you don't want it - rebuild Atari800 (--with
96d99a48 55license_agreement)
56%endif
d657d007 57
a1f05138 58%description common -l pl.UTF-8
d657d007
JB
59To jest emulator Atari 800, 800XL, 130XE i 5200.
60
e54121ec 61Ten pakiet zawiera pliki wspólne dla wersji działających pod SDL
d657d007 62oraz X11.
e33b8bdc 63%if %{without license_agreement}
a1f05138
JR
64Uwaga: z powodu problemów z licencją musieliśmy załączyć całą paczkę
65z emulatorem X-Former (xf25.zip). Jeśli jej nie chcesz w pakiecie -
96d99a48 66przebuduj pakiet z opcja --with license_agreement.
67%endif
d657d007 68
d657d007
JB
69%package x11
70Summary: Atari 800 Emulator - X Window version
e54121ec 71Summary(pl.UTF-8): Emulator Atari 800 - wersja dla systemu X Window
506ed555 72License: GPL
d657d007 73Group: Applications/Emulators
c283af33 74Requires: %{name}-common = %{version}-%{release}
d657d007
JB
75
76%description x11
77This is Atari 800, 800XL, 130XE and 5200 emulator.
78
79This package contains Atari800 executable file configured for X11 with
ac602993 80OSS sound and joystick support.
d657d007 81
a1f05138 82%description x11 -l pl.UTF-8
d657d007
JB
83To jest emulator Atari 800, 800XL, 130XE i 5200.
84
85Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z
ac602993 86obsługą dźwięku OSS i joysticka.
d657d007 87
9a1322ff 88%package SDL
89Summary: Atari 800 Emulator - SDL version
e54121ec 90Summary(pl.UTF-8): Emulator Atari 800 - wersja SDL
506ed555 91License: GPL
9a1322ff 92Group: Applications/Emulators
c283af33 93Requires: %{name}-common = %{version}-%{release}
e54121ec 94Obsoletes: Atari800-svga
9a1322ff 95
96%description SDL
97This is Atari 800, 800XL, 130XE and 5200 emulator.
98
99This package contains Atari800 executable file configured for SDL with
100sound and joystick support.
101
a1f05138 102%description SDL -l pl.UTF-8
9a1322ff 103To jest emulator Atari 800, 800XL, 130XE i 5200.
104
105Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
a1f05138 106obsługą dźwięku i joysticka.
9a1322ff 107
d657d007 108%prep
4155e5a1 109%setup -q -n atari800-%{version}
d657d007
JB
110
111%build
6724d276 112cp -f /usr/share/automake/config.sub .
113
3b3b5f88 114%configure \
e33b8bdc 115 --target=default \
64f9b058 116 --enable-crashmenu \
e33b8bdc 117 --disable-silent-rules \
ac602993
JB
118 --disable-stereosound \
119 --with-sound=sdl \
120 --with-video=sdl
c4608639 121
8525291b
JB
122%{__make}
123
e33b8bdc 124%{__mv} src/atari800 atari800-SDL
d657d007 125
31f4e061
JB
126%{__make} clean
127
3b3b5f88 128%configure \
ac602993 129 --target=x11-shm \
64f9b058 130 --enable-crashmenu \
e33b8bdc 131 --disable-silent-rules \
ac602993
JB
132 --disable-stereosound \
133 --with-sound=oss \
e33b8bdc 134 --with-video=yes
9a1322ff 135
8525291b 136%{__make}
506ed555 137
e33b8bdc 138%{__mv} src/atari800 atari800-x11
d657d007
JB
139
140%install
141rm -rf $RPM_BUILD_ROOT
0a51bfa3 142install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/atari800,%{_mandir}/man1}
d657d007 143
e33b8bdc
JB
144install atari800-x11 $RPM_BUILD_ROOT%{_bindir}
145install atari800-SDL $RPM_BUILD_ROOT%{_bindir}
146cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/atari800
147cp -p src/atari800.man $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1
d657d007 148
96d99a48 149%if %{with license_agreement}
d657d007 150unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800
e54121ec 151%{__rm} $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.*
d657d007
JB
152%else
153install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800
154%endif
155
d657d007
JB
156%clean
157rm -rf $RPM_BUILD_ROOT
158
e33b8bdc 159%if %{without license_agreement}
d657d007
JB
160%post common
161cd %{_datadir}/atari800
5cec04d2
JB
162if [ "`echo *.rom`" = "*.rom" ]; then
163 umask 022
164 unzip -q -L xf25.zip
165 rm -f xf25.doc xf25.exe
166fi
d657d007
JB
167%endif
168
169%files common
170%defattr(644,root,root,755)
e33b8bdc 171%doc DOC/{BUGS,CREDITS,ChangeLog,FAQ,NEWS,README,TODO,USAGE,*.txt} README.TXT
f9059396 172%attr(755,root,root) %{_bindir}/atari800
d657d007
JB
173%{_datadir}/atari800
174%{_mandir}/man1/atari800.1*
d657d007 175
d657d007
JB
176%files x11
177%defattr(644,root,root,755)
8525291b 178%attr(755,root,root) %{_bindir}/atari800-x11
9a1322ff 179
180%files SDL
181%defattr(644,root,root,755)
8525291b 182%attr(755,root,root) %{_bindir}/atari800-SDL
This page took 0.093488 seconds and 4 git commands to generate.