]> git.pld-linux.org Git - packages/bochs.git/blob - bochs.spec
7638c764d490700dda667e8fde7c61555a529237
[packages/bochs.git] / bochs.spec
1 # TODO:
2 #       - more subpackages (plugins)
3
4 Summary:        Portable x86 PC Emulator
5 Summary(pl):    Przeno¶ny emulator x86 PC
6 Name:           bochs
7 Version:        2.0
8 Release:        1.2
9 License:        GPL
10 Group:          Applications/Emulators
11 Source0:        http://telia.dl.sourceforge.net/sourceforge/bochs/%{name}-%{version}.tar.gz
12 URL:            http://bochs.sourceforge.net/
13 BuildRequires:  XFree86-devel
14 BuildRequires:  libstdc++-devel
15 BuildRequires:  wxGTK-devel
16 BuildRequires:  SDL-devel
17 BuildRequires:  svgalib-devel
18 #vga.pcf.gz
19 Requires:       XFree86-fonts
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Bochs is a portable x86 PC emulation software package that emulates
24 enough of the x86 CPU, related AT hardware, and BIOS to run DOS,
25 Windows '95, Minix 2.0, and other OS's, all on your workstation.
26
27 %description -l pl
28 Bochs jest przeno¶nym emulatorem x86 PC emuluj±cym wystarczaj±co du¿o
29 architektury procesora x86 oraz hardware'u AT i BIOS-u ¿eby uruchomiæ
30 DOS-a, Windows'95, Minix 2.0 i inne systemu operacyjne, wszystkie na
31 Twoim komputerze.
32
33 %prep
34 %setup -q
35
36 %build
37 %configure \
38         --enable-cdrom \
39         --enable-cpu-level=5 \
40         --enable-vbe \
41         --enable-sb16=linux \
42         --enable-configure-interface \
43         --enable-new-pit \
44         --enable-ne2000 \
45         --enable-plugins \
46         --enable-repeat-speedups \
47         --enable-icache \
48         --enable-host-specific-asms \
49         --enable-all-optimizations \
50         --enable-mmx \
51         --enable-sse=2 \
52         --with-x \
53         --with-wx \
54         --with-rfb \
55         --with-sdl \
56         --with-svga \
57         --with-x11
58         
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
64 %{__make} install \
65     DESTDIR=$RPM_BUILD_ROOT \
66     docdir=%{_docdir}/%{name}-%{version}
67
68 mv -f $RPM_BUILD_ROOT%{_datadir}/bochs/VGABIOS*{LICENSE,README,latest} \
69     $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
70
71 cp -f TESTFORM.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
72     
73 rm -f $RPM_BUILD_ROOT%{_datadir}/bochs/*fonts
74 rm -f $RPM_BUILD_ROOT%{_datadir}/bochs/*pcf
75
76 DIRS=`find $RPM_BUILD_ROOT -type d -name CVS`
77 for DIR in $DIRS
78 do
79     rm -rf $DIR
80 done
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %dir %{_datadir}/%{name}
88 %dir %{_datadir}/%{name}/keymaps
89 %attr(755,root,root) %{_bindir}/*
90 %attr(755,root,root) %{_datadir}/%{name}/keymaps/convertmap.pl
91 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so.*
92 %{_libdir}/%{name}/plugins/*.la
93 %{_datadir}/%{name}/keymaps/*.map
94 %{_datadir}/%{name}/*BIOS*
95 %{_mandir}/man[15]/*
96 %{_docdir}/%{name}-%{version}
This page took 0.039633 seconds and 3 git commands to generate.