]>
Commit | Line | Data |
---|---|---|
4662e361 | 1 | Summary: Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards |
410dd36d | 2 | Summary(pl.UTF-8): Środowisko Glide dla kart 3Dfx Voodoo Banschee i Voodoo3 |
4662e361 JR |
3 | Name: Glide_V3 |
4 | Version: 2.60 | |
3e4ede7a | 5 | Release: 17 |
3d2c1c81 | 6 | License: 3DFX GLIDE Source Code General Public License |
4662e361 | 7 | Group: Libraries |
1b89d10a | 8 | Source0: GlideV3.tar.gz |
2fffde3d | 9 | # Source0-md5: 9c690dd7b36bbe007806ac62b1366a3b |
e2105240 JB |
10 | Patch0: glide-gcc4.patch |
11 | Patch1: glide-cpp.patch | |
12 | Patch2: glide-link.patch | |
13 | URL: http://glide.sourceforge.net/ | |
9587c206 JB |
14 | %ifarch %{ix86} |
15 | BuildRequires: /usr/bin/gasp | |
16 | %endif | |
4662e361 JR |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
814feca7 | 19 | %description |
4662e361 | 20 | This package now includes both Glide2x and Glide3x. Glide is a |
3d2c1c81 | 21 | lowlevel API for accessing 3Dfx Interactive's Voodoo Hardware. This |
4662e361 JR |
22 | version of Glide supports Voodoo Banshee and Voodoo3 based 3D |
23 | acclerators. | |
24 | ||
3df50000 JR |
25 | %description -l pl.UTF-8 |
26 | Ten pakiet zawiera zarówno Glide2x jak i Glide3x. Glide jest | |
27 | niskopoziomowym API do dostępu do sprzętu Voodoo firmy 3Dfx | |
28 | Interactive. Ta wersja Glide obsługuje akceleratory 3D oparte na | |
3d2c1c81 JB |
29 | Voodoo Banshee i Voodoo3. |
30 | ||
4662e361 JR |
31 | %package -n Glide_SDK |
32 | Summary: Development libraries for Glide 2.x | |
410dd36d | 33 | Summary(pl.UTF-8): Część Glide 2.x przeznaczona dla programistów |
4662e361 JR |
34 | Version: 2.2 |
35 | Group: Development/Libraries | |
36 | ||
37 | %description -n Glide_SDK | |
38 | This package includes the header files, documentation, and test files | |
39 | necessary for developing applications that use any of the 3D | |
3d2c1c81 JB |
40 | accelerators in the 3Dfx Interactive Voodoo line. |
41 | ||
3df50000 JR |
42 | %description -n Glide_SDK -l pl.UTF-8 |
43 | Ten pakiet zawiera pliki nagłówkowe, dokumentację i pliki testowe | |
44 | potrzebne do tworzenia aplikacji korzystających z akceleratorów 3D | |
3d2c1c81 | 45 | serii 3Dfx Interactive Voodoo. |
4662e361 JR |
46 | |
47 | %prep | |
48 | %setup -q -n GlideV3 | |
e2105240 JB |
49 | %patch0 -p1 |
50 | %patch1 -p1 | |
51 | %patch2 -p1 | |
4662e361 JR |
52 | chmod +x swlibs/include/make/ostype |
53 | ||
e2105240 JB |
54 | ln glide2x/README README.glide2x |
55 | ln glide3x/README README.glide3x | |
56 | ||
4662e361 | 57 | %build |
e9a18806 | 58 | %{__make} V3_NODRI \ |
e2105240 | 59 | CC="%{__cc}" \ |
e9a18806 | 60 | CNODEBUG="%{rpmcflags} %{!?debug:-fomit-frame-pointer}\ |
e2105240 | 61 | %{!?debug:-funroll-loops -fexpensive-optimizations -ffast-math -DBIG_OPT}" |
4662e361 JR |
62 | |
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
3e4ede7a | 65 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_includedir}/{glide,glide3}} \ |
66 | $RPM_BUILD_ROOT%{_examplesdir}/glide/{tests,tests3x} \ | |
67 | $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/{lib,cmd,examples} | |
4662e361 JR |
68 | |
69 | ###################################################################### | |
70 | # Install the Glide2x libraries | |
71 | ###################################################################### | |
72 | ||
73 | # Install the native libraries normally | |
1b89d10a | 74 | install glide2x/h3/lib/libglide.so.2.60 $RPM_BUILD_ROOT%{_libdir} |
4662e361 JR |
75 | |
76 | # Create symlinks | |
1b89d10a | 77 | ln -sf libglide.so.2 $RPM_BUILD_ROOT%{_libdir}/libglide.so |
4662e361 JR |
78 | |
79 | # Create a compatibility link for the old name | |
e2105240 JB |
80 | ln -sf libglide.so.2.60 $RPM_BUILD_ROOT%{_libdir}/libglide2x.so.2 |
81 | ln -sf libglide.so.2 $RPM_BUILD_ROOT%{_libdir}/libglide2x.so | |
4662e361 JR |
82 | |
83 | ###################################################################### | |
84 | # Install the Glide3X libraries | |
85 | ###################################################################### | |
1b89d10a | 86 | install glide3x/h3/lib/libglide3.so.3.10 $RPM_BUILD_ROOT%{_libdir} |
4662e361 JR |
87 | rm -f $RPM_BUILD_ROOT%{_libdir}/libglide3x.so |
88 | ||
89 | # Create symlinks | |
1b89d10a | 90 | ln -sf libglide3.so.3 $RPM_BUILD_ROOT%{_libdir}/libglide3.so |
4662e361 JR |
91 | |
92 | # Create a compatibility link for the old name | |
e2105240 | 93 | ln -sf libglide3.so.3.10 $RPM_BUILD_ROOT%{_libdir}/libglide3x.so.3 |
1b89d10a | 94 | ln -sf libglide3.so.3 $RPM_BUILD_ROOT%{_libdir}/libglide3x.so |
4662e361 JR |
95 | |
96 | ###################################################################### | |
97 | # Install Texus | |
98 | ###################################################################### | |
1b89d10a | 99 | install swlibs/lib/libtexus.so.1.1 $RPM_BUILD_ROOT%{_libdir} |
4662e361 | 100 | |
1b89d10a JB |
101 | ln -sf libtexus.so.1.1 $RPM_BUILD_ROOT%{_libdir}/libtexus.so.1 |
102 | ln -sf libtexus.so.1 $RPM_BUILD_ROOT%{_libdir}/libtexus.so | |
4662e361 | 103 | |
1b89d10a | 104 | install swlibs/bin/texus $RPM_BUILD_ROOT%{_bindir} |
4662e361 | 105 | |
1b89d10a JB |
106 | install glide2x/h3/glide/tests/test00 $RPM_BUILD_ROOT%{_bindir}/test3Dfx |
107 | install glide2x/h3/glide/tests/test00 $RPM_BUILD_ROOT%{_bindir}/testGlide2x | |
108 | install glide3x/h3/glide3/tests/test00 $RPM_BUILD_ROOT%{_bindir}/testGlide3x | |
4662e361 JR |
109 | |
110 | ###################################################################### | |
111 | # Install the Glide2x SDK material | |
112 | ###################################################################### | |
113 | ||
114 | # Install the headers | |
115 | install swlibs/include/3dfx.h $RPM_BUILD_ROOT%{_includedir}/glide | |
116 | install glide2x/h3/include/glide.h $RPM_BUILD_ROOT%{_includedir}/glide | |
117 | install glide2x/h3/include/glidesys.h $RPM_BUILD_ROOT%{_includedir}/glide | |
118 | install glide2x/h3/include/glideutl.h $RPM_BUILD_ROOT%{_includedir}/glide | |
119 | install glide2x/h3/include/sst1vid.h $RPM_BUILD_ROOT%{_includedir}/glide | |
120 | install glide2x/h3/include/gump.h $RPM_BUILD_ROOT%{_includedir}/glide | |
121 | install swlibs/include/linutil.h $RPM_BUILD_ROOT%{_includedir}/glide | |
122 | install swlibs/include/texus.h $RPM_BUILD_ROOT%{_includedir}/glide | |
123 | ||
124 | # Install the examples and their source | |
e9a18806 JB |
125 | install glide2x/h3/glide/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide/tests/makefile |
126 | install glide2x/h3/glide/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide/tests | |
127 | install glide2x/h3/glide/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide/tests | |
128 | install glide2x/h3/glide/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide/tests | |
129 | install glide2x/h3/glide/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide/tests | |
4662e361 JR |
130 | |
131 | # Install the Texus source | |
e9a18806 JB |
132 | install swlibs/texus/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/makefile |
133 | install swlibs/texus/lib/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/lib/makefile | |
134 | install swlibs/texus/cmd/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/cmd/makefile | |
135 | install swlibs/texus/examples/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/examples/makefile | |
136 | install swlibs/texus/lib/*.c $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/lib | |
137 | install swlibs/texus/lib/texusint.h $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/lib | |
138 | install swlibs/texus/cmd/*.c $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/cmd | |
139 | install swlibs/texus/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/examples | |
4662e361 JR |
140 | |
141 | ###################################################################### | |
142 | # Install the Glide3x SDK material | |
143 | ###################################################################### | |
144 | # Install the headers | |
145 | install swlibs/include/3dfx.h $RPM_BUILD_ROOT%{_includedir}/glide3 | |
146 | install glide3x/h3/include/glide.h $RPM_BUILD_ROOT%{_includedir}/glide3 | |
147 | install glide3x/h3/include/glidesys.h $RPM_BUILD_ROOT%{_includedir}/glide3 | |
148 | install glide3x/h3/include/glideutl.h $RPM_BUILD_ROOT%{_includedir}/glide3 | |
149 | install glide3x/h3/include/sst1vid.h $RPM_BUILD_ROOT%{_includedir}/glide3 | |
150 | install swlibs/include/linutil.h $RPM_BUILD_ROOT%{_includedir}/glide3 | |
151 | install swlibs/include/texus.h $RPM_BUILD_ROOT%{_includedir}/glide3 | |
152 | ||
153 | # Install the examples and their source | |
e9a18806 JB |
154 | install glide3x/h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide/tests3x/makefile |
155 | install glide3x/h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide/tests3x | |
156 | install glide3x/h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide/tests3x | |
157 | install glide3x/h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide/tests3x | |
158 | install glide3x/h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide/tests3x | |
4662e361 | 159 | |
e2105240 JB |
160 | /sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir} |
161 | ||
4662e361 JR |
162 | %clean |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
3e4ede7a | 165 | %post -p /sbin/ldconfig |
4662e361 JR |
166 | %postun -p /sbin/ldconfig |
167 | ||
168 | %files | |
169 | %defattr(644,root,root,755) | |
47be2ae5 | 170 | %doc README.glide2x README.glide3x glide_license.txt |
4662e361 JR |
171 | %attr(755,root,root) %{_bindir}/texus |
172 | %attr(755,root,root) %{_bindir}/test3Dfx | |
173 | %attr(755,root,root) %{_bindir}/testGlide3x | |
174 | %attr(755,root,root) %{_bindir}/testGlide2x | |
175 | %attr(755,root,root) %{_libdir}/libglide.so.2.60 | |
e2105240 | 176 | %attr(755,root,root) %ghost %{_libdir}/libglide.so.2 |
4662e361 JR |
177 | %attr(755,root,root) %{_libdir}/libglide.so |
178 | %attr(755,root,root) %{_libdir}/libglide2x.so | |
179 | %attr(755,root,root) %{_libdir}/libglide2x.so.2 | |
180 | %attr(755,root,root) %{_libdir}/libglide3.so.3.10 | |
e2105240 | 181 | %attr(755,root,root) %ghost %{_libdir}/libglide3.so.3 |
4662e361 JR |
182 | %attr(755,root,root) %{_libdir}/libglide3.so |
183 | %attr(755,root,root) %{_libdir}/libglide3x.so | |
184 | %attr(755,root,root) %{_libdir}/libglide3x.so.3 | |
185 | %attr(755,root,root) %{_libdir}/libtexus.so.1.1 | |
e2105240 | 186 | %attr(755,root,root) %ghost %{_libdir}/libtexus.so.1 |
4662e361 JR |
187 | %attr(755,root,root) %{_libdir}/libtexus.so |
188 | ||
189 | %files -n Glide_SDK | |
190 | %defattr(644,root,root,755) | |
191 | %doc docs2x/*.pdf docs3x/*.pdf | |
e9a18806 | 192 | %{_examplesdir}/glide |
4662e361 JR |
193 | %{_includedir}/glide |
194 | %{_includedir}/glide3 |