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