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