]>
Commit | Line | Data |
---|---|---|
8c36d1ec | 1 | %define snapdate 20010309 |
f621645c JR |
2 | Summary: Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards |
3 | Name: Glide_V3-DRI | |
8c36d1ec AM |
4 | Version: 3.10.0 |
5 | Release: %{snapdate}.1 | |
f621645c JR |
6 | Group: Libraries |
7 | Copyright: 3dfx Glide General Public License, 3Dfx Interactive Inc. | |
8c36d1ec AM |
8 | URL: http://glide.sourceforge.net/ |
9 | Source: cvs://anonymous@cvs.glide.sourceforge.net:/cvsroot/glide/glide3x-%{snapdate}.tar.gz | |
10 | Patch: glide-ia64.patch | |
f621645c JR |
11 | Vendor: 3dfx Interactive Inc. |
12 | Icon: 3dfx.gif | |
3c441299 | 13 | BuildRequires: XFree86-devel |
8c36d1ec AM |
14 | BuildRequires: automake |
15 | BuildRequires: autoconf | |
f621645c JR |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | This library allows the user to use a 3dfx Interactive Voodoo Banshee | |
20 | or Voodoo3 card under Linux with DRI support. The source support DRI | |
21 | or non-DRI versions of Glide. | |
22 | ||
23 | %package devel | |
24 | Summary: Development headers for Glide 3.x | |
25 | Group: Development/Libraries | |
26 | Requires: %{name} = %{version} | |
27 | ||
28 | %description devel | |
29 | This package includes the headers files, documentation, and test files | |
30 | necessary for developing applications that use the 3Dfx Interactive | |
31 | Voodoo Banshe or Voodoo3 cards. | |
32 | ||
82296548 JR |
33 | %package static |
34 | Summary: Static library Glide 3.x | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version} | |
f621645c | 37 | |
82296548 JR |
38 | %description static |
39 | This package includes the static Glide3 library. | |
40 | ||
41 | %prep | |
8c36d1ec AM |
42 | %setup -q -n glide3x-%{snapdate} |
43 | %patch0 -p1 | |
952774e5 | 44 | |
f621645c | 45 | %build |
8c36d1ec AM |
46 | rm -f missing |
47 | aclocal | |
48 | automake -a -c | |
49 | autoconf | |
50 | %configure \ | |
51 | --enable-fx-dri-build \ | |
52 | --enable-fx-glide-hw=h3 \ | |
53 | --enable-fx-debug=no | |
54 | ||
55 | %{__make} -f makefile.autoconf all | |
f621645c JR |
56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
82296548 JR |
59 | install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests |
60 | ||
8c36d1ec | 61 | %{__make} -f makefile.autoconf install \ |
82296548 JR |
62 | DESTDIR=$RPM_BUILD_ROOT |
63 | ||
8c36d1ec AM |
64 | ln -s libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V3.so |
65 | ln -s libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so | |
f621645c JR |
66 | |
67 | # Install the examples and their source, no binaries | |
8c36d1ec AM |
68 | install h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests/makefile |
69 | install h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests | |
70 | install h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests | |
71 | install h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests | |
72 | install h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests | |
f621645c | 73 | |
f621645c JR |
74 | gzip -9nf glide_license.txt |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc glide_license.txt.gz | |
82296548 | 85 | %attr(755,root,root) %{_libdir}/libglide3.so.*.*.* |
f621645c JR |
86 | %attr(755,root,root) %{_libdir}/libglide3x.so |
87 | %attr(755,root,root) %{_libdir}/libglide3x_V3.so | |
f621645c JR |
88 | |
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
82296548 | 91 | #%doc docs/*.pdf |
8c36d1ec AM |
92 | %{_examplesdir}/glide3 |
93 | %attr(755,root,root) %{_libdir}/lib*.la | |
94 | %attr(755,root,root) %{_libdir}/libglide3.so | |
f621645c | 95 | %{_includedir}/glide3 |
82296548 JR |
96 | |
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/lib*.a |