3 %bcond_without ieee1284 # IEEE 1284 (parallel port) support for ParSID
4 %bcond_without openmp # OpenMP support
5 %bcond_without pulseaudio # pulseaudio support
6 %bcond_with catweasel # CatWeasel MK3 (PCI) hardware SID support
7 %bcond_with hardsid # HardSID (ISA/PCI) hardware SID support
8 %bcond_with parsid # ParSID (IEEE1284) hardware SID support
9 %bcond_with ssi2001 # SSI2001 (ISA) hardware SID support
12 %undefine with_ieee1284
14 Summary: Versatile Commodore Emulator
15 Summary(pl.UTF-8): Uniwersalny emulator Commodore
20 Group: Applications/Emulators
21 Source0: https://downloads.sourceforge.net/vice-emu/%{name}-%{version}.tar.gz
22 # Source0-md5: ffcb48e9b688d14dc5f86de22c30ee32
23 Source1: %{name}-c128.desktop
24 Source2: %{name}-c64.desktop
25 Source3: %{name}-cbm2.desktop
26 Source4: %{name}-pet.desktop
27 Source5: %{name}-plus4.desktop
28 Source6: %{name}-vic20.desktop
29 Patch0: %{name}-info.patch
30 Patch1: %{name}-bash.patch
31 Patch2: %{name}-opt.patch
32 Patch3: %{name}-link.patch
33 URL: https://vice-emu.sourceforge.io/
34 BuildRequires: OpenGL-GLU-devel
35 BuildRequires: OpenGL-GLX-devel
36 BuildRequires: SDL2-devel >= 2.0
37 BuildRequires: alsa-lib-devel
38 BuildRequires: autoconf >= 2.50
39 BuildRequires: automake
41 BuildRequires: ffmpeg-devel < 5
42 BuildRequires: flac-devel
44 BuildRequires: fontconfig-devel >= 2.0.0
45 BuildRequires: giflib-devel
46 BuildRequires: glew-devel
47 BuildRequires: glib2-devel >= 2.0
48 BuildRequires: gtk+3-devel >= 3.22
49 BuildRequires: lame-libs-devel
50 %{?with_ieee1284:BuildRequires: libieee1284-devel}
51 %{?with_openmp:BuildRequires: libgomp-devel}
52 BuildRequires: libmpg123-devel
53 BuildRequires: libogg-devel
54 BuildRequires: libpcap-devel
55 BuildRequires: libpng-devel
56 BuildRequires: libstdc++-devel >= 6:4.7
57 BuildRequires: libvorbis-devel
58 BuildRequires: linux-libc-headers
59 %if %{with catweasel} || %{with hardsid}
60 BuildRequires: pciutils-devel
62 BuildRequires: perl-base
63 BuildRequires: pkgconfig
64 BuildRequires: portaudio-devel
65 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
66 BuildRequires: readline-devel
67 BuildRequires: rpm-build >= 4.6
68 BuildRequires: texinfo
70 BuildRequires: xorg-lib-libX11-devel
71 BuildRequires: zlib-devel
72 Requires: fontconfig >= 2.0.0
73 Requires: gtk+3 >= 3.22
74 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
77 VICE is a Versatile Commodore Emulator, i.e. a program that runs on a
78 Unix, MS-DOS, Win95/NT, OS/2, RiscOS or BeOS machine and executes
79 programs intended for the old 8-bit Commodore computers. The current
80 version emulates the C64, the C128 (80 column screen is included now),
81 the VIC20, all the PET models (except the SuperPET 9000, which is out
82 of line anyway), CBM-II (aka C610) and the Plus4.
84 %description -l pl.UTF-8
85 VICE jest wszechstronnym emulatorem 8-bitowego komputera Commodore.
86 Aktualna wersja emuluje C64, C128 (wraz z trybem pracy 80 kolumnowym),
87 VIC20, wszystkie modele PET (poza SuperPET 9000, który zresztą nie
88 pasował do tej linii), CBM-II (C610) oraz Plus4.
91 Summary: VICE documentation in HTML format
92 Summary(pl.UTF-8): Dokumentacja do VICE w formacie HTML
97 VICE documentation in HTML format.
99 %description doc -l pl.UTF-8
100 Dokumentacja do VICE w formacie HTML.
114 export CFLAGS="%{rpmcflags} -fcommon"
116 DOS2UNIX=/usr/bin/dos2unix \
117 %{?with_catweasel:--enable-catweasel} \
121 %{!?with_hardsid:--disable-hardsid} \
123 %{?with_ieee1284:--enable-libieee1284} \
125 %{!?with_openmp:--disable-openmp} \
126 %{?with_parsid:--enable-parsid} \
128 %{?with_ssi2001:--enable-ssi2001} \
135 %{?with_pulseaudio:--with-pulse} \
142 rm -rf $RPM_BUILD_ROOT
143 install -d $RPM_BUILD_ROOT%{_desktopdir}
146 DESTDIR=$RPM_BUILD_ROOT
148 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
149 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
150 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
151 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
152 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
153 cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir}
155 %{__rm} $RPM_BUILD_ROOT%{_docdir}/vice/{*.txt,*.md,vice.texi}
158 rm -rf $RPM_BUILD_ROOT
161 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
164 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
167 %defattr(644,root,root,755)
168 %doc NEWS README doc/{CIA-README.txt,iec-bus.txt,readmes/Readme-SDL2.txt} doc/html/fonts/OFL.txt
169 %attr(755,root,root) %{_bindir}/c1541
170 %attr(755,root,root) %{_bindir}/cartconv
171 %attr(755,root,root) %{_bindir}/petcat
172 %attr(755,root,root) %{_bindir}/vsid
173 %attr(755,root,root) %{_bindir}/x128
174 %attr(755,root,root) %{_bindir}/x64
175 %attr(755,root,root) %{_bindir}/x64dtv
176 %attr(755,root,root) %{_bindir}/x64sc
177 %attr(755,root,root) %{_bindir}/xcbm2
178 %attr(755,root,root) %{_bindir}/xcbm5x0
179 %attr(755,root,root) %{_bindir}/xpet
180 %attr(755,root,root) %{_bindir}/xplus4
181 %attr(755,root,root) %{_bindir}/xscpu64
182 %attr(755,root,root) %{_bindir}/xvic
184 %{_infodir}/vice.info*
185 %{_desktopdir}/vice-*.desktop
188 %defattr(644,root,root,755)
189 %doc doc/html/{fonts,images,*.css,*.html,NEWS,COPYING,favicon.ico,robots.txt}