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