]> git.pld-linux.org Git - packages/Glide_V3-DRI.git/blob - Glide_V3-DRI.spec
20010309 snapshot
[packages/Glide_V3-DRI.git] / Glide_V3-DRI.spec
1 %define snapdate 20010309
2 Summary:        Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards
3 Name:           Glide_V3-DRI
4 Version:        3.10.0
5 Release:        %{snapdate}.1
6 Group:          Libraries
7 Copyright:      3dfx Glide General Public License, 3Dfx Interactive Inc.
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
11 Vendor:         3dfx Interactive Inc.
12 Icon:           3dfx.gif
13 BuildRequires:  XFree86-devel
14 BuildRequires:  automake
15 BuildRequires:  autoconf
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
33 %package static
34 Summary:        Static library Glide 3.x
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}
37
38 %description static
39 This package includes the static Glide3 library.
40
41 %prep
42 %setup -q -n glide3x-%{snapdate}
43 %patch0 -p1
44
45 %build
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
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
60
61 %{__make} -f makefile.autoconf install \
62         DESTDIR=$RPM_BUILD_ROOT
63
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
66
67 # Install the examples and their source, no binaries
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
73
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
85 %attr(755,root,root) %{_libdir}/libglide3.so.*.*.*
86 %attr(755,root,root) %{_libdir}/libglide3x.so
87 %attr(755,root,root) %{_libdir}/libglide3x_V3.so
88
89 %files devel
90 %defattr(644,root,root,755)
91 #%doc docs/*.pdf
92 %{_examplesdir}/glide3
93 %attr(755,root,root) %{_libdir}/lib*.la
94 %attr(755,root,root) %{_libdir}/libglide3.so
95 %{_includedir}/glide3
96
97 %files static
98 %defattr(644,root,root,755)
99 %{_libdir}/lib*.a
This page took 0.116058 seconds and 3 git commands to generate.