]> git.pld-linux.org Git - packages/Glide_V2.git/blob - Glide_V2.spec
- spelling fixes, unifications
[packages/Glide_V2.git] / Glide_V2.spec
1 Summary:        Glide runtime for 3Dfx Voodoo2 boards
2 Summary(pl):    Biblioteki Glide do kart 3Dfx Voodoo2
3 Name:           Glide_V2
4 Version:        2.53
5 Release:        7
6 Group:          Libraries
7 License:        GPL
8 Vendor:         3Dfx Interactive Inc.
9 Source0:        GlideV2.tar.gz
10 # Source0-md5:  a7110232c3d4d888580aaff7919017d2
11 Icon:           3dfx.gif
12 URL:            http://www.3dfx.com/
13 %ifarch %{ix86}
14 BuildRequires:  /usr/bin/gasp
15 %endif
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 This library allows the user to use a 3dfx Interactive Voodoo2 card
20 under Linux.
21
22 %description -l pl
23 Ta biblioteka pozwala u¿ywaæ kart 3dfx Interactive Voodoo2 pod
24 Linuksem.
25
26 %prep
27 %setup -q -n GlideV2
28 chmod +x swlibs/include/make/ostype
29
30 %build
31 # Make sure we build for Voodoo2
32 export FX_GLIDE_HW=cvg
33 %{__make} V2 CNODEBUG="%{rpmcflags} %{!?debug:-fomit-frame-pointer -funroll-loops} \
34         %{!?debug:-fexpensive-optimizations -ffast-math -DBIG_OPT}"
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir}}
39
40 ######################################################################
41 # Install the Glide2x libraries
42 ######################################################################
43
44 install glide2x/cvg/lib/libglide.so.2.53 \
45         $RPM_BUILD_ROOT%{_libdir}/libglide.so.2.53
46
47 # Create symlinks
48 ln -sf libglide.so.2 $RPM_BUILD_ROOT%{_libdir}/libglide.so
49
50 # Create a compatibility link for the old name
51 ln -sf libglide.so.2.53 $RPM_BUILD_ROOT%{_libdir}/libglide2x.so.2
52 ln -sf libglide2x.so $RPM_BUILD_ROOT%{_libdir}/libglide2x.so
53
54 ######################################################################
55 # Install the Glide3X libraries
56 ######################################################################
57 install glide3x/cvg/lib/libglide3.so.3.01 \
58         $RPM_BUILD_ROOT%{_libdir}/libglide3.so.3.01
59
60 # Create symlinks
61 ln -sf libglide3.so.3 $RPM_BUILD_ROOT%{_libdir}/libglide3.so
62
63 # Create a compatibility link for the old name
64 ln -sf libglide3.so.3.01 $RPM_BUILD_ROOT%{_libdir}/libglide3x.so.3
65 ln -sf libglide3x.so.3 $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
66
67 ######################################################################
68 # Install Texus
69 ######################################################################
70 install -m 755 glide2x/swlibs/lib/libtexus.so.1.1 \
71     $RPM_BUILD_ROOT%{_libdir}
72
73 ln -sf libtexus.so.1 $RPM_BUILD_ROOT%{_libdir}/libtexus.so
74
75 install swlibs/bin/texus $RPM_BUILD_ROOT%{_bindir}
76
77 ######################################################################
78 # Install the Test Programs
79 ######################################################################
80 # Make two copies so that the old test3Dfx is still there and
81 # we now have a consisten testGlide2x, testGlide3x
82 install glide2x/cvg/glide/tests/test00 \
83         $RPM_BUILD_ROOT%{_bindir}/test3Dfx
84 install glide2x/cvg/glide/tests/test00 \
85         $RPM_BUILD_ROOT%{_bindir}/testGlide2x
86 install glide3x/cvg/glide3/tests/test00 \
87         $RPM_BUILD_ROOT%{_bindir}/testGlide3x
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post   -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
94
95 %files
96 %defattr(644,root,root,755)
97 %doc glide2x/glide_license.txt
98 %attr(755,root,root) %{_bindir}/texus
99 %attr(755,root,root) %{_bindir}/test3Dfx
100 %attr(755,root,root) %{_bindir}/testGlide3x
101 %attr(755,root,root) %{_bindir}/testGlide2x
102 %attr(755,root,root) %{_libdir}/libglide.so.2.53
103 %attr(755,root,root) %{_libdir}/libglide.so
104 %attr(755,root,root) %{_libdir}/libglide2x.so
105 %attr(755,root,root) %{_libdir}/libglide2x.so.2
106 %attr(755,root,root) %{_libdir}/libglide3.so.3.01
107 %attr(755,root,root) %{_libdir}/libglide3.so
108 %attr(755,root,root) %{_libdir}/libglide3x.so
109 %attr(755,root,root) %{_libdir}/libglide3x.so.3
110 %attr(755,root,root) %{_libdir}/libtexus.so.1.1
111 %attr(755,root,root) %{_libdir}/libtexus.so
This page took 0.036514 seconds and 3 git commands to generate.