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