]> git.pld-linux.org Git - packages/Glide_V3-DRI.git/blame - Glide_V3-DRI.spec
- buildrequires XFree86-devel
[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
3c441299 12BuildRequires: XFree86-devel
f621645c
JR
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
16This library allows the user to use a 3dfx Interactive Voodoo Banshee
17or Voodoo3 card under Linux with DRI support. The source support DRI
18or non-DRI versions of Glide.
19
20%package devel
21Summary: Development headers for Glide 3.x
22Group: Development/Libraries
23Requires: %{name} = %{version}
24
25%description devel
26This package includes the headers files, documentation, and test files
27necessary for developing applications that use the 3Dfx Interactive
28Voodoo Banshe or Voodoo3 cards.
29
82296548
JR
30%package static
31Summary: Static library Glide 3.x
32Group: Development/Libraries
33Requires: %{name} = %{version}
f621645c 34
82296548
JR
35%description static
36This package includes the static Glide3 library.
37
38%prep
39%setup -q -n Glide3
952774e5 40
f621645c 41%build
82296548
JR
42mv chores.3dfx chores.3dfx.bak
43echo "#!/bin/bash" > chores.3dfx
44cat chores.3dfx.bak >> chores.3dfx
45chmod 755 chores.3dfx
46
47CFLAGS="$RPM_OPT_FLAGS"
48CXXFLAGS="$RPM_OPT_FLAGS"
49GLIDE_DEBUG_GCFLAGS="$RPM_OPT_FLAGS"
50export CFLAGS CXXFLAGS GLIDE_DEBUG_GCFLAGS
51mv -f swlibs/include/make/makefile.autoconf.bottom swlibs/include/make/makefile.autoconf.bottom.bak
3c441299 52sed "s,GLIDE_DEBUG_GCFLAGS = -O6 -m486,GLIDE_DEBUG_GCFLAGS = $RPM_OPT_FLAGS -I/usr/X11R6/include," swlibs/include/make/makefile.autoconf.bottom.bak > swlibs/include/make/makefile.autoconf.bottom
82296548
JR
53./chores.3dfx \
54 --clean \
55 --generate \
56 --configure="--enable-fx-dri-build --enable-fx-glide-hw=h3" \
57 --build
f621645c
JR
58
59%install
60rm -rf $RPM_BUILD_ROOT
82296548
JR
61install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
62
63make -C build -f makefile.autoconf install \
64 DESTDIR=$RPM_BUILD_ROOT
65
66ln -s libglide3.so.*.*.* $RPM_BUILD_ROOT%{_libdir}/libglide3x_V3.so
67ln -s libglide3.so.*.*.* $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
f621645c
JR
68
69# Install the examples and their source, no binaries
70install h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests/makefile
71install h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests
72install h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests
73install h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests
74install h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_prefix}/src/examples/glide3/tests
75
f621645c
JR
76gzip -9nf glide_license.txt
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%post -p /sbin/ldconfig
82%postun -p /sbin/ldconfig
83
84%files
85%defattr(644,root,root,755)
86%doc glide_license.txt.gz
82296548 87%attr(755,root,root) %{_libdir}/libglide3.so.*.*.*
f621645c
JR
88%attr(755,root,root) %{_libdir}/libglide3.so
89%attr(755,root,root) %{_libdir}/libglide3x.so
90%attr(755,root,root) %{_libdir}/libglide3x_V3.so
f621645c
JR
91
92%files devel
93%defattr(644,root,root,755)
82296548 94#%doc docs/*.pdf
f621645c
JR
95%{_prefix}/src/examples/glide3
96%{_includedir}/glide3
82296548
JR
97
98%files static
99%defattr(644,root,root,755)
100%{_libdir}/lib*.a
This page took 1.021296 seconds and 4 git commands to generate.