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