]>
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 | Group: Development/Libraries |
d20f55c8 | 37 | Conflicts: Glide_SDK |
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 \ |
c38e5d24 | 61 | CC="%{__cc}" \ |
d98d2b0c | 62 | CNODEBUG="%{rpmcflags} -fPIC %{!?debug:-fomit-frame-pointer} \ |
ca5929e7 | 63 | %{!?debug:-funroll-loops -fexpensive-optimizations -ffast-math}" \ |
d98d2b0c JB |
64 | %ifnarch %{ix86} |
65 | FX_GLIDE_CTRISETUP=1 | |
66 | %endif | |
53af08fa | 67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
46c6bc1f | 70 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir}} |
53af08fa | 71 | |
72 | # Install the glibc 2.1 libraries normally | |
d8c27465 JB |
73 | install sst1/lib/libglide.so.2.46 $RPM_BUILD_ROOT%{_libdir} |
74 | ln -sf libglide.so.2.46 $RPM_BUILD_ROOT%{_libdir}/libglide.so.2 | |
75 | ln -sf libglide.so.2 $RPM_BUILD_ROOT%{_libdir}/libglide2x.so | |
403fc473 | 76 | ln -sf libglide.so.2 $RPM_BUILD_ROOT%{_libdir}/libglide.so |
d8c27465 JB |
77 | install swlibs/lib/libtexus.so.1.1 $RPM_BUILD_ROOT%{_libdir} |
78 | ln -sf libtexus.so.1.1 $RPM_BUILD_ROOT%{_libdir}/libtexus.so.1 | |
79 | ln -sf libtexus.so.1 $RPM_BUILD_ROOT%{_libdir}/libtexus.so | |
53af08fa | 80 | |
81 | # Install the executables | |
07dc9c23 JB |
82 | install swlibs/bin/texus $RPM_BUILD_ROOT%{_bindir} |
83 | install sst1/glide/tests/test00 $RPM_BUILD_ROOT%{_bindir}/test3Dfx | |
53af08fa | 84 | |
46c6bc1f JB |
85 | ### SDK |
86 | install -d $RPM_BUILD_ROOT%{_includedir}/glide \ | |
87 | $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/{tests,texus/examples} | |
88 | ||
53af08fa | 89 | # Install the headers |
cf05b513 | 90 | install swlibs/include/3dfx.h $RPM_BUILD_ROOT%{_includedir}/glide |
91 | install sst1/include/glide.h $RPM_BUILD_ROOT%{_includedir}/glide | |
92 | install sst1/include/glidesys.h $RPM_BUILD_ROOT%{_includedir}/glide | |
93 | install sst1/include/glideutl.h $RPM_BUILD_ROOT%{_includedir}/glide | |
94 | install sst1/include/sst1vid.h $RPM_BUILD_ROOT%{_includedir}/glide | |
95 | install sst1/include/gump.h $RPM_BUILD_ROOT%{_includedir}/glide | |
96 | install swlibs/include/linutil.h $RPM_BUILD_ROOT%{_includedir}/glide | |
97 | install swlibs/include/texus.h $RPM_BUILD_ROOT%{_includedir}/glide | |
53af08fa | 98 | |
99 | # Install the examples and their source | |
bb15827d JB |
100 | install sst1/glide/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests/makefile |
101 | install sst1/glide/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests | |
102 | install sst1/glide/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests | |
103 | install sst1/glide/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests | |
104 | install sst1/glide/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests | |
105 | gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests/*.3df | |
53af08fa | 106 | |
107 | # Install the texture tools source | |
bb15827d | 108 | install swlibs/texus/examples/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/texus/examples/makefile |
bb15827d | 109 | install swlibs/texus/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/texus/examples |
edf0eec0 | 110 | |
53af08fa | 111 | %clean |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
4c49c243 JB |
114 | %post -p /sbin/ldconfig |
115 | %postun -p /sbin/ldconfig | |
53af08fa | 116 | |
117 | %files | |
cf05b513 | 118 | %defattr(644,root,root,755) |
ca5929e7 | 119 | %doc glide_license.txt readme.txt |
cf05b513 | 120 | %attr(755,root,root) %{_bindir}/texus |
edf0eec0 | 121 | %attr(755,root,root) %{_bindir}/test3Dfx |
d8c27465 JB |
122 | %attr(755,root,root) %{_libdir}/libglide.so.2.46 |
123 | %attr(755,root,root) %ghost %{_libdir}/libglide.so.2 | |
403fc473 | 124 | %attr(755,root,root) %{_libdir}/libglide.so |
edf0eec0 | 125 | %attr(755,root,root) %{_libdir}/libglide2x.so |
d8c27465 JB |
126 | %attr(755,root,root) %{_libdir}/libtexus.so.1.1 |
127 | %attr(755,root,root) %ghost %{_libdir}/libtexus.so.1 | |
edf0eec0 | 128 | %attr(755,root,root) %{_libdir}/libtexus.so |
53af08fa | 129 | |
130 | %files -n Glide2x_SDK | |
cf05b513 | 131 | %defattr(644,root,root,755) |
edf0eec0 | 132 | %doc docs/*.pdf |
bb15827d | 133 | %{_examplesdir}/glide2x-%{version} |
cf05b513 | 134 | %{_includedir}/glide |