2 # - fonts-TTF-CBM subpackage:
3 # %{_fontsdir}/TTF/CBM.ttf
6 %bcond_without pulseaudio # pulseaudio support
8 Summary: Versatile Commodore Emulator
9 Summary(pl.UTF-8): Uniwersalny emulator Commodore
14 Group: Applications/Emulators
15 Source0: http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/%{name}-%{version}.tar.gz
16 # Source0-md5: b0797f534b33f638220418207d606cf5
17 Source1: %{name}-c128.desktop
18 Source2: %{name}-c64.desktop
19 Source3: %{name}-cbm2.desktop
20 Source4: %{name}-pet.desktop
21 Source5: %{name}-plus4.desktop
22 Source6: %{name}-vic20.desktop
23 Patch0: %{name}-info.patch
24 Patch1: %{name}-fonts.patch
25 URL: http://vice-emu.sourceforge.net/
26 BuildRequires: OpenGL-GLX-devel
27 BuildRequires: SDL-devel >= 1.2.0
28 BuildRequires: alsa-lib-devel
29 BuildRequires: autoconf
30 BuildRequires: automake
32 BuildRequires: ffmpeg-devel
33 BuildRequires: flac-devel
35 BuildRequires: fontconfig-devel
36 BuildRequires: giflib-devel
37 BuildRequires: gtk+3-devel
38 BuildRequires: gtkglext-devel
39 BuildRequires: lame-libs-devel
40 BuildRequires: libieee1284-devel
41 BuildRequires: libjpeg-devel
42 BuildRequires: libmpg123-devel
43 BuildRequires: libogg-devel
44 BuildRequires: libpng-devel
45 BuildRequires: libstdc++-devel
46 BuildRequires: libvorbis-devel
47 BuildRequires: linux-libc-headers
48 BuildRequires: perl-base
49 BuildRequires: pkgconfig
50 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
51 BuildRequires: readline-devel
52 BuildRequires: texinfo
53 BuildRequires: vte-devel
55 BuildRequires: xorg-app-bdftopcf
56 BuildRequires: xorg-app-mkfontdir
57 BuildRequires: xorg-lib-libX11-devel
58 BuildRequires: xorg-lib-libXext-devel
59 BuildRequires: xorg-lib-libXrandr-devel
60 BuildRequires: xorg-lib-libXv-devel
61 BuildRequires: xorg-lib-libXxf86dga-devel
62 BuildRequires: xorg-lib-libXxf86vm-devel
63 Requires(post,postun): fontpostinst >= 0.1-6
64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67 VICE is a Versatile Commodore Emulator, i.e. a program that runs on a
68 Unix, MS-DOS, Win95/NT, OS/2, RiscOS or BeOS machine and executes
69 programs intended for the old 8-bit Commodore computers. The current
70 version emulates the C64, the C128 (80 column screen is included now),
71 the VIC20, all the PET models (except the SuperPET 9000, which is out
72 of line anyway), CBM-II (aka C610) and the Plus4.
74 %description -l pl.UTF-8
75 VICE jest wszechstronnym emulatorem 8-bitowego komputera Commodore.
76 Aktualna wersja emuluje C64, C128 (wraz z trybem pracy 80 kolumnowym),
77 VIC20, wszystkie modele PET (poza SuperPET 9000, który zresztą nie
78 pasował do tej linii), CBM-II (C610) oraz Plus4.
84 %{__perl} -i -pe 's@\$\(VICEDIR\)/fonts@%{_fontsdir}/misc@' data/fonts/Makefile.am
95 DOS2UNIX=/usr/bin/dos2unix \
96 --libdir=%{_datadir} \
97 %{?with_pulseaudio:--with-pulse} \
98 --enable-libieee1284 \
99 --enable-native-gtk3ui \
101 --enable-external-ffmpeg \
105 # contains some C++ code included as "old" library (.a), so libtool can't detect it
110 rm -rf $RPM_BUILD_ROOT
111 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
113 %{__perl} -i -pe 's/SUBDIRS = html\n//' doc/Makefile
115 DESTDIR=$RPM_BUILD_ROOT \
116 VICEDIR="%{_datadir}/%{name}"
118 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vice/doc
120 #ln -sf %{_docdir}/%{name}-%{version}/html $RPM_BUILD_ROOT%{_datadir}/vice/doc
122 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
123 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
124 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
125 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
126 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
127 install %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir}
129 install -d $RPM_BUILD_ROOT%{_fontsdir}/TTF
130 mv $RPM_BUILD_ROOT%{_fontsdir}/{misc,TTF}/CBM.ttf
133 rm -rf $RPM_BUILD_ROOT
138 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
143 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
146 %defattr(644,root,root,755)
147 %doc AUTHORS ChangeLog FEEDBACK NEWS README doc/iec-bus.txt doc/html
148 %attr(755,root,root) %{_bindir}/c1541
149 %attr(755,root,root) %{_bindir}/cartconv
150 %attr(755,root,root) %{_bindir}/petcat
151 %attr(755,root,root) %{_bindir}/vsid
152 %attr(755,root,root) %{_bindir}/x128
153 %attr(755,root,root) %{_bindir}/x64
154 %attr(755,root,root) %{_bindir}/x64dtv
155 %attr(755,root,root) %{_bindir}/x64sc
156 %attr(755,root,root) %{_bindir}/xcbm2
157 %attr(755,root,root) %{_bindir}/xcbm5x0
158 %attr(755,root,root) %{_bindir}/xpet
159 %attr(755,root,root) %{_bindir}/xplus4
160 %attr(755,root,root) %{_bindir}/xscpu64
161 %attr(755,root,root) %{_bindir}/xvic
163 %{_fontsdir}/misc/vice-cbm.bdf
164 %{_fontsdir}/TTF/CBM.ttf
165 %{_mandir}/man1/cartconv.1*
166 %{_mandir}/man1/c1541.1*
167 %{_mandir}/man1/petcat.1*
168 %{_mandir}/man1/vice.1*
169 %{_infodir}/vice.info*
170 %{_desktopdir}/vice-*.desktop