]> git.pld-linux.org Git - packages/Glide_V3-DRI.git/blame - Glide_V3-DRI.spec
- updated to CVS snapshot
[packages/Glide_V3-DRI.git] / Glide_V3-DRI.spec
CommitLineData
82296548 1%define snapdate 20001102
f621645c
JR
2Summary: Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards
3Name: Glide_V3-DRI
4Version: 3.10
82296548 5Release: 20001102.1
f621645c
JR
6Group: Libraries
7Copyright: 3dfx Glide General Public License, 3Dfx Interactive Inc.
8URL: http://www.3dfx.com
82296548 9Source: Glide3-CVS-%{snapdate}.tar.bz2
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
82296548
JR
29%package static
30Summary: Static library Glide 3.x
31Group: Development/Libraries
32Requires: %{name} = %{version}
f621645c 33
82296548
JR
34%description static
35This package includes the static Glide3 library.
36
37%prep
38%setup -q -n Glide3
952774e5 39
f621645c 40%build
82296548
JR
41mv chores.3dfx chores.3dfx.bak
42echo "#!/bin/bash" > chores.3dfx
43cat chores.3dfx.bak >> chores.3dfx
44chmod 755 chores.3dfx
45
46CFLAGS="$RPM_OPT_FLAGS"
47CXXFLAGS="$RPM_OPT_FLAGS"
48GLIDE_DEBUG_GCFLAGS="$RPM_OPT_FLAGS"
49export CFLAGS CXXFLAGS GLIDE_DEBUG_GCFLAGS
50mv -f swlibs/include/make/makefile.autoconf.bottom swlibs/include/make/makefile.autoconf.bottom.bak
51sed "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
59rm -rf $RPM_BUILD_ROOT
82296548
JR
60install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
61
62make -C build -f makefile.autoconf install \
63 DESTDIR=$RPM_BUILD_ROOT
64
65ln -s libglide3.so.*.*.* $RPM_BUILD_ROOT%{_libdir}/libglide3x_V3.so
66ln -s libglide3.so.*.*.* $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
f621645c
JR
67
68# Install the examples and their source, no binaries
69install h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests/makefile
70install h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests
71install h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests
72install h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests
73install h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests
74
f621645c
JR
75gzip -9nf glide_license.txt
76
77%clean
78rm -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
This page took 0.097667 seconds and 4 git commands to generate.