]> git.pld-linux.org Git - packages/Glide_V3-DRI.git/blame - Glide_V3-DRI.spec
- release 8
[packages/Glide_V3-DRI.git] / Glide_V3-DRI.spec
CommitLineData
f621645c
JR
1Summary: Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards
2Name: Glide_V3-DRI
3Version: 3.10
fc5f0e4f 4Release: 8
f621645c
JR
5Group: Libraries
6Copyright: 3dfx Glide General Public License, 3Dfx Interactive Inc.
7URL: http://www.3dfx.com
8Source: Glide3.10.tar.gz
952774e5 9Patch: Glide3.10-CVS-20000616.patch.gz
f621645c
JR
10Vendor: 3dfx Interactive Inc.
11Icon: 3dfx.gif
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
15This library allows the user to use a 3dfx Interactive Voodoo Banshee
16or Voodoo3 card under Linux with DRI support. The source support DRI
17or non-DRI versions of Glide.
18
19%package devel
20Summary: Development headers for Glide 3.x
21Group: Development/Libraries
22Requires: %{name} = %{version}
23
24%description devel
25This package includes the headers files, documentation, and test files
26necessary for developing applications that use the 3Dfx Interactive
27Voodoo Banshe or Voodoo3 cards.
28
29%prep
30%setup -q -c
952774e5 31%patch -p1
f621645c
JR
32chmod +x swlibs/include/make/ostype
33
952774e5
JR
34ln -sf linhwc.c.dri h3/minihwc/linhwc.c
35ln -sf gsst.c.dri h3/glide3/src/gsst.c
36ln -sf glfb.c.dri h3/glide3/src/glfb.c
37ln -sf gglide.c.dri h3/glide3/src/gglide.c
38
f621645c
JR
39%build
40export FX_GLIDE_HW=h3
b3c0c529 41%{__make} -f makefile.linux CNODEBUG="$RPM_OPT_FLAGS -fomit-frame-pointer \
f621645c
JR
42 -funroll-loops -fexpensive-optimizations -ffast-math -DBIG_OPT"
43
44%install
45rm -rf $RPM_BUILD_ROOT
46install -d $RPM_BUILD_ROOT{%{_includedir}/glide3,%{_libdir}}
47install -d $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/{tests,texus/{lib,cmd,examples}}
48
49install -s h3/lib/libglide3.so.3.10 $RPM_BUILD_ROOT%{_libdir}/libglide3.so.3.10
50ln -s libglide3.so.3 $RPM_BUILD_ROOT%{_libdir}/libglide3.so
51ln -s libglide3.so.3 $RPM_BUILD_ROOT%{_libdir}/libglide3x_V3.so
52ln -s libglide3x_V3.so $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
53
54install -s swlibs/lib/libtexus.so.1.1 $RPM_BUILD_ROOT%{_libdir}
55ln -s libtexus.so.1 $RPM_BUILD_ROOT%{_libdir}/libtexus.so
56
57install swlibs/include/3dfx.h $RPM_BUILD_ROOT%{_includedir}/glide3
58install h3/include/glide.h $RPM_BUILD_ROOT%{_includedir}/glide3
59install h3/include/glidesys.h $RPM_BUILD_ROOT%{_includedir}/glide3
60install h3/include/glideutl.h $RPM_BUILD_ROOT%{_includedir}/glide3
61install h3/include/sst1vid.h $RPM_BUILD_ROOT%{_includedir}/glide3
fc5f0e4f 62install h3/glide3/src/g3ext.h $RPM_BUILD_ROOT%{_includedir}/glide3
f621645c
JR
63install swlibs/include/linutil.h $RPM_BUILD_ROOT%{_includedir}/glide3
64install swlibs/include/texus.h $RPM_BUILD_ROOT%{_includedir}/glide3
65
66# Install the examples and their source, no binaries
67install h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests/makefile
68install h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests
69install h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests
70install h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests
71install h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests
72
73# Install the texture tools
74install swlibs/texus/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/texus/makefile
75install swlibs/texus/lib/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/texus/lib/makefile
76install swlibs/texus/cmd/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/texus/cmd/makefile
77install swlibs/texus/examples/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/texus/examples/makefile
78install swlibs/texus/lib/*.c $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/texus/lib
79install swlibs/texus/lib/texusint.h $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/texus/lib
80install swlibs/texus/cmd/*.c $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/texus/cmd
81install swlibs/texus/examples/*.c $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/texus/examples
82
83gzip -9nf glide_license.txt
84
85%clean
86rm -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 glide_license.txt.gz
94%attr(755,root,root) %{_libdir}/libglide3.so.3.10
95%attr(755,root,root) %{_libdir}/libglide3.so
96%attr(755,root,root) %{_libdir}/libglide3x.so
97%attr(755,root,root) %{_libdir}/libglide3x_V3.so
98%attr(755,root,root) %{_libdir}/libtexus.so.1.1
99%attr(755,root,root) %{_libdir}/libtexus.so
100
101%files devel
102%defattr(644,root,root,755)
103%doc docs/*.pdf
104%{_prefix}/src/examples/glide3
105%{_includedir}/glide3
This page took 0.053355 seconds and 4 git commands to generate.