]>
Commit | Line | Data |
---|---|---|
1 | Summary: Glide runtime for 3Dfx Voodoo2 boards | |
2 | Summary(pl.UTF-8): Biblioteki Glide do kart 3Dfx Voodoo2 | |
3 | Name: Glide_V2 | |
4 | Version: 2.53 | |
5 | Release: 7 | |
6 | Group: Libraries | |
7 | License: GPL | |
8 | Vendor: 3Dfx Interactive Inc. | |
9 | Source0: GlideV2.tar.gz | |
10 | # Source0-md5: a7110232c3d4d888580aaff7919017d2 | |
11 | URL: http://www.3dfx.com/ | |
12 | %ifarch %{ix86} | |
13 | BuildRequires: /usr/bin/gasp | |
14 | %endif | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | This library allows the user to use a 3dfx Interactive Voodoo2 card | |
19 | under Linux. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | Ta biblioteka pozwala używać kart 3dfx Interactive Voodoo2 pod | |
23 | Linuksem. | |
24 | ||
25 | %prep | |
26 | %setup -q -n GlideV2 | |
27 | chmod +x swlibs/include/make/ostype | |
28 | ||
29 | %build | |
30 | # Make sure we build for Voodoo2 | |
31 | export FX_GLIDE_HW=cvg | |
32 | %{__make} V2 CNODEBUG="%{rpmcflags} %{!?debug:-fomit-frame-pointer -funroll-loops} \ | |
33 | %{!?debug:-fexpensive-optimizations -ffast-math -DBIG_OPT}" | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir}} | |
38 | ||
39 | ###################################################################### | |
40 | # Install the Glide2x libraries | |
41 | ###################################################################### | |
42 | ||
43 | install glide2x/cvg/lib/libglide.so.2.53 \ | |
44 | $RPM_BUILD_ROOT%{_libdir}/libglide.so.2.53 | |
45 | ||
46 | # Create symlinks | |
47 | ln -sf libglide.so.2 $RPM_BUILD_ROOT%{_libdir}/libglide.so | |
48 | ||
49 | # Create a compatibility link for the old name | |
50 | ln -sf libglide.so.2.53 $RPM_BUILD_ROOT%{_libdir}/libglide2x.so.2 | |
51 | ln -sf libglide2x.so $RPM_BUILD_ROOT%{_libdir}/libglide2x.so | |
52 | ||
53 | ###################################################################### | |
54 | # Install the Glide3X libraries | |
55 | ###################################################################### | |
56 | install glide3x/cvg/lib/libglide3.so.3.01 \ | |
57 | $RPM_BUILD_ROOT%{_libdir}/libglide3.so.3.01 | |
58 | ||
59 | # Create symlinks | |
60 | ln -sf libglide3.so.3 $RPM_BUILD_ROOT%{_libdir}/libglide3.so | |
61 | ||
62 | # Create a compatibility link for the old name | |
63 | ln -sf libglide3.so.3.01 $RPM_BUILD_ROOT%{_libdir}/libglide3x.so.3 | |
64 | ln -sf libglide3x.so.3 $RPM_BUILD_ROOT%{_libdir}/libglide3x.so | |
65 | ||
66 | ###################################################################### | |
67 | # Install Texus | |
68 | ###################################################################### | |
69 | install -m 755 glide2x/swlibs/lib/libtexus.so.1.1 \ | |
70 | $RPM_BUILD_ROOT%{_libdir} | |
71 | ||
72 | ln -sf libtexus.so.1 $RPM_BUILD_ROOT%{_libdir}/libtexus.so | |
73 | ||
74 | install swlibs/bin/texus $RPM_BUILD_ROOT%{_bindir} | |
75 | ||
76 | ###################################################################### | |
77 | # Install the Test Programs | |
78 | ###################################################################### | |
79 | # Make two copies so that the old test3Dfx is still there and | |
80 | # we now have a consisten testGlide2x, testGlide3x | |
81 | install glide2x/cvg/glide/tests/test00 \ | |
82 | $RPM_BUILD_ROOT%{_bindir}/test3Dfx | |
83 | install glide2x/cvg/glide/tests/test00 \ | |
84 | $RPM_BUILD_ROOT%{_bindir}/testGlide2x | |
85 | install glide3x/cvg/glide3/tests/test00 \ | |
86 | $RPM_BUILD_ROOT%{_bindir}/testGlide3x | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
96 | %doc glide2x/glide_license.txt | |
97 | %attr(755,root,root) %{_bindir}/texus | |
98 | %attr(755,root,root) %{_bindir}/test3Dfx | |
99 | %attr(755,root,root) %{_bindir}/testGlide3x | |
100 | %attr(755,root,root) %{_bindir}/testGlide2x | |
101 | %attr(755,root,root) %{_libdir}/libglide.so.2.53 | |
102 | %attr(755,root,root) %{_libdir}/libglide.so | |
103 | %attr(755,root,root) %{_libdir}/libglide2x.so | |
104 | %attr(755,root,root) %{_libdir}/libglide2x.so.2 | |
105 | %attr(755,root,root) %{_libdir}/libglide3.so.3.01 | |
106 | %attr(755,root,root) %{_libdir}/libglide3.so | |
107 | %attr(755,root,root) %{_libdir}/libglide3x.so | |
108 | %attr(755,root,root) %{_libdir}/libglide3x.so.3 | |
109 | %attr(755,root,root) %{_libdir}/libtexus.so.1.1 | |
110 | %attr(755,root,root) %{_libdir}/libtexus.so |