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