]>
Commit | Line | Data |
---|---|---|
4cfdf927 ER |
1 | # TODO |
2 | # - fonts-TTF-CBM subpackage: | |
3 | # %{_fontsdir}/TTF/CBM.ttf | |
4af74e86 JB |
4 | # |
5 | # Conditional build: | |
4af74e86 | 6 | %bcond_without pulseaudio # pulseaudio support |
c93d7b0e | 7 | # |
751346e1 | 8 | Summary: Versatile Commodore Emulator |
519284c8 | 9 | Summary(pl.UTF-8): Uniwersalny emulator Commodore |
04657dff | 10 | Name: vice |
1eaa1df6 JR |
11 | Version: 3.3 |
12 | Release: 1 | |
f891a8f1 | 13 | License: GPL v2+ |
04657dff | 14 | Group: Applications/Emulators |
99afc398 | 15 | Source0: http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/%{name}-%{version}.tar.gz |
1eaa1df6 | 16 | # Source0-md5: b0797f534b33f638220418207d606cf5 |
751346e1 TP |
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 | |
889c1a1d | 23 | Patch0: %{name}-info.patch |
1eaa1df6 JR |
24 | Patch1: %{name}-fonts.patch |
25 | URL: http://vice-emu.sourceforge.net/ | |
2bf615bc | 26 | BuildRequires: OpenGL-GLX-devel |
889c1a1d | 27 | BuildRequires: SDL-devel >= 1.2.0 |
a8af063f | 28 | BuildRequires: alsa-lib-devel |
15df9e65 AM |
29 | BuildRequires: autoconf |
30 | BuildRequires: automake | |
889c1a1d | 31 | BuildRequires: bison |
4af74e86 | 32 | BuildRequires: ffmpeg-devel |
1eaa1df6 | 33 | BuildRequires: flac-devel |
017efa79 | 34 | BuildRequires: flex |
1eaa1df6 | 35 | BuildRequires: fontconfig-devel |
2bf615bc | 36 | BuildRequires: giflib-devel |
1eaa1df6 | 37 | BuildRequires: gtk+3-devel |
4af74e86 | 38 | BuildRequires: gtkglext-devel |
2bf615bc | 39 | BuildRequires: lame-libs-devel |
1eaa1df6 | 40 | BuildRequires: libieee1284-devel |
2bf615bc | 41 | BuildRequires: libjpeg-devel |
1eaa1df6 JR |
42 | BuildRequires: libmpg123-devel |
43 | BuildRequires: libogg-devel | |
04657dff | 44 | BuildRequires: libpng-devel |
36c85d58 | 45 | BuildRequires: libstdc++-devel |
1eaa1df6 JR |
46 | BuildRequires: libvorbis-devel |
47 | BuildRequires: linux-libc-headers | |
da25f1a7 | 48 | BuildRequires: perl-base |
2bf615bc | 49 | BuildRequires: pkgconfig |
4af74e86 | 50 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} |
889c1a1d | 51 | BuildRequires: readline-devel |
04657dff | 52 | BuildRequires: texinfo |
1eaa1df6 JR |
53 | BuildRequires: vte-devel |
54 | BuildRequires: xa | |
f891a8f1 | 55 | BuildRequires: xorg-app-bdftopcf |
99afc398 | 56 | BuildRequires: xorg-app-mkfontdir |
2bf615bc JB |
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 | |
375b9eb3 | 63 | Requires(post,postun): fontpostinst >= 0.1-6 |
04657dff AM |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
65 | ||
04657dff AM |
66 | %description |
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 | |
751346e1 | 72 | of line anyway), CBM-II (aka C610) and the Plus4. |
04657dff | 73 | |
28b804de | 74 | %description -l pl.UTF-8 |
04657dff AM |
75 | VICE jest wszechstronnym emulatorem 8-bitowego komputera Commodore. |
76 | Aktualna wersja emuluje C64, C128 (wraz z trybem pracy 80 kolumnowym), | |
28b804de JR |
77 | VIC20, wszystkie modele PET (poza SuperPET 9000, który zresztą nie |
78 | pasował do tej linii), CBM-II (C610) oraz Plus4. | |
04657dff AM |
79 | |
80 | %prep | |
81 | %setup -q | |
889c1a1d | 82 | %patch0 -p1 |
96ab36ca | 83 | %patch1 -p1 |
41847209 | 84 | %{__perl} -i -pe 's@\$\(VICEDIR\)/fonts@%{_fontsdir}/misc@' data/fonts/Makefile.am |
04657dff AM |
85 | |
86 | %build | |
375b9eb3 | 87 | %{__aclocal} -I m4 |
42d1ee62 JB |
88 | %{__autoconf} |
89 | %{__autoheader} | |
90 | %{__automake} | |
91 | cd src/resid | |
92 | %{__autoconf} | |
93 | cd ../.. | |
94 | %configure \ | |
1eaa1df6 | 95 | DOS2UNIX=/usr/bin/dos2unix \ |
375b9eb3 | 96 | --libdir=%{_datadir} \ |
4af74e86 | 97 | %{?with_pulseaudio:--with-pulse} \ |
1eaa1df6 JR |
98 | --enable-libieee1284 \ |
99 | --enable-native-gtk3ui \ | |
017efa79 | 100 | --with-sdlsound \ |
1eaa1df6 JR |
101 | --enable-external-ffmpeg \ |
102 | --enable-ethernet \ | |
103 | --with-x | |
4af74e86 | 104 | |
36c85d58 JB |
105 | # contains some C++ code included as "old" library (.a), so libtool can't detect it |
106 | %{__make} \ | |
107 | CCLD="%{__cxx}" | |
04657dff AM |
108 | |
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
751346e1 | 111 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
04657dff | 112 | |
41847209 | 113 | %{__perl} -i -pe 's/SUBDIRS = html\n//' doc/Makefile |
96ab36ca | 114 | %{__make} install \ |
99afc398 | 115 | DESTDIR=$RPM_BUILD_ROOT \ |
116 | VICEDIR="%{_datadir}/%{name}" | |
04657dff | 117 | |
4af74e86 | 118 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vice/doc |
99afc398 | 119 | # ? |
120 | #ln -sf %{_docdir}/%{name}-%{version}/html $RPM_BUILD_ROOT%{_datadir}/vice/doc | |
375b9eb3 | 121 | |
751346e1 TP |
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} | |
128 | ||
4af74e86 JB |
129 | install -d $RPM_BUILD_ROOT%{_fontsdir}/TTF |
130 | mv $RPM_BUILD_ROOT%{_fontsdir}/{misc,TTF}/CBM.ttf | |
131 | ||
96ab36ca JB |
132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
049cc744 | 135 | %post |
4af74e86 | 136 | fontpostinst TTF |
375b9eb3 | 137 | fontpostinst misc |
f6bdd2c7 | 138 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
049cc744 AM |
139 | |
140 | %postun | |
4af74e86 | 141 | fontpostinst TTF |
375b9eb3 | 142 | fontpostinst misc |
f6bdd2c7 | 143 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
04657dff | 144 | |
1eaa1df6 | 145 | %files |
04657dff | 146 | %defattr(644,root,root,755) |
017efa79 | 147 | %doc AUTHORS ChangeLog FEEDBACK NEWS README doc/iec-bus.txt doc/html |
4af74e86 JB |
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 | |
017efa79 | 155 | %attr(755,root,root) %{_bindir}/x64sc |
4af74e86 | 156 | %attr(755,root,root) %{_bindir}/xcbm2 |
c93d7b0e | 157 | %attr(755,root,root) %{_bindir}/xcbm5x0 |
4af74e86 JB |
158 | %attr(755,root,root) %{_bindir}/xpet |
159 | %attr(755,root,root) %{_bindir}/xplus4 | |
1eaa1df6 | 160 | %attr(755,root,root) %{_bindir}/xscpu64 |
4af74e86 | 161 | %attr(755,root,root) %{_bindir}/xvic |
375b9eb3 | 162 | %{_datadir}/vice |
4af74e86 JB |
163 | %{_fontsdir}/misc/vice-cbm.bdf |
164 | %{_fontsdir}/TTF/CBM.ttf | |
1eaa1df6 | 165 | %{_mandir}/man1/cartconv.1* |
4af74e86 JB |
166 | %{_mandir}/man1/c1541.1* |
167 | %{_mandir}/man1/petcat.1* | |
168 | %{_mandir}/man1/vice.1* | |
169 | %{_infodir}/vice.info* | |
170 | %{_desktopdir}/vice-*.desktop |