- upgraded to 1.3
[packages/bochs.git] / bochs.spec
1 Summary:        Portable x86 PC Emulator
2 Summary(pl):    Przeno¶ny emulator x86 PC
3 Name:           bochs
4 Version:        1.3
5 Release:        1
6 License:        GPL
7 Group:          Applications/Emulators
8 Source0:        http://prdownloads.sourceforge.net/bochs/%{name}-%{version}.tar.gz
9 URL:            http://bochs.sourceforge.net/
10 BuildRequires:  XFree86-devel
11 BuildRequires:  libstdc++-devel
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 Bochs is a portable x86 PC emulation software package that emulates
16 enough of the x86 CPU, related AT hardware, and BIOS to run DOS,
17 Windows '95, Minix 2.0, and other OS's, all on your workstation.
18
19 %description -l pl
20 Bochs jest przeno¶nym emulatorem x86 PC emuluj±cym wystarczaj±co du¿o
21 architektury procesora x86 oraz hardware'u AT i BIOS-u ¿eby uruchomiæ
22 DOS-a, Windows'95, Minix 2.0 i inne systemu operacyjne, wszystkie na
23 Twoim komputerze.
24
25 %prep
26 %setup -q
27
28 %build
29 %configure2_13 \
30         --with-x \
31         --enable-cpu-level=5 \
32         --enable-vga \
33         --enable-fpu \
34         --enable-cdrom \
35         --with-x11
36 %{__make}
37 cd font
38 #for i in vga.bdf hercules.bdf;
39 #do
40 #       bdftopcf $i -o `basename $i .bdf`.pcf
41 #done;
42 # vga.pcf has moved to XFree86-fonts
43 bdftopcf hercules.bdf -o hercules.pcf
44 cd ..
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_datadir}/bochs/bios,%{_datadir}/fonts/misc,%{_mandir}/man1}
50 install bochs install-x11-fonts bximage $RPM_BUILD_ROOT/%{_bindir}
51 install bios/BIOS-bochs-latest* bios/VGABIOS-elpin-2.40 $RPM_BUILD_ROOT%{_datadir}/bochs/bios
52 install doc/man/{bochs,bochsrc,bximage}.1 $RPM_BUILD_ROOT%{_mandir}/man1
53
54 mv -f .bochsrc .brc
55 echo "Example .bochrc file - put it into selected directory and modify" \
56      "path to images" >.bochsrc
57 sed -e 's#bios#%{_datadir}/bochs/bios#g' <.brc >>.bochsrc
58
59 gzip -9nf bios/VGABIOS-elpin-LICENSE .bochsrc font/*.pcf CHANGES TESTFORM.txt
60
61 install font/hercules.pcf* $RPM_BUILD_ROOT%{_datadir}/fonts/misc
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65 %post
66 if [ -x /usr/X11R6/bin/mkfontdir ]; then
67         (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
68 fi
69 killall -USR1 xfs > /dev/null 2>&1 ||:
70
71 %postun
72 if [ -x /usr/X11R6/bin/mkfontdir ]; then
73         (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
74 fi
75 killall -USR1 xfs > /dev/null 2>&1 ||:
76
77 %files
78 %defattr(644,root,root,755)
79 %doc docs-html/*.html bios/VGABIOS-elpin-LICENSE* .bochsrc* *.gz
80 %attr(755,root,root) %{_bindir}/bochs
81 %attr(755,root,root) %{_bindir}/bximage
82 %dir %{_datadir}/bochs
83 %{_datadir}/bochs/*
84 %{_datadir}/fonts/misc/*.pcf*
85 %{_mandir}/man1/*
This page took 0.095787 seconds and 3 git commands to generate.