]>
Commit | Line | Data |
---|---|---|
08366bdc JB |
1 | # |
2 | # Conditional build: | |
578a0f01 | 3 | # _without_gnome - without GNOME support |
08366bdc | 4 | # |
04657dff AM |
5 | Summary: Commodore emulator |
6 | Summary(pl): Emulator Commodore | |
7 | Name: vice | |
08d2bb96 | 8 | Version: 1.13 |
15df9e65 | 9 | Release: 1 |
04657dff AM |
10 | License: GPL |
11 | Group: Applications/Emulators | |
04657dff | 12 | Source0: ftp://ftp.funet.fi/pub/cbm/crossplatform/emulators/VICE/%{name}-%{version}.tar.gz |
08d2bb96 | 13 | # Source0-md5: 6e7bfc52bc273ebeb057c7cb21357c5b |
889c1a1d | 14 | Patch0: %{name}-info.patch |
96ab36ca | 15 | Patch1: %{name}-DESTDIR.patch |
42d1ee62 | 16 | Patch2: %{name}-gettext.patch |
5e62e29e | 17 | URL: http://viceteam.bei.t-online.de/ |
889c1a1d | 18 | BuildRequires: SDL-devel >= 1.2.0 |
04657dff | 19 | BuildRequires: XFree86-devel |
15df9e65 AM |
20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
889c1a1d | 22 | BuildRequires: bison |
23 | BuildRequires: esound-devel | |
24 | BuildRequires: flex | |
04657dff | 25 | BuildRequires: gettext-devel |
578a0f01 | 26 | %{!?_without_gnome:BuildRequires: gnome-libs-devel} |
04657dff | 27 | BuildRequires: libpng-devel |
889c1a1d | 28 | BuildRequires: readline-devel |
04657dff AM |
29 | BuildRequires: texinfo |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
04657dff AM |
32 | %description |
33 | VICE is a Versatile Commodore Emulator, i.e. a program that runs on a | |
34 | Unix, MS-DOS, Win95/NT, OS/2, RiscOS or BeOS machine and executes | |
35 | programs intended for the old 8-bit Commodore computers. The current | |
36 | version emulates the C64, the C128 (80 column screen is included now), | |
37 | the VIC20, all the PET models (except the SuperPET 9000, which is out | |
38 | of line anyway) and the CBM-II (aka C610). | |
39 | ||
40 | %description -l pl | |
41 | VICE jest wszechstronnym emulatorem 8-bitowego komputera Commodore. | |
42 | Aktualna wersja emuluje C64, C128 (wraz z trybem pracy 80 kolumnowym), | |
43 | VIC20, wszystkie modele PET (poza SuperPET 9000) oraz CBM-II (C610). | |
44 | ||
45 | %prep | |
46 | %setup -q | |
889c1a1d | 47 | %patch0 -p1 |
96ab36ca | 48 | %patch1 -p1 |
42d1ee62 | 49 | %patch2 -p1 |
04657dff AM |
50 | |
51 | %build | |
42d1ee62 JB |
52 | %{__gettextize} |
53 | %{__aclocal} | |
54 | %{__autoconf} | |
55 | %{__autoheader} | |
56 | %{__automake} | |
57 | cd src/resid | |
58 | %{__autoconf} | |
59 | cd ../.. | |
60 | %configure \ | |
04657dff | 61 | --enable-autobpp \ |
dd230523 | 62 | --with-sdl \ |
dd230523 | 63 | --enable-fullscreen \ |
578a0f01 | 64 | %{!?_without_gnome:--enable-gnomeui} \ |
dd230523 | 65 | --enable-nls \ |
764e9cd6 TP |
66 | --without-xaw3d \ |
67 | --without-included-gettext \ | |
68 | --with-x | |
04657dff AM |
69 | %{__make} |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
96ab36ca JB |
74 | %{__make} install \ |
75 | DESTDIR=$RPM_BUILD_ROOT | |
04657dff | 76 | |
42d1ee62 JB |
77 | %find_lang %{name} |
78 | ||
96ab36ca JB |
79 | %clean |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
049cc744 | 82 | %post |
f6bdd2c7 | 83 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
049cc744 AM |
84 | |
85 | %postun | |
f6bdd2c7 | 86 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
04657dff | 87 | |
42d1ee62 | 88 | %files -f %{name}.lang |
04657dff | 89 | %defattr(644,root,root,755) |
12a35a4d | 90 | %doc AUTHORS Chan* FEEDBACK NEWS README |
04657dff AM |
91 | %attr(0755,root,root) %{_bindir}/* |
92 | %{_libdir}/vice | |
93 | %{_mandir}/man?/* | |
96ab36ca | 94 | %{_infodir}/*.info* |