X-Git-Url: http://git.pld-linux.org/?p=packages%2Fbochs.git;a=blobdiff_plain;f=bochs.spec;h=23dfea8fdf0df09b93b7e6c194839151fa8027e9;hp=ae077efc3664cd1118409565a72ea011342564a9;hb=560465c415f7aefcc2229df257a959b9c6122f5a;hpb=0339db013a1c6ba9864b188728021074d3af91e7 diff --git a/bochs.spec b/bochs.spec index ae077ef..23dfea8 100644 --- a/bochs.spec +++ b/bochs.spec @@ -1,14 +1,33 @@ +# TODO: +# - more subpackages (plugins) +# +# Conditional build: +%bcond_without svga # without svgalib support +# Summary: Portable x86 PC Emulator Summary(pl): Przeno¶ny emulator x86 PC Name: bochs -Version: 1.1.2 -Release: 1 +Version: 2.3 +Release: 0.1 License: GPL Group: Applications/Emulators -Group(de): Applikationen/Emulators -Group(pl): Aplikacje/Emulatory -Source0: http://prdownloads.sourceforge.net/bochs/%{name}-%{version}.tar.gz +Source0: http://dl.sourceforge.net/bochs/%{name}-%{version}.tar.gz +# Source0-md5: 100c02fbcd402c2b4862d0251be539fd +Patch0: %{name}-wx.patch URL: http://bochs.sourceforge.net/ +BuildRequires: SDL-devel +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: docbook-dtd41-sgml +BuildRequires: gtk+2-devel >= 1:2.0 +BuildRequires: libstdc++-devel +BuildRequires: ncurses-devel +BuildRequires: pkgconfig +%{?with_svga:BuildRequires: svgalib-devel} +BuildRequires: wxGTK2-devel +#BuildRequires: xorg-???-devel +BuildRequires: zlib-devel +#Requires: xorg-font-??? BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -18,60 +37,104 @@ Windows '95, Minix 2.0, and other OS's, all on your workstation. %description -l pl Bochs jest przeno¶nym emulatorem x86 PC emuluj±cym wystarczaj±co du¿o -architektóry procesora x86 oraz hardwaru AT i BIOS-u ¿eby uruchomiæ -DOS-a, windows'95, Minix 2.0 i inne systemu operacyjne, wszystkie na -twoim komputerze. +architektury procesora x86 oraz hardware'u AT i BIOS-u ¿eby uruchomiæ +DOS-a, Windows 95, Minix 2.0 i inne systemy operacyjne, wszystkie na +Twoim komputerze. %prep %setup -q +%patch0 -p1 %build +cp -f /usr/share/automake/config.sub . +%{__autoconf} +CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses `pkg-config gdk-2.0 --cflags`" +LDFLAGS=`pkg-config gdk-2.0 --libs` +export CXXFLAGS LDFLAGS +# --enable-x86-64 (not supported together with --enable-sep) +# --enable-debugger --enable-iodebug --enable-x86-debugger (slowdowns emulation) +# --enable-apic (no need to specify, configure will choose best depending on nr cpus) + +WXGTK2CONFIG="" +[ -x /usr/bin/wx-gtk2-ansi-config ] && WXGTK2CONFIG=wx-gtk2-ansi-config +[ -x /usr/bin/wxgtk-2.4-config ] && WXGTK2CONFIG=wxgtk-2.4-config + +[ "x$WXGTK2CONFIG" == "x" ] && echo "Can't find wxGTK2 config file!" && exit 1 + %configure \ - --with-x \ - --enable-cpu-level=5 \ - --enable-vga \ + WX_CONFIG=$WXGTK2CONFIG \ + --enable-new-pit \ + --enable-plugins \ + --enable-cpu-level=6 \ + --enable-compressed-hd \ + --enable-ne2000 \ + --enable-pci \ + --enable-usb \ + --enable-4meg-pages \ + --enable-pae \ + --enable-guest2host-tlb \ + --enable-repeat-speedups \ + --enable-icache \ +%ifarch %{ix86} + --enable-fast-function-calls \ +%endif + --enable-global-pages \ + --enable-host-specific-asms \ + --enable-ignore-bad-msr \ + --enable-disasm \ + --enable-all-optimizations \ + --enable-readline \ + --enable-instrumentation \ + --enable-vbe \ --enable-fpu \ + --enable-mmx \ + --enable-3dnow \ + --enable-sse=2 \ + --enable-sep \ --enable-cdrom \ - --with-x11 + --enable-sb16=linux \ + --enable-gameport \ + --with-x \ + --with-wx \ + --with-rfb \ + --with-sdl \ + %{?with_svga:-with-svga} \ + --with-x11 \ + --with-term \ + --with-rfb + %{__make} -cd font -for i in vga.bdf hercules.bdf; -do - bdftopcf $i -o `basename $i .bdf`.pcf -done; -cd .. %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/{%{_bindir},%{_datadir}/bochs/bios,%{_datadir}/fonts/misc} -install bochs $RPM_BUILD_ROOT/%{_bindir} -install bios/BIOS-bochs-990925a bios/VGABIOS-elpin-2.40 $RPM_BUILD_ROOT%{_datadir}/bochs/bios -mv -f .bochsrc .brc -echo "Example .bochrc file - put it into selected directory and modify" \ - "path to images" >.bochsrc -sed -e 's#bios#%{_datadir}/bochs/bios#g' <.brc >>.bochsrc -gzip -9nf docs-html/* bios/VGABIOS-elpin-LICENSE .bochsrc font/*.pcf -install font/*.pcf* $RPM_BUILD_ROOT%{_datadir}/fonts/misc +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT \ + docdir=%{_docdir}/%{name}-%{version} + +mv -f $RPM_BUILD_ROOT%{_datadir}/bochs/VGABIOS*{LICENSE,README} \ + $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} + +cp -f TESTFORM.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} + +#rm -f $RPM_BUILD_ROOT%{_datadir}/bochs/*fonts +#rm -f $RPM_BUILD_ROOT%{_datadir}/bochs/*pcf + +#find $RPM_BUILD_ROOT -type d -name CVS | xargs rm -rf %clean rm -rf $RPM_BUILD_ROOT -%post -if [ -x /usr/X11R6/bin/mkfontdir ]; then - (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir) -fi -killall -USR1 xfs > /dev/null 2>&1 ||: - -%postun -if [ -x /usr/X11R6/bin/mkfontdir ]; then - (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir) -fi -killall -USR1 xfs > /dev/null 2>&1 ||: %files %defattr(644,root,root,755) -%doc docs-html/* bios/VGABIOS-elpin-LICENSE* .bochsrc* -%attr(755,root,root) %{_bindir}/bochs -%dir %{_datadir}/bochs -%{_datadir}/bochs/* -%{_datadir}/fonts/misc/*.pcf* +%attr(755,root,root) %{_bindir}/* +%dir %{_libdir}/%{name} +%dir %{_libdir}/%{name}/plugins +%attr(755,root,root) %{_libdir}/%{name}/plugins/*.so.* +%{_libdir}/%{name}/plugins/*.la +%dir %{_datadir}/%{name} +%dir %{_datadir}/%{name}/keymaps +%{_datadir}/%{name}/keymaps/*.map +%{_datadir}/%{name}/*BIOS* +%{_mandir}/man[15]/* +%{_docdir}/%{name}-%{version}