]>
Commit | Line | Data |
---|---|---|
82296548 | 1 | %define snapdate 20001102 |
f621645c JR |
2 | Summary: Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards |
3 | Name: Glide_V3-DRI | |
4 | Version: 3.10 | |
82296548 | 5 | Release: 20001102.1 |
f621645c JR |
6 | Group: Libraries |
7 | Copyright: 3dfx Glide General Public License, 3Dfx Interactive Inc. | |
8 | URL: http://www.3dfx.com | |
82296548 | 9 | Source: Glide3-CVS-%{snapdate}.tar.bz2 |
f621645c JR |
10 | Vendor: 3dfx Interactive Inc. |
11 | Icon: 3dfx.gif | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | This library allows the user to use a 3dfx Interactive Voodoo Banshee | |
16 | or Voodoo3 card under Linux with DRI support. The source support DRI | |
17 | or non-DRI versions of Glide. | |
18 | ||
19 | %package devel | |
20 | Summary: Development headers for Glide 3.x | |
21 | Group: Development/Libraries | |
22 | Requires: %{name} = %{version} | |
23 | ||
24 | %description devel | |
25 | This package includes the headers files, documentation, and test files | |
26 | necessary for developing applications that use the 3Dfx Interactive | |
27 | Voodoo Banshe or Voodoo3 cards. | |
28 | ||
82296548 JR |
29 | %package static |
30 | Summary: Static library Glide 3.x | |
31 | Group: Development/Libraries | |
32 | Requires: %{name} = %{version} | |
f621645c | 33 | |
82296548 JR |
34 | %description static |
35 | This package includes the static Glide3 library. | |
36 | ||
37 | %prep | |
38 | %setup -q -n Glide3 | |
952774e5 | 39 | |
f621645c | 40 | %build |
82296548 JR |
41 | mv chores.3dfx chores.3dfx.bak |
42 | echo "#!/bin/bash" > chores.3dfx | |
43 | cat chores.3dfx.bak >> chores.3dfx | |
44 | chmod 755 chores.3dfx | |
45 | ||
46 | CFLAGS="$RPM_OPT_FLAGS" | |
47 | CXXFLAGS="$RPM_OPT_FLAGS" | |
48 | GLIDE_DEBUG_GCFLAGS="$RPM_OPT_FLAGS" | |
49 | export CFLAGS CXXFLAGS GLIDE_DEBUG_GCFLAGS | |
50 | mv -f swlibs/include/make/makefile.autoconf.bottom swlibs/include/make/makefile.autoconf.bottom.bak | |
51 | sed "s,GLIDE_DEBUG_GCFLAGS = -O6 -m486,GLIDE_DEBUG_GCFLAGS = $RPM_OPT_FLAGS," swlibs/include/make/makefile.autoconf.bottom.bak > swlibs/include/make/makefile.autoconf.bottom | |
52 | ./chores.3dfx \ | |
53 | --clean \ | |
54 | --generate \ | |
55 | --configure="--enable-fx-dri-build --enable-fx-glide-hw=h3" \ | |
56 | --build | |
f621645c JR |
57 | |
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
82296548 JR |
60 | install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests |
61 | ||
62 | make -C build -f makefile.autoconf install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
65 | ln -s libglide3.so.*.*.* $RPM_BUILD_ROOT%{_libdir}/libglide3x_V3.so | |
66 | ln -s libglide3.so.*.*.* $RPM_BUILD_ROOT%{_libdir}/libglide3x.so | |
f621645c JR |
67 | |
68 | # Install the examples and their source, no binaries | |
69 | install h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests/makefile | |
70 | install h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests | |
71 | install h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests | |
72 | install h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests | |
73 | install h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests | |
74 | ||
f621645c JR |
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 | |
82296548 | 86 | %attr(755,root,root) %{_libdir}/libglide3.so.*.*.* |
f621645c JR |
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 | |
f621645c JR |
90 | |
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
82296548 | 93 | #%doc docs/*.pdf |
f621645c JR |
94 | %{_prefix}/src/examples/glide3 |
95 | %{_includedir}/glide3 | |
82296548 JR |
96 | |
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/lib*.a |