]> git.pld-linux.org Git - packages/bochs.git/blob - bochs.spec
6dc7d9dbe704542ae9617ba83608e9ba4619ad29
[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.4.1
5 Release:        0.5
6 License:        GPL
7 Group:          Applications/Emulators
8 Source0:        http://telia.dl.sourceforge.net/sourceforge/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 %configure \
30         --enable-cdrom \
31         --enable-control-panel \
32         --enable-cpu-level=6 \
33         --enable-fpu \
34         --enable-vbe \
35         --enable-vga \
36         --with-x \
37         --with-x11
38 %{__make}
39 cd font
40 #for i in vga.bdf hercules.bdf;
41 #do
42 #       bdftopcf $i -o `basename $i .bdf`.pcf
43 #done;
44 # vga.pcf has moved to XFree86-fonts
45 bdftopcf hercules.bdf -o hercules.pcf
46 cd ..
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_datadir}/bochs/bios,%{_datadir}/fonts/misc,%{_mandir}/man1}
52 install bochs install-x11-fonts bximage $RPM_BUILD_ROOT/%{_bindir}
53 install bios/BIOS-bochs-latest* bios/VGABIOS-elpin-2.40 $RPM_BUILD_ROOT%{_datadir}/bochs/bios
54 install doc/man/{bochs,bochsrc,bximage}.1 $RPM_BUILD_ROOT%{_mandir}/man1
55
56 mv -f .bochsrc .brc
57 echo "Example .bochrc file - put it into selected directory and modify" \
58      "path to images" >.bochsrc
59 sed -e 's#bios#%{_datadir}/bochs/bios#g' <.brc >>.bochsrc
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 CHANGES TESTFORM.txt font/*.pcf
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.042126 seconds and 2 git commands to generate.