]>
Commit | Line | Data |
---|---|---|
4c49c243 | 1 | Summary: Glide runtime for 3Dfx Voodoo Graphics boards |
a216d7c4 | 2 | Summary(pl.UTF-8): Środowisko Glide dla kart 3Dfx Voodoo Graphics |
cf05b513 | 3 | Name: Glide_VG |
4 | Version: 2.46 | |
26652483 | 5 | Release: 9 |
4c49c243 JB |
6 | License: 3DFX GLIDE Source Code General Public License |
7 | Vendor: 3Dfx Interactive Inc. | |
edf0eec0 | 8 | Group: Libraries |
07dc9c23 | 9 | Source0: Glide%{version}.tar.gz |
0a60b64a | 10 | # Source0-md5: be7762636b46cb04b238a16f45cfcfa8 |
07dc9c23 | 11 | Patch0: %{name}-asm.patch |
63739d9f | 12 | Patch1: %{name}-opt.patch |
d98d2b0c | 13 | Patch2: %{name}-morearchs.patch |
4dc461ef | 14 | Patch3: %{name}-ioctl.patch |
fe94377d | 15 | Patch4: %{name}-soname.patch |
26652483 | 16 | Patch5: %{name}-C_brainos.patch |
b6f53bc2 | 17 | URL: http://www.3dfx.com/ |
4df864eb | 18 | %ifarch %{ix86} |
d5e33c76 | 19 | BuildRequires: /usr/bin/gasp |
4df864eb | 20 | %endif |
c1b6c8b5 | 21 | BuildRequires: XFree86-devel |
e5c076fb | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53af08fa | 23 | |
24 | %description | |
4c49c243 | 25 | This library allows the user to use a 3Dfx Interactive Voodoo Graphics |
edf0eec0 | 26 | card under Linux. |
3d6c707d | 27 | |
a216d7c4 JR |
28 | %description -l pl.UTF-8 |
29 | Ten pakiet pozwala na używanie kart 3Dfx Interactive Voodoo Graphics | |
4c49c243 JB |
30 | pod Linuksem. |
31 | ||
53af08fa | 32 | %package -n Glide2x_SDK |
cf05b513 | 33 | Summary: Development libraries for Glide 2.x |
a216d7c4 | 34 | Summary(pl.UTF-8): Część Glide 2.x przeznaczona dla programistów |
cf05b513 | 35 | Version: 2.1 |
36 | Group: Development/Libraries | |
53af08fa | 37 | |
38 | %description -n Glide2x_SDK | |
39 | This package includes the headers files, documentation, and test files | |
40 | necessary for developing applications that use the 3Dfx Interactive | |
41 | Voodoo Graphics, Voodoo Rush, or Voodoo2 card. | |
42 | ||
a216d7c4 JR |
43 | %description -n Glide2x_SDK -l pl.UTF-8 |
44 | Ten pakiet zawiera pliki nagłówkowe, dokumentację i pliki testowe | |
45 | potrzebne do tworzenia aplikacji używających kart 3Dfx Interactive | |
4c49c243 JB |
46 | Voodoo Graphics, Voodoo Rush lub Voodoo2. |
47 | ||
53af08fa | 48 | %prep |
cf05b513 | 49 | %setup -q -c |
63739d9f JB |
50 | %patch0 -p1 |
51 | %patch1 -p1 | |
d98d2b0c | 52 | %patch2 -p1 |
4dc461ef | 53 | %patch3 -p1 |
fe94377d | 54 | %patch4 -p1 |
26652483 | 55 | %patch5 -p1 |
53af08fa | 56 | chmod +x swlibs/include/make/ostype |
57 | ||
58 | %build | |
753c8420 | 59 | %{__make} -j1 -f makefile.unix \ |
d98d2b0c JB |
60 | CNODEBUG="%{rpmcflags} -fPIC %{!?debug:-fomit-frame-pointer} \ |
61 | %{!?debug:-funroll-loops -fexpensive-optimizations -ffast-math} -I/usr/X11R6/include" \ | |
62 | %ifnarch %{ix86} | |
63 | FX_GLIDE_CTRISETUP=1 | |
64 | %endif | |
53af08fa | 65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
b6f53bc2 | 68 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_includedir}/glide} \ |
009f71b4 | 69 | $RPM_BUILD_ROOT%{_examplesdir}/glide/{tests,texus/{lib,cmd,examples}} |
53af08fa | 70 | |
71 | # Install the glibc 2.1 libraries normally | |
07dc9c23 JB |
72 | install sst1/lib/libglide2x.so $RPM_BUILD_ROOT%{_libdir}/libglide2x_VG.so |
73 | install swlibs/lib/libtexus.so $RPM_BUILD_ROOT%{_libdir} | |
74 | ln -sf libglide2x_VG.so $RPM_BUILD_ROOT%{_libdir}/libglide2x.so | |
53af08fa | 75 | |
76 | # Install the executables | |
07dc9c23 JB |
77 | install swlibs/bin/texus $RPM_BUILD_ROOT%{_bindir} |
78 | install sst1/glide/tests/test00 $RPM_BUILD_ROOT%{_bindir}/test3Dfx | |
53af08fa | 79 | |
80 | # Install the headers | |
cf05b513 | 81 | install swlibs/include/3dfx.h $RPM_BUILD_ROOT%{_includedir}/glide |
82 | install sst1/include/glide.h $RPM_BUILD_ROOT%{_includedir}/glide | |
83 | install sst1/include/glidesys.h $RPM_BUILD_ROOT%{_includedir}/glide | |
84 | install sst1/include/glideutl.h $RPM_BUILD_ROOT%{_includedir}/glide | |
85 | install sst1/include/sst1vid.h $RPM_BUILD_ROOT%{_includedir}/glide | |
86 | install sst1/include/gump.h $RPM_BUILD_ROOT%{_includedir}/glide | |
87 | install swlibs/include/linutil.h $RPM_BUILD_ROOT%{_includedir}/glide | |
88 | install swlibs/include/texus.h $RPM_BUILD_ROOT%{_includedir}/glide | |
53af08fa | 89 | |
90 | # Install the examples and their source | |
009f71b4 JB |
91 | install sst1/glide/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide/tests/makefile |
92 | install sst1/glide/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide/tests | |
93 | install sst1/glide/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide/tests | |
94 | install sst1/glide/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide/tests | |
95 | install sst1/glide/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide/tests | |
fe94377d | 96 | gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/glide/tests/*.3df |
53af08fa | 97 | |
98 | # Install the texture tools source | |
009f71b4 JB |
99 | install swlibs/texus/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/makefile |
100 | install swlibs/texus/lib/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/lib/makefile | |
101 | install swlibs/texus/cmd/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/cmd/makefile | |
102 | install swlibs/texus/examples/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/examples/makefile | |
103 | install swlibs/texus/lib/*.c $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/lib | |
104 | install swlibs/texus/lib/texusint.h $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/lib | |
105 | install swlibs/texus/cmd/*.c $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/cmd | |
106 | install swlibs/texus/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/glide/texus/examples | |
edf0eec0 | 107 | |
53af08fa | 108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
4c49c243 JB |
111 | %post -p /sbin/ldconfig |
112 | %postun -p /sbin/ldconfig | |
53af08fa | 113 | |
114 | %files | |
cf05b513 | 115 | %defattr(644,root,root,755) |
9c45e574 | 116 | %doc glide_license.txt |
cf05b513 | 117 | %attr(755,root,root) %{_bindir}/texus |
edf0eec0 JR |
118 | %attr(755,root,root) %{_bindir}/test3Dfx |
119 | %attr(755,root,root) %{_libdir}/libglide2x.so | |
120 | %attr(755,root,root) %{_libdir}/libglide2x_VG.so | |
121 | %attr(755,root,root) %{_libdir}/libtexus.so | |
53af08fa | 122 | |
123 | %files -n Glide2x_SDK | |
cf05b513 | 124 | %defattr(644,root,root,755) |
edf0eec0 | 125 | %doc docs/*.pdf |
009f71b4 | 126 | %{_examplesdir}/glide |
cf05b513 | 127 | %{_includedir}/glide |