]>
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 | |
42d1ee62 | 8 | Version: 1.12 |
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 |
42d1ee62 | 13 | # Source0-md5: 2d761503025a84758b289564e390c7c8 |
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 | |
33 | %description | |
34 | VICE is a Versatile Commodore Emulator, i.e. a program that runs on a | |
35 | Unix, MS-DOS, Win95/NT, OS/2, RiscOS or BeOS machine and executes | |
36 | programs intended for the old 8-bit Commodore computers. The current | |
37 | version emulates the C64, the C128 (80 column screen is included now), | |
38 | the VIC20, all the PET models (except the SuperPET 9000, which is out | |
39 | of line anyway) and the CBM-II (aka C610). | |
40 | ||
41 | %description -l pl | |
42 | VICE jest wszechstronnym emulatorem 8-bitowego komputera Commodore. | |
43 | Aktualna wersja emuluje C64, C128 (wraz z trybem pracy 80 kolumnowym), | |
44 | VIC20, wszystkie modele PET (poza SuperPET 9000) oraz CBM-II (C610). | |
45 | ||
46 | %prep | |
47 | %setup -q | |
889c1a1d | 48 | %patch0 -p1 |
96ab36ca | 49 | %patch1 -p1 |
42d1ee62 | 50 | %patch2 -p1 |
04657dff AM |
51 | |
52 | %build | |
42d1ee62 JB |
53 | %{__gettextize} |
54 | %{__aclocal} | |
55 | %{__autoconf} | |
56 | %{__autoheader} | |
57 | %{__automake} | |
58 | cd src/resid | |
59 | %{__autoconf} | |
60 | cd ../.. | |
61 | %configure \ | |
04657dff | 62 | --enable-autobpp \ |
dd230523 | 63 | --with-sdl \ |
dd230523 | 64 | --enable-fullscreen \ |
578a0f01 | 65 | %{!?_without_gnome:--enable-gnomeui} \ |
dd230523 | 66 | --enable-nls \ |
764e9cd6 TP |
67 | --without-xaw3d \ |
68 | --without-included-gettext \ | |
69 | --with-x | |
04657dff AM |
70 | %{__make} |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
96ab36ca JB |
75 | %{__make} install \ |
76 | DESTDIR=$RPM_BUILD_ROOT | |
04657dff | 77 | |
42d1ee62 JB |
78 | %find_lang %{name} |
79 | ||
96ab36ca JB |
80 | %clean |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
049cc744 | 83 | %post |
f6bdd2c7 | 84 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
049cc744 AM |
85 | |
86 | %postun | |
f6bdd2c7 | 87 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
04657dff | 88 | |
42d1ee62 | 89 | %files -f %{name}.lang |
04657dff | 90 | %defattr(644,root,root,755) |
12a35a4d | 91 | %doc AUTHORS Chan* FEEDBACK NEWS README |
04657dff AM |
92 | %attr(0755,root,root) %{_bindir}/* |
93 | %{_libdir}/vice | |
94 | %{_mandir}/man?/* | |
96ab36ca | 95 | %{_infodir}/*.info* |