]> git.pld-linux.org Git - packages/vice.git/blame - vice.spec
- up to 3.3
[packages/vice.git] / vice.spec
CommitLineData
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 8Summary: Versatile Commodore Emulator
519284c8 9Summary(pl.UTF-8): Uniwersalny emulator Commodore
04657dff 10Name: vice
1eaa1df6
JR
11Version: 3.3
12Release: 1
f891a8f1 13License: GPL v2+
04657dff 14Group: Applications/Emulators
99afc398 15Source0: http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/%{name}-%{version}.tar.gz
1eaa1df6 16# Source0-md5: b0797f534b33f638220418207d606cf5
751346e1
TP
17Source1: %{name}-c128.desktop
18Source2: %{name}-c64.desktop
19Source3: %{name}-cbm2.desktop
20Source4: %{name}-pet.desktop
21Source5: %{name}-plus4.desktop
22Source6: %{name}-vic20.desktop
889c1a1d 23Patch0: %{name}-info.patch
1eaa1df6
JR
24Patch1: %{name}-fonts.patch
25URL: http://vice-emu.sourceforge.net/
2bf615bc 26BuildRequires: OpenGL-GLX-devel
889c1a1d 27BuildRequires: SDL-devel >= 1.2.0
a8af063f 28BuildRequires: alsa-lib-devel
15df9e65
AM
29BuildRequires: autoconf
30BuildRequires: automake
889c1a1d 31BuildRequires: bison
4af74e86 32BuildRequires: ffmpeg-devel
1eaa1df6 33BuildRequires: flac-devel
017efa79 34BuildRequires: flex
1eaa1df6 35BuildRequires: fontconfig-devel
2bf615bc 36BuildRequires: giflib-devel
1eaa1df6 37BuildRequires: gtk+3-devel
4af74e86 38BuildRequires: gtkglext-devel
2bf615bc 39BuildRequires: lame-libs-devel
1eaa1df6 40BuildRequires: libieee1284-devel
2bf615bc 41BuildRequires: libjpeg-devel
1eaa1df6
JR
42BuildRequires: libmpg123-devel
43BuildRequires: libogg-devel
04657dff 44BuildRequires: libpng-devel
36c85d58 45BuildRequires: libstdc++-devel
1eaa1df6
JR
46BuildRequires: libvorbis-devel
47BuildRequires: linux-libc-headers
da25f1a7 48BuildRequires: perl-base
2bf615bc 49BuildRequires: pkgconfig
4af74e86 50%{?with_pulseaudio:BuildRequires: pulseaudio-devel}
889c1a1d 51BuildRequires: readline-devel
04657dff 52BuildRequires: texinfo
1eaa1df6
JR
53BuildRequires: vte-devel
54BuildRequires: xa
f891a8f1 55BuildRequires: xorg-app-bdftopcf
99afc398 56BuildRequires: xorg-app-mkfontdir
2bf615bc
JB
57BuildRequires: xorg-lib-libX11-devel
58BuildRequires: xorg-lib-libXext-devel
59BuildRequires: xorg-lib-libXrandr-devel
60BuildRequires: xorg-lib-libXv-devel
61BuildRequires: xorg-lib-libXxf86dga-devel
62BuildRequires: xorg-lib-libXxf86vm-devel
375b9eb3 63Requires(post,postun): fontpostinst >= 0.1-6
04657dff
AM
64BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
65
04657dff
AM
66%description
67VICE is a Versatile Commodore Emulator, i.e. a program that runs on a
68Unix, MS-DOS, Win95/NT, OS/2, RiscOS or BeOS machine and executes
69programs intended for the old 8-bit Commodore computers. The current
70version emulates the C64, the C128 (80 column screen is included now),
71the VIC20, all the PET models (except the SuperPET 9000, which is out
751346e1 72of line anyway), CBM-II (aka C610) and the Plus4.
04657dff 73
28b804de 74%description -l pl.UTF-8
04657dff
AM
75VICE jest wszechstronnym emulatorem 8-bitowego komputera Commodore.
76Aktualna wersja emuluje C64, C128 (wraz z trybem pracy 80 kolumnowym),
28b804de
JR
77VIC20, wszystkie modele PET (poza SuperPET 9000, który zresztą nie
78pasował 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}
91cd src/resid
92%{__autoconf}
93cd ../..
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
110rm -rf $RPM_BUILD_ROOT
751346e1 111install -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
122install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
123install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
124install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
125install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
126install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
127install %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir}
128
4af74e86
JB
129install -d $RPM_BUILD_ROOT%{_fontsdir}/TTF
130mv $RPM_BUILD_ROOT%{_fontsdir}/{misc,TTF}/CBM.ttf
131
96ab36ca
JB
132%clean
133rm -rf $RPM_BUILD_ROOT
134
049cc744 135%post
4af74e86 136fontpostinst TTF
375b9eb3 137fontpostinst 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 141fontpostinst TTF
375b9eb3 142fontpostinst 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
This page took 0.135624 seconds and 4 git commands to generate.